ok, i just found in the docs where its possible, can someone give me an example
of a binding entry where i would implement it? would it look something like
this?
<value name="TranType" field="tranType" usage="required"
enum-value-method="tranTypeEnum"/>
-----Original Message-----
From: Slepecki, Willie
Sent: Mon 9/29/2008 11:06 AM
To: jibx-users@lists.sourceforge.net
Subject: using Java 5 Enums
the XML interface is one of two interfaces into the system. i have fields that
have to be enumerated and right now im maintaining those enumerations in two
places, the schema and another validator i wrote for the other interface. is
it possible to have jibx use an enumeration as a type?
say i have a field in the xml foo that can be enumerated YES or NO. currently
i have to set that field in my pojo to a string, what i would like to do is
make that field of type fooEnum and have it fill with the appropriate
enumeration value.
possible?
planned?
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
jibx-users mailing list
jibx-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jibx-users