Generating JAXB classes with custom class names
I have a schema which names all its elements 开发者_StackOverflow中文版and complexTypes in capital letters and so all my class names are also in caps.
Can you let me know how to capture this and name the classes in CamelCase?
Ex: Snippet of XSD :
<xs:element name="REGISTRATION_DATE">
<xs:complexType mixed="true">
<xs:attribute name="UNIT" />
</xs:complexType>
</xs:element>
Currently it is generating as : REGISTRATIONDATE . But I would like to generate class as : RegistrationDate .
Regards, Satya
There is a plugin for XJC to do this - the CamelCase Always plugin.
精彩评论