Using JAXB, we generate our Java beans directly. In the XSD, we have an enumerated type:
<xs:simpleType name="promptBeforeCloseType">
<xs:restriction base="xs:string">
<xs:enumeration value="default"/>
<xs:enumeration value="always"/>
<xs:enumeration value="never"/>
</xs:restriction>
</xs:simpleType>
JAXB generates an enumerated type for the field using this type. We would like to have it converted to a String in the generated Java class, because those classes are mapped to ActionScript classes, and there is no enumerated type in ActionScript.
Is there a way to do it, implementing some kind of converter ? May be with XmlJavaTypeAdapter ?