Package javax.xml.datatype

XML/Java Type Mappings.

See: Description

  • Class Summary 
    Class Description
    DatatypeConstants
    Utility class to contain basic Datatype values as constants.
    DatatypeConstants.Field
    Type-safe enum class that represents six fields of the Duration class.
    DatatypeFactory
    Factory that creates new javax.xml.datatype Objects 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 
    Exception Description
    DatatypeConfigurationException
    Indicates a serious configuration error.

      

Package javax.xml.datatype Description

XML/Java Type Mappings.

javax.xml.datatypeAPI provides XML/Java type mappings.

The following XML standards apply:

W3C 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

  

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

Document created the 11/06/2005, last modified the 04/03/2020
Source of the printed document:https://www.gaudry.be/en/java-api-rf-javax/xml/datatype/package-summary.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author This site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.

Contents Haut