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

XML Schema data type | Java data type
--- | ---
xs:date | XMLGregorianCalendar
xs:dateTime | XMLGregorianCalendar
xs:duration | Duration
xs:gDay | XMLGregorianCalendar
xs:gMonth | XMLGregorianCalendar
xs:gMonthDay | XMLGregorianCalendar
xs:gYear | XMLGregorianCalendar
xs:gYearMonth | XMLGregorianCalendar
xs:time | XMLGregorianCalendar

XPath 2.0 data type | Java data type
--- | ---
xdt:dayTimeDuration | Duration
xdt:yearMonthDuration | Duration

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).