Package com.stardog.stark
Class XMLCalendar.Delegate
- java.lang.Object
-
- com.stardog.stark.XMLCalendar.Delegate
-
- All Implemented Interfaces:
XMLCalendar
- Enclosing interface:
- XMLCalendar
public static class XMLCalendar.Delegate extends java.lang.Object implements XMLCalendar
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.stardog.stark.XMLCalendar
XMLCalendar.Delegate
-
-
Constructor Summary
Constructors Constructor Description Delegate(javax.xml.datatype.XMLGregorianCalendar xc)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(XMLCalendar other)
int
getDay()
java.math.BigInteger
getEon()
Returns the high order component for XML Schema 1.0 dateTime datatype field for year.java.math.BigDecimal
getFractionalSecond()
int
getHour()
int
getMillisecond()
int
getMinute()
int
getMonth()
int
getSecond()
int
getTimezone()
int
getYear()
java.lang.String
toXMLFormat()
javax.xml.datatype.XMLGregorianCalendar
unwrap()
Get underlying calendar object.
-
-
-
Method Detail
-
getEon
public java.math.BigInteger getEon()
Description copied from interface:XMLCalendar
Returns the high order component for XML Schema 1.0 dateTime datatype field for year. Should always be null for inlined values- Specified by:
getEon
in interfaceXMLCalendar
- Returns:
- Null if this optional part of the year field is not defined.
- See Also:
XMLGregorianCalendar
-
getYear
public int getYear()
- Specified by:
getYear
in interfaceXMLCalendar
-
getMonth
public int getMonth()
- Specified by:
getMonth
in interfaceXMLCalendar
-
getDay
public int getDay()
- Specified by:
getDay
in interfaceXMLCalendar
-
getHour
public int getHour()
- Specified by:
getHour
in interfaceXMLCalendar
-
getMinute
public int getMinute()
- Specified by:
getMinute
in interfaceXMLCalendar
-
getSecond
public int getSecond()
- Specified by:
getSecond
in interfaceXMLCalendar
-
getMillisecond
public int getMillisecond()
- Specified by:
getMillisecond
in interfaceXMLCalendar
-
getFractionalSecond
public java.math.BigDecimal getFractionalSecond()
- Specified by:
getFractionalSecond
in interfaceXMLCalendar
-
getTimezone
public int getTimezone()
- Specified by:
getTimezone
in interfaceXMLCalendar
-
toXMLFormat
public java.lang.String toXMLFormat()
- Specified by:
toXMLFormat
in interfaceXMLCalendar
-
compare
public int compare(XMLCalendar other)
- Specified by:
compare
in interfaceXMLCalendar
- See Also:
XMLGregorianCalendar.compare(XMLGregorianCalendar)
-
unwrap
public javax.xml.datatype.XMLGregorianCalendar unwrap()
Description copied from interface:XMLCalendar
Get underlying calendar object. Might be created lazily.- Specified by:
unwrap
in interfaceXMLCalendar
- Returns:
-
-