Package javax.xml.datatype

This package provides type mappings between XML and Java data types.

See: Description

Package javax.xml.datatype Description:

This package provides type mappings between XML and Java data types.
XML Schema data typeJava data type
xs:dateXMLGregorianCalendar
xs:dateTimeXMLGregorianCalendar
xs:durationDuration
xs:gDayXMLGregorianCalendar
xs:gMonthXMLGregorianCalendar
xs:gMonthDayXMLGregorianCalendar
xs:gYearXMLGregorianCalendar
xs:gYearMonthXMLGregorianCalendar
xs:timeXMLGregorianCalendar
XPath 2.0 data typeJava data type
xdt:dayTimeDurationDuration
xdt:yearMonthDurationDuration
Other XML Schema data types are considered to have a natural mapping to Java types, which are defined by the Java Architecture for XML Binding (JAXB).