Module java.xml

.datatypeObjects that map XML to/from Java Objects. Duration
Immutable representation of a time span as defined in the W3C XML Schema 1.0 specification.
XMLGregorianCalendar
Representation for W3C XML Schema 1.0 date/time datatypes.
  • Exception Summary  
    ExceptionDescription
    DatatypeConfigurationException
    Indicates a serious configuration error.
  • Package javaxPackage javax.xml.datatype Description

    Defines XML/Java Type Mappings.javax.xml.datatype

    This API provides XML/Java type mappings.

    The following XML standards apply:


    W3C XML Schema/Java Type Mappings
    W3C XML Schema Data Type Java Data Type
    xs:dateXMLGregorianCalendar
    xs:dateTimeXMLGregorianCalendar
    xs:durationDuration
    xs:gDayXMLGregorianCalendar
    xs:gMonthXMLGregorianCalendar
    xs:gMonthDayXMLGregorianCalendar
    xs:gYearXMLGregorianCalendar
    xs:gYearMonthXMLGregorianCalendar
    xs:timeXMLGregorianCalendar

    XQuery and XPath/Java Type Mappings
    XQuery 1.0 and XPath 2.0 Data Model Java Data Type
    xdt:dayTimeDurationDuration
    xdt:yearMonthDurationDuration

    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



    Since:
    1.5