Package javax.xml.datatype
XML/Java Type Mappings.
XML/Java Type Mappings.
javax.xml.datatype
API provides XML/Java type mappings.
The following XML standards apply:
XQuery 1.0 and XPath 2.0 Data Model | Java Data Type |
---|
xdt:dayTimeDuration | Duration |
xdt:yearMonthDuration | Duration |
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:
- xs:anySimpleType
- xs:base64Binary
- xs:boolean
- xs:byte
- xs:decimal
- xs:double
- xs:float
- xs:hexBinary
- xs:int
- xs:integer
- xs:long
- xs:QName
- xs:short
- xs:string
- xs:unsignedByte
- xs:unsignedInt
- xs:unsignedShort