org.odftoolkit.odfdom.type
public class NonNegativePixelLength extends Length
Length.Unit
Constructor and Description |
---|
NonNegativePixelLength(String pixelLength)
Construct NonNegativePixelLength 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 nonNegativePixelLength
data type
|
String |
toString()
Returns a String Object representing this NonNegativePixelLength's value
|
static NonNegativePixelLength |
valueOf(String stringValue)
Returns a NonNegativePixelLength instance representing the specified
String value
|
mapToUnit, mapToUnit, parseDouble, parseDouble, parseInt, parseInt, parseLong, parseLong, parseUnit
public NonNegativePixelLength(String pixelLength) throws NumberFormatException
pixelLength
- The String to be parsed into NonNegativePixelLengthNumberFormatException
- if the given argument is not a valid NonNegativePixelLengthpublic String toString()
public static NonNegativePixelLength valueOf(String stringValue) throws NumberFormatException
stringValue
- a String valueNumberFormatException
- if the given argument is not a valid NonNegativePixelLengthpublic static boolean isValid(String stringValue)
stringValue
- the value to be testedCopyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.