public class Duration extends Object implements OdfFieldDataType, OdfDataType
Constructor and Description |
---|
Duration(Duration duration)
Construct DurationType by the parsing the given string
|
Modifier and Type | Method and Description |
---|---|
Duration |
getValue()
Returns the value of this DurationType object as an Duration
|
static boolean |
isValid(Duration duration)
check if the specified Duration instance is a valid duration data type
|
String |
toString()
Returns a String Object representing this DurationType's value
|
static Duration |
valueOf(String stringValue)
Returns a DurationType instance representing the specified String value
|
public Duration(Duration duration) throws IllegalArgumentException
duration
- The String to be parsed into DurationTypeIllegalArgumentException
- if the given argument is not a valid Durationpublic String toString()
public static Duration valueOf(String stringValue) throws IllegalArgumentException
stringValue
- a String valueIllegalArgumentException
- if the given argument is not a valid Durationpublic Duration getValue()
Copyright © 2008-2013 The Apache Software Foundation. All Rights Reserved.