users@jaxb.java.net

Re: Getting a Java 5 enum from XJC

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Thu, 25 Jan 2007 16:24:23 -0800

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