Hi,
You can use an org.tm4j.topicmap.utils.testers.InScopeTester to do this:
InScopeTester t = new InScopeTester(new Topic[] {type});
if (t.test(scopedObject)) {
return TopicMapManager.BASETYPE_STRING;
}
If "type" is a constant, then you can create the tester as a constant in
your class - so you would not have to be recreating it on each call.
Cheers,
Kal
On Tue, 2004-05-18 at 05:19, nengsih wahyu wrote:
> hi all,
>
> I use TM4J 0.8.3, i had class
> HassOccurrenceValueLessThanExtension that use to
> compare some topic that hasocurrencevaluelessthan, in
> this class i compare type of topic so i use :
>
> Set scopeSet = scopedObject.getScope();
> //if string
> if (scopeSet.contains(type)){
> return TopicMapManager.BASETYPE_STRING;
> }
>
> in TM4J 0.9.1 scope change to be set, so how can i
> change my procedure that i declare above.because i
> want to change my TM4J tobe 0.9.1 because i want to
> use hibernate that in TM4J 0.8.3 didn't support it.
> please help me.
>
> regards,
>
>
> wahyu
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! - Internet access at a great low price.
> http://promo.yahoo.com/sbc/
>
>
> -------------------------------------------------------
> This SF.Net email is sponsored by: SourceForge.net Broadband
> Sign-up now for SourceForge Broadband and get the fastest
> 6.0/768 connection for only $19.95/mo for the first 3 months!
> http://ads.osdn.com/?ad_id=2562&alloc_id=6184&op=click
> _______________________________________________
> Tm4j-developers mailing list
> Tm4...@li...
> https://lists.sourceforge.net/lists/listinfo/tm4j-developers
--
Kal Ahmed <ka...@te...>
techquila
|