Factory that creates new javax.xml.datatype Objects that map XML to/from Java Objects.
newInstance() is used to create a new DatatypeFactory.
The following implementation resolution mechanisms are used in the following order:
DATATYPEFACTORY_PROPERTY, "javax.xml.datatype.DatatypeFactory",
exists, a class with the name of the property's value is instantiated.
Any Exception thrown during the instantiation process is wrapped as a DatatypeConfigurationException.
java.util.Properties Object.
The Properties Object is then queried for the property as documented in the prior step
and processed as documented in the prior step.
META-INF/services/java.xml.datatype.DatatypeFactory.
Any Exception thrown during the instantiation process is wrapped as a DatatypeConfigurationException.
Class specified by
DATATYPEFACTORY_IMPLEMENTATION_CLASS, "javax.xml.datatype.DatatypeFactoryImpl".
Any Exception thrown during the instantiation process is wrapped as a DatatypeConfigurationException.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public Duration | Returns: NewDuration created from parsing the lexicalRepresentation.String representation of a Duration.Implements abstract javax. Obtain a new instance of a |
| public Duration | Returns: NewDuration representing durationInMilliseconds.Duration in milliseconds to create. durationInMilliseconds)Implements abstract javax. Obtain a new instance of a |
| public Duration | Returns: NewDuration created from the specified values.Set to isPositive, final BigInteger false to create a negative duration. When the length
of the duration is zero, this parameter will be ignored.of this years, final BigInteger Durationof this months, final BigInteger Durationof this days, final BigInteger Durationof this hours, final BigInteger Durationof this minutes, final BigDecimal Durationof this seconds)DurationImplements abstract javax. Obtain a new instance of a |
| public XMLGregorianCalendar | Returns: NewXMLGregorianCalendar with all date/time datatype fields set to
DatatypeConstants#FIELD_UNDEFINED or null.Implements abstract javax. Create a new instance of an |
| public XMLGregorianCalendar | Returns: XMLGregorianCalendar created from the lexicalRepresentation.Lexical representation of one the eight XML Schema date/time datatypes. lexicalRepresentation)Implements abstract javax. Create a new XMLGregorianCalendar by parsing the String as a lexical representation. |
| public XMLGregorianCalendar | Returns: XMLGregorianCalendar created from java.util.GregorianCalendarjava.util.GregorianCalendar used to create XMLGregorianCalendarImplements abstract javax. Create an |
| public XMLGregorianCalendar | Returns: XMLGregorianCalendar created from specified values.of year, final int XMLGregorianCalendar to be created.of month, final int XMLGregorianCalendar to be created.of day, final int XMLGregorianCalendar to be created.of hour, final int XMLGregorianCalendar to be created.of minute, final int XMLGregorianCalendar to be created.of second, final int XMLGregorianCalendar to be created.of millisecond, final int XMLGregorianCalendar to be created.of timezone)XMLGregorianCalendar to be created.Overrides javax. Constructor of value spaces that a
|
| public XMLGregorianCalendar | Returns: XMLGregorianCalendar created from specified values.of year, final int XMLGregorianCalendar to be created.of month, final int XMLGregorianCalendar to be created.of day, final int XMLGregorianCalendar to be created.of hour, final int XMLGregorianCalendar to be created.of minute, final int XMLGregorianCalendar to be created.of second, final BigDecimal XMLGregorianCalendar to be created.of fractionalSecond, final int XMLGregorianCalendar to be created.of timezone)XMLGregorianCalendar to be created.Implements abstract javax. Constructor allowing for complete value spaces allowed by W3C XML Schema 1.0 recommendation for xsd:dateTime and related builtin datatypes. |
| DatatypeFactoryImpl | back to summary |
|---|---|
| public DatatypeFactoryImpl() Public constructor is empty.. Use | |
| newDuration | back to summary |
|---|---|
| public Duration newDuration(final String lexicalRepresentation) Implements abstract javax. Obtain a new instance of a XML Schema Part 2: Datatypes, 3.2.6 duration, defines duration represents a duration of time. The value space of duration is a six-dimensional space where the coordinates designate the Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. These components are ordered in their significance by their order of appearance i.e. as year, month, day, hour, minute, and second. All six values are set and availabe from the created The XML Schema specification states that values can be of an arbitrary size.
Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values.
An
| |
| newDuration | back to summary |
|---|---|
| public Duration newDuration(final long durationInMilliseconds) Implements abstract javax. Obtain a new instance of a XML Schema Part 2: Datatypes, 3.2.6 duration, defines duration represents a duration of time. The value space of duration is a six-dimensional space where the coordinates designate the Gregorian year, month, day, hour, minute, and second components defined in Section 5.5.3.2 of [ISO 8601], respectively. These components are ordered in their significance by their order of appearance i.e. as year, month, day, hour, minute, and second. All six values are set by computing their values from the specified milliseconds
and are availabe using the
The default start instance is defined by
| |
| newDuration | back to summary |
|---|---|
| public Duration newDuration(final boolean isPositive, final BigInteger years, final BigInteger months, final BigInteger days, final BigInteger hours, final BigInteger minutes, final BigDecimal seconds) Implements abstract javax. Obtain a new instance of a The XML Schema specification states that values can be of an arbitrary size.
Implementations may chose not to or be incapable of supporting arbitrarily large and/or small values.
An
| |
| newXMLGregorianCalendar | back to summary |
|---|---|
| public XMLGregorianCalendar newXMLGregorianCalendar() Implements abstract javax. Create a new instance of an All date/time datatype fields set to
| |
| newXMLGregorianCalendar | back to summary |
|---|---|
| public XMLGregorianCalendar newXMLGregorianCalendar(final String lexicalRepresentation) Implements abstract javax. Create a new XMLGregorianCalendar by parsing the String as a lexical representation. Parsing the lexical string representation is defined in XML Schema 1.0 Part 2, Section 3.2.[7-14].1, Lexical Representation. The string representation may not have any leading and trailing whitespaces. The parsing is done field by field so that the following holds for any lexically correct String x: newXMLGregorianCalendar(x).toXMLFormat().equals(x) Except for the noted lexical/canonical representation mismatches listed in XML Schema 1.0 errata, Section 3.2.7.2.
| |
| newXMLGregorianCalendar | back to summary | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| public XMLGregorianCalendar newXMLGregorianCalendar(final GregorianCalendar cal) Implements abstract javax. Create an
*conversion loss of information. It is not possible to represent
a To compute the return value's
| |||||||||||||||
| newXMLGregorianCalendar | back to summary |
|---|---|
| public XMLGregorianCalendar newXMLGregorianCalendar(final int year, final int month, final int day, final int hour, final int minute, final int second, final int millisecond, final int timezone) Overrides javax. Constructor of value spaces that a
A
| |
| newXMLGregorianCalendar | back to summary |
|---|---|
| public XMLGregorianCalendar newXMLGregorianCalendar(final BigInteger year, final int month, final int day, final int hour, final int minute, final int second, final BigDecimal fractionalSecond, final int timezone) Implements abstract javax. Constructor allowing for complete value spaces allowed by
W3C XML Schema 1.0 recommendation for xsd:dateTime and related
builtin datatypes. Note that
| |