Schema types
XSD types are mapped to BOM types.
The following table summarizes how schema built-in types are mapped to BOM types.
| XML schema type | BOM type | Comment |
|---|---|---|
| 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.List | |
| ENTITIES | java.util.List | |
| float | float | |
| duration | com.ibm.ia.time.CalendarDuration | |
| dateTime | java.time.ZonedDateTime | If the XML value does not contain a time zone, the value is stored as a local date time in the Java™ object. |
| time | java.time.LocalTime | If the XML value contains a time zone, the time zone is not stored in the Java object. |
| gDay | com.ibm.ia.time.DayOfMonth | If the XML value contains a time zone, the time zone is not stored in the Java object. |
| gMonth | java.time.Month | If the XML value contains a time zone, the time zone is not stored in the Java object. For example, if the XML value for gMonth is --04-05:00, the information that is stored in java.time.Month is --04. |
| date | java.time.LocalDate | If the XML value contains a time zone, the time zone is not stored in the Java object. |
| gYear | java.time.Year | If the XML value contains a time zone, the time zone is not stored in the Java object. |
| gYearMonth | java.time.YearMonth | If the XML value contains a time zone, the time zone is not stored in the Java object. |
| gMonthDay | java.time.MonthDay | If the XML value contains a time zone, the time zone is not stored in the Java object. |
| NMTOKENS | java.util.List | |
| anyURI | java.lang.String | |
| QName | java.lang.String | |
| NOTATION | java.lang.String | |
| IDREF | java.lang.String | IDRef is mapped to a String. Management of reference and ID is currently not available. |
| string | java.lang.String | |
| NCName | java.lang.String | |
| NMTOKEN | java.lang.String | |
| long | long | |
| short | short |