java - wsimport JAXB classes for enumerations -


i've got wsdl embedded schema in includes simpletype restrictions enumerations:

<element name="employeeid">     <simpletype>         <restriction base="string">             <maxlength value="2"/>             <enumeration value="el"/>         </restriction>     </simpletype> </element> 

(yes, know example has single enumeration value.) in earlier, vendor-specific tooling, these generating java enums, in current wsimport (jax-ws ri 2.2.4-b01) not.

i've done lot of searching, finds many discussions on custom mappings. i'm not willing manually map individual classes & values, trying find working syntax globally.

however, of reading seems indicate default should create these enums: https://jaxb.java.net/tutorial/section_2_2_9-defining-an-enumeration.html#defining%20an%20enumeration

that have explicitly disable them if don't want them. e.g. https://jaxb.java.net/nonav/2.2.5-5/docs/ch03.html#compiling-xml-schema-avoid-strong-databinding

should correct? if so, ideas why it's not happening?

additional question, should enum generation occur xsd:token well, or xsd:string?


Comments

Popular posts from this blog

hibernate - How to load global settings frequently used in application in Java -

python 3.x - Mapping specific letters onto a list of words -

objective c - Ownership modifiers with manual reference counting -