public class Date extends Object implements OdfFieldDataType, OdfDataType
Constructor and Description |
---|
Date(XMLGregorianCalendar date)
Construct an newly Date object that represents the specified
XMLGregorianCalendar value
|
Modifier and Type | Method and Description |
---|---|
XMLGregorianCalendar |
getXMLGregorianCalendar()
Returns the value of this Date object as an XMLGregorianCalendar
|
static boolean |
isValid(XMLGregorianCalendar date)
check if the specified XMLGregorianCalendar instance is a valid date data
type
|
String |
toString()
Returns a String Object representing this Date value
|
static Date |
valueOf(String stringValue)
Returns a Date instance representing the specified String value
|
public Date(XMLGregorianCalendar date) throws IllegalArgumentException
date
- the value to be represented by the Date ObjectIllegalArgumentException
- if the given argument is not a valid Datepublic String toString()
public static Date valueOf(String stringValue) throws IllegalArgumentException
stringValue
- a String valueIllegalArgumentException
- If the stringValue is not a datepublic XMLGregorianCalendar getXMLGregorianCalendar()
public static boolean isValid(XMLGregorianCalendar date)
date
- the value to be testedCopyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.