A simple type name is mapped onto a XOM class name, according to the following rules:
-
The first type letter is translated into lowercase.
-
All characters that could be contained in a Java identifier are translated without change.
-
The other characters are discarded and the next letter is translated to uppercase.
-
If the resulting class name is already used as a class or simple type identifier, a numeric suffix is appended to the name. For example,
name becomes name_0.
Following these rules, zip-code becomes zipCode.
Related Reference