Hi,
I was wondering if there's a way to do the following.
I'd like to add a set of property = value constants in the following piece
of schema
for example, i'd like to have in the interface or some other object linked
it it
static int NOT_SPECIFIED = 0;
static int CONSTITUTIVE = 23;
the numbers are meaningful and can't be changed unfortunately. I can
autogenerate code myself to do this if there's a way to embed the number in
the enumeration tag. JAXB doesn't seem to like any other attributes in the
xs:enumeration tag such as id.
any help would be greaty appreciated
thanks
MD
<xs:complexType name="BIND-cellstage_phase1">
<xs:simpleContent>
<xs:extension base="xs:integer">
<xs:attribute name="value" use="required">
<xs:simpleType>
<xs:restriction
base="xs:string">
<xs:enumeration
value="not-specified"/>
<xs:enumeration
value="constitutive"/>
<xs:enumeration
value="interphase"/>
<xs:enumeration
value="division"/>
<xs:enumeration
value="g1"/>
<xs:enumeration
value="s"/>
<xs:enumeration
value="g2"/>
<xs:enumeration
value="mitosis"/>
<xs:enumeration
value="prophase"/>
<xs:enumeration
value="prometaphase"/>
<xs:enumeration
value="metaphase"/>
<xs:enumeration
value="anaphase"/>
<xs:enumeration
value="telophase"/>
<xs:enumeration
value="cytokinesis"/>
<xs:enumeration
value="meiosis"/>
<xs:enumeration
value="prophase1"/>
<xs:enumeration
value="leptotene"/>
<xs:enumeration
value="zygotene"/>
<xs:enumeration
value="pachytene"/>
<xs:enumeration
value="diplotene"/>
<xs:enumeration
value="diakinesis"/>
<xs:enumeration
value="metaphase1"/>
<xs:enumeration
value="anaphase1"/>
<xs:enumeration
value="telophase1"/>
<xs:enumeration
value="meiotic-cytokinesis"/>
<xs:enumeration
value="prophase2"/>
<xs:enumeration
value="metaphase2"/>
<xs:enumeration
value="anaphase2"/>
<xs:enumeration
value="telophase2"/>
<xs:enumeration
value="meiotic-cytokinesis2"/>
<xs:enumeration
value="other"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:simpleContent>
</xs:complexType>