Built-in simple types
Built-in schema types map to XOM dynamic class types.
The following table summarizes how built-in schema types are mapped to dynamic class types.
| XML schema type | XOM dynamic class type |
|---|---|
| boolean | boolean |
| decimal | java.math.BigDecimal |
| double | double |
| integer | java.math.BigInteger |
| int | int |
| ID | java.lang.String |
| nonPositiveInteger | java.math.BigInteger |
| negativeInteger | java.math.BigInteger |
| nonNegativeInteger | java.math.BigInteger |
| positiveInteger | java.math.BigInteger |
| unsignedLong | java.math.BigInteger |
| unsignedInt | long |
| unsignedShort | int |
| unsignedByte | short |
| normalizedString | java.lang.String |
| token | java.lang.String |
| language | java.lang.String |
| name | java.lang.String |
| ENTITY | java.lang.String |
| IDREFS | java.util.Vector |
| ENTITIES | java.util.Vector |
| float | float |
| duration | ilog.rules.xml.types.IlrDuration |
| dateTime | ilog.rules.xml.types.IlrDateTime |
| time | ilog.rules.xml.types.IlrTime |
| gYearMonth | ilog.rules.xml.types.IlrGYearMonth |
| gMonthDay | ilog.rules.xml.types.IlrGMonthDay |
| gDay | ilog.rules.xml.types.IlrGDay |
| gMonth | ilog.rules.xml.types.IlrGMonth |
| date | ilog.rules.xml.types.IlrDate |
| gYear | ilog.rules.xml.types.IlrGYear |
| NMTOKENS | java.util.Vector |
| anyURI | java.lang.String |
| QNAME | java.lang.String |
| NOTATION | java.lang.String |
| hexBinary | byte[] |
| base64Binary | byte[] |
| IDREF | java.lang.String |
| string | java.lang.String |
| NCNAME | java.lang.String |
| NMTOKEN | java.lang.String |
| long | long |
| short | short |
Note:
IDRef is mapped to a String. Management of reference and ID is currently not available.