|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.odftoolkit.odfdom.type.DateTime
public class DateTime
This class represents the in OpenDocument format used data type dateTime
| Constructor Summary | |
|---|---|
DateTime(XMLGregorianCalendar dateTime)
Construct an newly DateTime object that represents the specified XMLGregorianCalendar value |
|
| Method Summary | |
|---|---|
XMLGregorianCalendar |
getXMLGregorianCalendar()
Returns the value of this DateTime object as an XMLGregorianCalendar |
static boolean |
isValid(XMLGregorianCalendar date)
check if the specified XMLGregorianCalendar instance is a valid dateTime data type |
String |
toString()
Returns a String Object representing this DateTime value |
static DateTime |
valueOf(String stringValue)
Returns a DateTime 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 DateTime(XMLGregorianCalendar dateTime)
throws IllegalArgumentException
dateTime - the value to be represented by the DateTime Object
IllegalArgumentException - if the given argument is not a valid DateTime| Method Detail |
|---|
public String toString()
toString in class Object
public static DateTime valueOf(String stringValue)
throws IllegalArgumentException
stringValue - a String value
IllegalArgumentException - if the given argument is not a valid DateTimepublic XMLGregorianCalendar getXMLGregorianCalendar()
public static boolean isValid(XMLGregorianCalendar date)
date - the value to be tested
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||