Hi,
I'm using Castor 1.2 to unmarshall an XML file.
In my XML, a field has either the value "model", either the value "nomodel".
My aim is to map this field into a boolean field such as "model" is
mapped to "true" and "nomodel" is mapped to "false".
I defined for this a GeneralizedFieldHandler.
My problem is that Castor passes a Boolean object to the
convertUponSet method of my handler instead of a String.
Here is my mapping file :
<mapping>
<class name="Task">
<field name="natureModel" type="boolean"
handler="MyGeneralizedFieldHandler">
<bind-xml name="nat" node="attribute" />
</field>
</class>
</mapping>
Thanks for your help :)
Greg
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email