I think Steve Solomon wrote:
> I'd like to define the following bean class:
...
> 
> public class Phrase implements Serializable 
> {
...
>   public ValueVector getFullForm() { return full_form; }
>   public void setFullForm(ValueVector full_form) { this.full_form = 
> full_form; }
> }

Jess doesn't like to work with classes that expose properties of type
"Value" or "ValueVector" -- the reflection mechanism gets
confused. Instead of a ValueVector property, just use an array of
whatever type is appropriate. It will appear as a list in Jess, and
you set it using a list from Jess.

> 
> Also, is it possible for a shadow bean class to have a constructor that
> I can call from Jess? Instead of (new Phrase) something like (new Phrase
> 57 TRUE (list 1 2 3 "foo")) ?

Yes, of course -- you probably ran into the same problem here, trying
to call a method that wants a ValueVector as an argument. Again, just
use an array.

---------------------------------------------------------
Ernest Friedman-Hill  
Advanced Software Research          Phone: (925) 294-2154
Sandia National Labs                FAX:   (925) 294-2234
PO Box 969, MS 9012                 [EMAIL PROTECTED]
Livermore, CA 94550         http://herzberg.ca.sandia.gov

--------------------------------------------------------------------
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