Yes, in fact that's the default behavior.
I take it that you aren't seeing it though. Can you paste your schema?
Gregory Kick wrote:
> Is it possible to have
> <xs:restriction base="xs:token">
> <xs:enumeration value="whatever"/>
> ...
> </xs:restriction>
> generate a java 5 enum?
>
--
Kohsuke Kawaguchi
Sun Microsystems kohsuke.kawaguchi_at_sun.com