users@jaxb.java.net

Re: Getting Enumerations using API

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 13 May 2003 09:36:34 -0700

OK, to be complete, it has to be:

    <xs:simpleType>
      <xs:annotation><xs:appinfo>
        <jaxb:typesafeEnumClass name="ProductTypeEnum" />
      </xs:appinfo></xs:annotation>
      <xs:restriction base="xs:string">
        ...

just like any other JAXB customization.

regards,
--
Kohsuke KAWAGUCHI                  408-276-7063 (x17063)
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com