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?