|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.odfdom.type.DateOrDateTime
public class DateOrDateTime
This class represents the in OpenDocument format used data type dateOrDateTime
Constructor Summary | |
---|---|
DateOrDateTime(XMLGregorianCalendar dateOrDateTime)
Construct an newly DateOrDateTime object that represents the specified XMLGregorianCalendar value |
Method Summary | |
---|---|
XMLGregorianCalendar |
getXMLGregorianCalendar()
Returns the value of this DateOrDateTime object as an XMLGregorianCalendar |
static boolean |
isValid(XMLGregorianCalendar dateOrDateTime)
check if the specified XMLGregorianCalendar instance is a valid dateOrDateTime data type |
String |
toString()
Returns a String Object representing this DateOrDateTime value |
static DateOrDateTime |
valueOf(String stringValue)
Returns a DateOrDateTime instance representing the specified String value |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DateOrDateTime(XMLGregorianCalendar dateOrDateTime) throws IllegalArgumentException
dateOrDateTime
- the value to be represented by the DateOrDateTime Object
IllegalArgumentException
- if the given argument is not a valid DateOrDateTimeMethod Detail |
---|
public String toString()
toString
in class Object
public static DateOrDateTime valueOf(String stringValue) throws IllegalArgumentException
stringValue
- a String value
IllegalArgumentException
- if the given argument is not a valid DateOrDateTimepublic XMLGregorianCalendar getXMLGregorianCalendar()
public static boolean isValid(XMLGregorianCalendar dateOrDateTime)
dateOrDateTime
- the value to be tested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |