AI-generated Key Takeaways
-
The
javax.xml.datatype
package provides classes for mapping XML data types to Java objects and vice versa. -
It includes classes for representing durations, dates/times, and utility classes for handling datatype constants and factory creation.
-
DatatypeConstants
andDatatypeConstants.Field
offer utility functions and type-safe enums for working with datatype values. -
DatatypeFactory
enables the creation of new datatype objects, whileDuration
andXMLGregorianCalendar
represent specific XML schema datatypes. -
DatatypeConfigurationException
signals a significant configuration problem during datatype operations.
Classes
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 |
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. |
Exceptions
DatatypeConfigurationException | Indicates a serious configuration error. |