users@jaxb2-commons.java.net

Generate enum?

From: <cougar_at_casadelgato.com>
Date: Mon, 28 Nov 2011 18:09:51 +0000 (GMT)

We have some places where we do something like:
      <xs:element name="Status">
        <xs:simpleType>
          <xs:restriction base="xs:string">
            <xs:enumeration value="APPROVED" />
            <xs:enumeration value="UNDECIDED" />
            <xs:enumeration value="REJECTED" />
          </xs:restriction>
        </xs:simpleType>
      </xs:element>

Is there any way to have a java enum or interface or class generated
for those constants?