users@jaxb.java.net

Re: How does JAXB handle enumeration?

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Fri, 13 Feb 2004 16:04:54 -0800

We do generate the type-safe enums, but it doesn't always do so by
default. For example, if your enumeration simple type is anonymous, it
doesn't. But for named simple types with enumerations, you'll get
type-safe enums.

You can also use customizations to have XJC generate type-safe enums in
cases where it does't by default. The spec might have some samples.

For starter, try making that simple type a global simple type.

regards,
--
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
For additional commands, e-mail: users-help_at_jaxb.dev.java.net