Java javax.xml.datatype XMLGregorianCalendar fields, constructors, methods, implement or subclass

Example usage for Java javax.xml.datatype XMLGregorianCalendar fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.xml.datatype XMLGregorianCalendar.

The text is from its open source code.

Method

voidadd(Duration duration)
Add duration to this instance.
Objectclone()
Creates and returns a copy of this object.
intcompare(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.
booleanequals(Object obj)
Compares this calendar to the specified object.
ClassgetClass()
Returns the runtime class of this Object .
intgetDay()
Returns the day of month or DatatypeConstants#FIELD_UNDEFINED .
BigIntegergetEon()
Returns the high order component for XML Schema 1.0 dateTime datatype field for year .
BigIntegergetEonAndYear()
Returns the XML Schema 1.0 dateTime datatype field for year .
BigDecimalgetFractionalSecond()
Returns fractional seconds.
intgetHour()
Returns the hour of day or DatatypeConstants#FIELD_UNDEFINED if this field is not defined.
intgetMillisecond()
Returns the millisecond precision of #getFractionalSecond() .
intgetMinute()
Returns the minute of hour or DatatypeConstants#FIELD_UNDEFINED if this field is not defined.
intgetMonth()
Returns the month of this calendar or DatatypeConstants#FIELD_UNDEFINED .
intgetSecond()
Returns the second of minute or DatatypeConstants#FIELD_UNDEFINED if this field is not defined.
intgetTimezone()
Returns the Timezone offset in minutes or DatatypeConstants#FIELD_UNDEFINED if this optional field is not defined.
TimeZonegetTimeZone(int defaultZoneoffset)
Returns a java.util.TimeZone for this class.
QNamegetXMLSchemaType()
Return the name of the XML Schema date/time type that this instance maps to.
intgetYear()
Returns the low order component for XML Schema 1.0 dateTime datatype field for year or DatatypeConstants#FIELD_UNDEFINED .
booleanisValid()
Validate instance by getXMLSchemaType() constraints.
XMLGregorianCalendarnormalize()
Normalize this instance to UTC.
voidsetDay(int day)
Set days in month.
voidsetFractionalSecond(BigDecimal fractional)
Set fractional seconds.
voidsetHour(int hour)
Set hours.
voidsetMillisecond(int millisecond)
Set milliseconds.
voidsetMinute(int minute)
Set minutes.
voidsetMonth(int month)
Set month.
voidsetSecond(int second)
Set seconds.
voidsetTime(int hour, int minute, int second)
Set time as one unit.
voidsetTime(int hour, int minute, int second, BigDecimal fractional)
Set time as one unit, including the optional infinite precision fractional seconds.
voidsetTime(int hour, int minute, int second, int millisecond)
Set time as one unit, including optional milliseconds.
voidsetTimezone(int offset)
Set the number of minutes in the timezone offset.
voidsetYear(BigInteger year)
Set low and high order component of XSD dateTime year field.
voidsetYear(int year)
Set year of XSD dateTime year field.
GregorianCalendartoGregorianCalendar()
Convert this XMLGregorianCalendar to a GregorianCalendar .
GregorianCalendartoGregorianCalendar(java.util.TimeZone timezone, java.util.Locale aLocale, XMLGregorianCalendar defaults)
Convert this XMLGregorianCalendar along with provided parameters to a GregorianCalendar instance.
StringtoString()
Returns a String representation of this XMLGregorianCalendar Object .
StringtoXMLFormat()
Return the lexical representation of this instance.