Uses of Class javax.xml.datatype.XMLGregorianCalendar (Java SE 26 & JDK 26)
Description: use: module: java.xml, package: javax.xml.datatype, class: XMLGregorianCalendar

# Uses of Class
javax.xml.datatype.XMLGregorianCalendar

Packages that use XMLGregorianCalendar
Package
Description
javax.xml.datatype
Defines XML/Java Type Mappings.

- ## Uses of XMLGregorianCalendar in javax.xml.datatype

  Methods in javax.xml.datatype that return XMLGregorianCalendar
  Modifier and Type
  Method
  Description
  `abstract XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendar()`
  Create a new instance of an `XMLGregorianCalendar`.
  `XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendar(int year, int month, int day, int hour, int minute, int second, int millisecond, int timezone)`
  Constructor of value spaces that a `java.util.GregorianCalendar` instance would need to convert to an `XMLGregorianCalendar` instance.
  `abstract XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendar(String lexicalRepresentation)`
  Create a new XMLGregorianCalendar by parsing the String as a lexical representation.
  `abstract XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendar(BigInteger year, int month, int day, int hour, int minute, int second, BigDecimal fractionalSecond, int timezone)`
  Constructor allowing for complete value spaces allowed by W3C XML Schema 1.0 recommendation for xsd:dateTime and related builtin datatypes.
  `abstract XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendar(GregorianCalendar cal)`
  Create an `XMLGregorianCalendar` from a `GregorianCalendar`.
  `XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendarDate(int year, int month, int day, int timezone)`
  Create a Java representation of XML Schema builtin datatype `date` or `g*`.
  `XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendarTime(int hours, int minutes, int seconds, int timezone)`
  Create a Java instance of XML Schema builtin datatype `time`.
  `XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendarTime(int hours, int minutes, int seconds, int milliseconds, int timezone)`
  Create a Java instance of XML Schema builtin datatype time.
  `XMLGregorianCalendar`
  DatatypeFactory.`newXMLGregorianCalendarTime(int hours, int minutes, int seconds, BigDecimal fractionalSecond, int timezone)`
  Create a Java instance of XML Schema builtin datatype time.
  `abstract XMLGregorianCalendar`
  XMLGregorianCalendar.`normalize()`
  Normalize this instance to UTC.
  Methods in javax.xml.datatype with parameters of type XMLGregorianCalendar
  Modifier and Type
  Method
  Description
  `abstract int`
  XMLGregorianCalendar.`compare(XMLGregorianCalendar xmlGregorianCalendar)`
  Compare two instances of W3C XML Schema 1.0 date/time datatypes according to partial order relation defined in W3C XML Schema 1.0 Part 2, Section 3.2.7.3, Order relation on dateTime.
  `abstract GregorianCalendar`
  XMLGregorianCalendar.`toGregorianCalendar(TimeZone timezone, Locale aLocale, XMLGregorianCalendar defaults)`
  Convert this `XMLGregorianCalendar` along with provided parameters to a `GregorianCalendar` instance.