public class TimeOrDateTime extends Object implements OdfDataType
| Constructor and Description |
|---|
TimeOrDateTime(XMLGregorianCalendar timeOrDateTime)
Construct an newly TimeOrDateTime object that represents the specified XMLGregorianCalendar
value
|
| Modifier and Type | Method and Description |
|---|---|
XMLGregorianCalendar |
getXMLGregorianCalendar()
Returns the value of this TimeOrDateTime object as an XMLGregorianCalendar
|
static boolean |
isValid(XMLGregorianCalendar timeOrDateTime)
check if the specified XMLGregorianCalendar instance is a valid timeOrDateTime
data type
|
String |
toString()
Returns a String Object representing this TimeOrDateTime value
|
static TimeOrDateTime |
valueOf(String stringValue)
Returns a TimeOrDateTime instance representing the specified String value
|
public TimeOrDateTime(XMLGregorianCalendar timeOrDateTime) throws IllegalArgumentException
timeOrDateTime - the value to be represented by the TimeOrDateTime ObjectIllegalArgumentException - if the given argument is not a valid TimeOrDateTimepublic String toString()
public static TimeOrDateTime valueOf(String stringValue) throws IllegalArgumentException
stringValue - a String valueIllegalArgumentException - if the given argument is not a valid TimeOrDateTimepublic XMLGregorianCalendar getXMLGregorianCalendar()
public static boolean isValid(XMLGregorianCalendar timeOrDateTime)
timeOrDateTime - the value to be testedCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.