开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜