Hi,
I have an enumeration defined in my schema. Here is a portion of
it shown below :
<xsd:simpleType name="ContentType">
<xsd:annotation>
<xsd:documentation>This is the content type of
the DCR(s)</xsd:documentation>
</xsd:annotation>
<xsd:restriction base="xsd:string">
<xsd:enumeration value="OW700"/>
<xsd:enumeration value="OW710"/>
And the source generator produces corresponding code like this :
public class ContentType implements java.io.Serializable {
//--------------------------/
//- Class/Member Variables -/
//--------------------------/
/**
* The OW700 type
*/
public static final int OW700_TYPE = 0;
/**
* The instance of the OW700 type
*/
public static final ContentType OW700 = new
ContentType(OW700_TYPE, "OW700");
/**
* The OW710 type
*/
public static final int OW710_TYPE = 1;
/**
* The instance of the OW710 type
*/
public static final ContentType OW710 = new
ContentType(OW710_TYPE, "OW710");
,
.