Javax.Xml.Datatype Namespace

Documentation for this section has not yet been entered.


To be added.


DatatypeConstants+FieldType-safe enum class that represents six fields of the Javax.Xml.Datatype.Duration class.
Date/Time Datatype Field Mapping Between XML Schema 1.0 and Java Representation
XML Schema 1.0
Value Range
year Javax.Xml.Datatype.XMLGregorianCalendar.Year + Javax.Xml.Datatype.XMLGregorianCalendar.Eon or
getYear() is a value between -(10^9-1) to (10^9)-1 or Javax.Xml.Datatype.DatatypeConstants.FieldUndefined.
Javax.Xml.Datatype.XMLGregorianCalendar.Eon is high order year value in billion of years.
getEon() has values greater than or equal to (10^9) or less than or equal to -(10^9). A value of null indicates field is undefined.
Given that states that the year zero will be a valid lexical value in a future version of XML Schema, this class allows the year field to be set to zero. Otherwise, the year field value is handled exactly as described in the errata and [ISO-8601-1988]. Note that W3C XML Schema 1.0 validation does not allow for the year field to have a value of zero.
month Javax.Xml.Datatype.XMLGregorianCalendar.Month 1 to 12 or Javax.Xml.Datatype.DatatypeConstants.FieldUndefined
day Javax.Xml.Datatype.XMLGregorianCalendar.Day Independent of month, max range is 1 to 31 or Javax.Xml.Datatype.DatatypeConstants.FieldUndefined.
The normative value constraint stated relative to month field's value is in .
hour Javax.Xml.Datatype.XMLGregorianCalendar.Hour 0 to 24 or Javax.Xml.Datatype.DatatypeConstants.FieldUndefined. For a value of 24, the minute and second field must be zero per .
minute Javax.Xml.Datatype.XMLGregorianCalendar.Minute 0 to 59 or Javax.Xml.Datatype.DatatypeConstants.FieldUndefined
second Javax.Xml.Datatype.XMLGregorianCalendar.Second + Javax.Xml.Datatype.XMLGregorianCalendar.Millisecond/1000 or
Javax.Xml.Datatype.XMLGregorianCalendar.Second + Javax.Xml.Datatype.XMLGregorianCalendar.FractionalSecond
Javax.Xml.Datatype.XMLGregorianCalendar.Second from 0 to 60 or Javax.Xml.Datatype.DatatypeConstants.FieldUndefined.
(Note: 60 only allowable for leap second.)
Javax.Xml.Datatype.XMLGregorianCalendar.FractionalSecond allows for infinite precision over the range from 0.0 to 1.0 when the Javax.Xml.Datatype.XMLGregorianCalendar.Second is defined.
FractionalSecond is optional and has a value of null when it is undefined.
Javax.Xml.Datatype.XMLGregorianCalendar.Millisecond is the convenience millisecond precision of value of Javax.Xml.Datatype.XMLGregorianCalendar.FractionalSecond.
timezone Javax.Xml.Datatype.XMLGregorianCalendar.Timezone Number of minutes or Javax.Xml.Datatype.DatatypeConstants.FieldUndefined. Value range from -14 hours (-14 * 60 minutes) to 14 hours (14 * 60 minutes).