users@jaxb.java.net

xjc:simple - Plural (not suitable for other languages)

From: Markus Mitterauer <markus.mitterauer_at_generali.at>
Date: Tue, 6 Aug 2013 18:24:37 +0200

Hello,

I sought for a solution with which XJC generates a class for "SCHADEN"
from the given XSD defintion (which it does not by default):

        <xsd:element name="SCHADEN" type="omds:SCHADEN_Type" abstract=
"false">
                <xsd:unique name="PK_SCHADEN_BETEILIGTER">
                        <xsd:selector xpath="./omds:SCHADEN_BETEILIGTER"/>
                        <xsd:field xpath="@BetLfnr"/>
                </xsd:unique>
        </xsd:element>
        <xsd:complexType name="SCHADEN_Type">
                ...
        </xsd:complexType>

The full XML schema:
        (from http://www.vvo.at/omds-version-2.6-00/index.php)


I found out that "xjc:simple" does exactly what I was looking for.
        http://jaxb.java.net/2.1.2/docs/vendorCustomizations.html#simple


But (unfortunately) "xjc:simple" has a little blemish for me:
since the element names in the given XML schema are in german language,
the pluralisation applied by "xjc:simple" results in some strange field
names in the generated classes.

I would greatly appreciate an option to turn of pluralisation with the
"xjc:simple" feature.


kind regards,
Markus Mitterauer
-----------------------------
VIS-ST-VS
Elektronische Verkaufssysteme

Generali VIS Informatik GmbH
1220 Wien, Kratochwjlestr. 4

fon: +43 1 53401 -13427
fax: +43 1 5320949 -13427
-----------------------------