Class Duration
java.lang.Object
org.odftoolkit.odfdom.type.Duration
- All Implemented Interfaces:
OdfDataType, OdfFieldDataType
This class represents the in OpenDocument format used data type duration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetValue()Returns the value of this DurationType object as an Durationstatic booleancheck if the specified Duration instance is a valid duration data typetoString()Returns a String Object representing this DurationType's valuestatic DurationReturns a DurationType instance representing the specified String value
-
Constructor Details
-
Duration
Construct DurationType by the parsing the given string- Parameters:
duration- The String to be parsed into DurationType- Throws:
IllegalArgumentException- if the given argument is not a valid Duration
-
-
Method Details
-
toString
-
valueOf
Returns a DurationType instance representing the specified String value- Parameters:
stringValue- a String value- Returns:
- return a DurationType instance representing stringValue
- Throws:
IllegalArgumentException- if the given argument is not a valid Duration
-
getValue
Returns the value of this DurationType object as an Duration- Returns:
- the Duration value of this DurationType object.
-
isValid
-