org.odftoolkit.odfdom.type
public class NonNegativeLength extends Length
Length.Unit
Constructor and Description |
---|
NonNegativeLength(String length)
Construct NonNegativeLength 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 nonNegativeLength data
type
|
static NonNegativeLength |
valueOf(String stringValue)
Returns a NonNegativeLength instance representing the specified String
value
|
public NonNegativeLength(String length) throws NumberFormatException
length
- The String to be parsed into NonNegativeLengthNumberFormatException
- if the given argument is not a valid NonNegativeLengthpublic static NonNegativeLength valueOf(String stringValue) throws NumberFormatException
stringValue
- a String valueNumberFormatException
- if the given argument is not a valid NonNegativeLengthpublic static boolean isValid(String stringValue)
stringValue
- the value to be testedCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.