Defines XML/Java Type Mappings.
This API provides XML/Java type mappings.
The following XML standards apply:
| W3C XML Schema Data Type | Java Data Type |
|---|---|
| xs:date | javax. |
| xs:dateTime | javax. |
| xs:duration | javax. |
| xs:gDay | javax. |
| xs:gMonth | javax. |
| xs:gMonthDay | javax. |
| xs:gYear | javax. |
| xs:gYearMonth | javax. |
| xs:time | javax. |
| XQuery 1.0 and XPath 2.0 Data Model | Java Data Type |
|---|---|
| xdt:dayTimeDuration | javax. |
| xdt:yearMonthDuration | javax. |
W3C XML Schema data types that have a "natural" mapping to Java types are defined by JSR 31: Java Architecture for XML Binding (JAXB) Specification, Binding XML Schema to Java Representations. JAXB defined mappings for XML Schema built-in data types include:
| Modifier and Type | Class and Description |
|---|---|
| public class | DatatypeConfigurationException
Indicates a serious configuration error. |
| public class | DatatypeConstants
Utility class to contain basic Datatype values as constants. |
| public abstract class | DatatypeFactory
Factory that creates new |
| public abstract class | Duration
Immutable representation of a time span as defined in the W3C XML Schema 1.0 specification. |
| pack-priv class | FactoryFinder
Implements pluggable Datatypes. |
| public abstract class | XMLGregorianCalendar
Representation for W3C XML Schema 1.0 date/time datatypes. |