API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.xml.datatype. XMLGregorianCalendar View Source
Author(s)
Joseph Fialli
Kohsuke Kawaguchi
Jeff Suttor
Sunitha Reddy
Since
1.5
Version
$Revision: 1.7 $, $Date: 2006/01/12 18:53:55 $
Serial
Hierarchy
 Object
      XMLGregorianCalendar
Implements
 Cloneable
Subclasses
Description
publicabstract abstract class XMLGregorianCalendar
  Representation for W3C XML Schema 1.0 date/time datatypes.
See also:    Duration DatatypeFactory
Constructors
public XMLGregorianCalendar ()
  Default no-arg constructor.
Methods
Hide/Show inherited methods
publicabstract void add (Duration duration)
  Add duration to this instance.
publicabstract void clear ()
  Unset all fields to undefined.
publicabstract Object clone ()
  Creates and returns a copy of this object.
publicabstract 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.
public boolean equals (Object obj)
  Compares this calendar to the specified object.
publicabstract int getDay ()
  Return day in month or DatatypeConstants.FIELD_UNDEFINED.
publicabstract BigInteger getEon ()
  Return high order component for XML Schema 1.0 dateTime datatype field for year.
publicabstract BigInteger getEonAndYear ()
  Return XML Schema 1.0 dateTime datatype field for year.
publicabstract BigDecimal getFractionalSecond ()
  Return fractional seconds.
publicabstract int getHour ()
  Return hours or DatatypeConstants.FIELD_UNDEFINED.
public int getMillisecond ()
  Return millisecond precision of XMLGregorianCalendar.getFractionalSecond().
publicabstract int getMinute ()
  Return minutes or DatatypeConstants.FIELD_UNDEFINED.
publicabstract int getMonth ()
  Return number of month or DatatypeConstants.FIELD_UNDEFINED.
publicabstract int getSecond ()
  Return seconds or DatatypeConstants.FIELD_UNDEFINED.
publicabstract int getTimezone ()
  Return timezone offset in minutes or DatatypeConstants.FIELD_UNDEFINED if this optional field is not defined.
publicabstract TimeZone getTimeZone (int defaultZoneoffset)
  Returns a java.util.TimeZone for this class.
publicabstract QName getXMLSchemaType ()
  Return the name of the XML Schema date/time type that this instance maps to.
publicabstract int getYear ()
  Return low order component for XML Schema 1.0 dateTime datatype field for year or DatatypeConstants.FIELD_UNDEFINED.
public int hashCode ()
  Returns a hash code consistent with the definition of the equals method.
publicabstract boolean isValid ()
  Validate instance by getXMLSchemaType() constraints.
publicabstract XMLGregorianCalendar normalize ()
  Normalize this instance to UTC.
publicabstract void reset ()
  Reset this XMLGregorianCalendar to its original values.
publicabstract void setDay (int day)
  Set days in month.
publicabstract void setFractionalSecond (BigDecimal fractional)
  Set fractional seconds.
publicabstract void setHour (int hour)
  Set hours.
publicabstract void setMillisecond (int millisecond)
  Set milliseconds.
publicabstract void setMinute (int minute)
  Set minutes.
publicabstract void setMonth (int month)
  Set month.
publicabstract void setSecond (int second)
  Set seconds.
public void setTime (int hour, int minute, int second)
  Set time as one unit.
public void setTime (int hour, int minute, int second, BigDecimal fractional)
  Set time as one unit, including the optional infinite precision fractional seconds.
public void setTime (int hour, int minute, int second, int millisecond)
  Set time as one unit, including optional milliseconds.
publicabstract void setTimezone (int offset)
  Set the number of minutes in the timezone offset.
publicabstract void setYear (BigInteger year)
  Set low and high order component of XSD dateTime year field.
publicabstract void setYear (int year)
  Set year of XSD dateTime year field.
publicabstract GregorianCalendar toGregorianCalendar ()
  Convert this XMLGregorianCalendar to a GregorianCalendar.
publicabstract GregorianCalendar toGregorianCalendar (TimeZone timezone, Locale aLocale, XMLGregorianCalendar defaults)
  Convert this XMLGregorianCalendar along with provided parameters to a GregorianCalendar instance.
public String toString ()
  Returns a String representation of this XMLGregorianCalendar Object.
publicabstract String toXMLFormat ()
  Return the lexical representation of this instance.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar