Hi Everyone,
I am using jaxws to generate JAXB objects for an enumeration and am having an issue with it inserting extra underscores into the generated code and was wondering if anyone knew how to prevent this from happening. Specifically, I have an enum defined like this:
<simpleType name ="DataWidthEnum">
<restriction base="string">
<enumeration value="A8_BIT_DATA_BUS"/>
<enumeration value="A16_BIT_DATA_BUS"/>
</restriction>
</simpleType>
but my generated enum class has attributes like this:
@XmlEnumValue("A8_BIT_DATA_BUS")
A_8_BIT_DATA_BUS("A8_BIT_DATA_BUS"),
@XmlEnumValue("A16_BIT_DATA_BUS")
A_16_BIT_DATA_BUS("A16_BIT_DATA_BUS")
Is it possible to stop the underscore insertion happening between the A and 8 or A and 16?
Thanks in advance for any help!
Edited by: user3989028 on Jan 12, 2012 11:16 AM