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