public class RelativeLength extends Object implements OdfDataType
| Constructor and Description |
|---|
RelativeLength(String length)
Construct RelativeLength by the parsing the given string
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isValid(String stringValue)
check if the specified String instance is a valid relativeLength data type
|
String |
toString()
Returns a String Object representing this RelativeLength's value
|
static RelativeLength |
valueOf(String stringValue)
Returns an RelativeLength instance representing the specified String value
|
public RelativeLength(String length) throws NumberFormatException
length - The String to be parsed into RelativeLengthNumberFormatException - if the given argument is not a valid RelativeLengthpublic String toString()
public static RelativeLength valueOf(String stringValue) throws NumberFormatException
stringValue - a String valueNumberFormatExceptionpublic static boolean isValid(String stringValue)
stringValue - the value to be testedCopyright © 2008–2018 Apache Software Foundation; Copyright © 2018–2020 The Document Foundation. All rights reserved.