Example usage for Java javax.xml.datatype XMLGregorianCalendar fields, constructors, methods, implement or subclass
The text is from its open source code.
void | add(Duration duration) Add duration to this instance. |
Object | clone() Creates and returns a copy of this object. |
int | 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. |
boolean | equals(Object obj) Compares this calendar to the specified object. |
Class> | getClass() Returns the runtime class of this Object . |
int | getDay() Returns the day of month or DatatypeConstants#FIELD_UNDEFINED . |
BigInteger | getEon() Returns the high order component for XML Schema 1.0 dateTime datatype field for year . |
BigInteger | getEonAndYear() Returns the XML Schema 1.0 dateTime datatype field for year . |
BigDecimal | getFractionalSecond() Returns fractional seconds. |
int | getHour() Returns the hour of day or DatatypeConstants#FIELD_UNDEFINED if this field is not defined. |
int | getMillisecond() Returns the millisecond precision of #getFractionalSecond() . |
int | getMinute() Returns the minute of hour or DatatypeConstants#FIELD_UNDEFINED if this field is not defined. |
int | getMonth() Returns the month of this calendar or DatatypeConstants#FIELD_UNDEFINED . |
int | getSecond() Returns the second of minute or DatatypeConstants#FIELD_UNDEFINED if this field is not defined. |
int | getTimezone() Returns the Timezone offset in minutes or DatatypeConstants#FIELD_UNDEFINED if this optional field is not defined. |
TimeZone | getTimeZone(int defaultZoneoffset) Returns a java.util.TimeZone for this class. |
QName | getXMLSchemaType() Return the name of the XML Schema date/time type that this instance maps to. |
int | getYear() Returns the low order component for XML Schema 1.0 dateTime datatype field for year or DatatypeConstants#FIELD_UNDEFINED . |
boolean | isValid() Validate instance by getXMLSchemaType() constraints. |
XMLGregorianCalendar | normalize() Normalize this instance to UTC. |
void | setDay(int day) Set days in month. |
void | setFractionalSecond(BigDecimal fractional) Set fractional seconds. |
void | setHour(int hour) Set hours. |
void | setMillisecond(int millisecond) Set milliseconds. |
void | setMinute(int minute) Set minutes. |
void | setMonth(int month) Set month. |
void | setSecond(int second) Set seconds. |
void | setTime(int hour, int minute, int second) Set time as one unit. |
void | setTime(int hour, int minute, int second, BigDecimal fractional) Set time as one unit, including the optional infinite precision fractional seconds. |
void | setTime(int hour, int minute, int second, int millisecond) Set time as one unit, including optional milliseconds. |
void | setTimezone(int offset) Set the number of minutes in the timezone offset. |
void | setYear(BigInteger year) Set low and high order component of XSD dateTime year field. |
void | setYear(int year) Set year of XSD dateTime year field. |
GregorianCalendar | toGregorianCalendar() Convert this XMLGregorianCalendar to a GregorianCalendar . |
GregorianCalendar | toGregorianCalendar(java.util.TimeZone timezone, java.util.Locale aLocale, XMLGregorianCalendar defaults) Convert this XMLGregorianCalendar along with provided parameters to a GregorianCalendar instance. |
String | toString() Returns a String representation of this XMLGregorianCalendar Object . |
String | toXMLFormat() Return the lexical representation of this instance. |