users@jaxb.java.net

Re: Getting Enumerations using API

From: Brandon Franklin <brandon_at_thoughtriver.com>
Date: Wed, 14 May 2003 01:16:41 +0930

Hmmm I'm not sure. I tried adding it to the SimpleType (as a child
element) but got this:

[xjc] [ERROR] s4s-elt-must-match: The content of 'simpleType' must match
(annotation?, (restriction | list | union)).

Is there some other place I can put this? I'm very interested to see if this
does what we were discussing.

-Brandon
 Thought River South

----- Original Message -----
From: "Kohsuke Kawaguchi" <Kohsuke.Kawaguchi_at_Sun.COM>
To: <JAXB-INTEREST_at_JAVA.SUN.COM>
Sent: Wednesday, May 14, 2003 12:11 AM
Subject: Re: Getting Enumerations using API


> Sorry if I'm missing something, but what's wrong with the today's
type-safe
> enum support? You don't need to wait for JDK1.5 to use that.
>
> Just add:
>
> <jaxb:typesafeEnumClass name="ProductTypeEnum" />
>
> to the simple type. Or is this not what you are looking for?
>
> regards,
> --
> Kohsuke KAWAGUCHI 408-276-7063 (x17063)
> Sun Microsystems kohsuke.kawaguchi_at_sun.com
>