I finally figured out my problem with the java.lang.String.

The class's property is defined as returning an Object. The values of
the property are actually Strings and Integers. When I list the fact,
it shows the value as an external_address to a String and the rule
doesn't match. 

attribute <unordered> <Fact-2> <External-Address:java.lang.Class> 
<External-Address:java.lang.String> "Sem_Gender" 
<External-Address:sra.nlp.jdiscourse.TestClass> 
<External-Address:sra.nlp.jdiscourse.Attribute>

If I define the property to return a String , then list the
fact, it shows up as a string, not an external address and the rule will
match.

attribute <unordered> <Fact-2> <External-Address:java.lang.Class> "TEST" "Sem_Gender" 
<External-Address:sra.nlp.jdiscourse.TestClass> 
<External-Address:sra.nlp.jdiscourse.Attribute>

Lauren

 Ernest Friedman-Hill writes:
 
 > > Is there same way we can get JESS to match java.lang.Strings against
 > > string primitives in rules without having to explicitly call the equals
 > >  method?
 > > 
 > > Thanks,
 > > Lauren
 
---------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the
list (use your own address!) List problems? Notify [EMAIL PROTECTED]
---------------------------------------------------------------------

Reply via email to