users@jaxb.java.net

How does JAXB handle enumeration?

From: Sam Cheung <sylcheung_at_hotmail.com>
Date: Fri, 13 Feb 2004 23:36:38 +0000

Hi,

Does JAXB generate an C-like enum in Java for each enumeration in the
schema?
By default, I don't think it does it. Is there such a feature? if yes, is
there a way to turn that on?
I believe xmlbeans does it, I am wondering if JAXB can do this also.

Thank you.

<xs:restriction base="xs:string">
                        <xs:enumeration value="Expired"/>
                        <xs:enumeration value="Retrieved"/>
                        <xs:enumeration value="Rejected"/>
                        <xs:enumeration value="Indeterminate"/>
                        <xs:enumeration value="Forwarded"/>
</xs:restriction>

_________________________________________________________________
Plan your next US getaway to one of the super destinations here.
http://special.msn.com/local/hotdestinations.armx


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net