Package org.odftoolkit.odfdom.type
Class NonNegativePixelLength
java.lang.Object
org.odftoolkit.odfdom.type.Length
org.odftoolkit.odfdom.type.NonNegativePixelLength
- All Implemented Interfaces:
OdfDataType
This class represents the in OpenDocument format used data type nonNegativePixelLength
-
Nested Class Summary
Nested classes/interfaces inherited from class org.odftoolkit.odfdom.type.Length
Length.Unit
-
Constructor Summary
ConstructorDescriptionNonNegativePixelLength
(String pixelLength) Construct NonNegativePixelLength by the parsing the given string -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
check if the specified String instance is a valid nonNegativePixelLength data typetoString()
Returns a String Object representing this NonNegativePixelLength's valuestatic NonNegativePixelLength
Returns a NonNegativePixelLength instance representing the specified String valueMethods inherited from class org.odftoolkit.odfdom.type.Length
getCentimeter, getInch, getLength, getMicrometer, getMillimeters, getPica, getPixel, getPoint, mapToUnit, mapToUnit, parseDouble, parseDouble, parseInt, parseInt, parseLong, parseLong, parseUnit
-
Constructor Details
-
NonNegativePixelLength
Construct NonNegativePixelLength by the parsing the given string- Parameters:
pixelLength
- The String to be parsed into NonNegativePixelLength- Throws:
NumberFormatException
- if the given argument is not a valid NonNegativePixelLength
-
-
Method Details
-
toString
Returns a String Object representing this NonNegativePixelLength's value -
valueOf
Returns a NonNegativePixelLength instance representing the specified String value- Parameters:
stringValue
- a String value- Returns:
- return a NonNegativePixelLength instance representing stringValue
- Throws:
NumberFormatException
- if the given argument is not a valid NonNegativePixelLength
-
isValid
check if the specified String instance is a valid nonNegativePixelLength data type- Parameters:
stringValue
- the value to be tested- Returns:
- true if the value of argument is valid for nonNegativePixelLength data type false otherwise
-