org.odftoolkit.odfdom.type
Class NonNegativePixelLength

java.lang.Object
  extended by org.odftoolkit.odfdom.type.Length
      extended by org.odftoolkit.odfdom.type.NonNegativePixelLength
All Implemented Interfaces:
OdfDataType

public class NonNegativePixelLength
extends Length

This class represents the in OpenDocument format used data type


Nested Class Summary
 
Nested classes/interfaces inherited from class org.odftoolkit.odfdom.type.Length
Length.Unit
 
Constructor Summary
NonNegativePixelLength(java.lang.String pixelLength)
          Construct NonNegativePixelLength by the parsing the given string
 
Method Summary
static boolean isValid(java.lang.String stringValue)
          check if the specified String instance is a valid data type
 java.lang.String toString()
          Returns a String Object representing this NonNegativePixelLength's value
static NonNegativePixelLength valueOf(java.lang.String stringValue)
          Returns a NonNegativePixelLength instance representing the specified String value
 
Methods inherited from class org.odftoolkit.odfdom.type.Length
mapToUnit, mapToUnit, parseDouble, parseDouble, parseInt, parseInt, parseLong, parseLong, parseUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonNegativePixelLength

public NonNegativePixelLength(java.lang.String pixelLength)
                       throws java.lang.NumberFormatException
Construct NonNegativePixelLength by the parsing the given string

Parameters:
pixelLength - The String to be parsed into NonNegativePixelLength
Throws:
java.lang.NumberFormatException - if the given argument is not a valid NonNegativePixelLength
Method Detail

toString

public java.lang.String toString()
Returns a String Object representing this NonNegativePixelLength's value

Overrides:
toString in class Length
Returns:
return a string representation of the value of this NonNegativePixelLength object

valueOf

public static NonNegativePixelLength valueOf(java.lang.String stringValue)
                                      throws java.lang.NumberFormatException
Returns a NonNegativePixelLength instance representing the specified String value

Parameters:
stringValue - a String value
Returns:
return a NonNegativePixelLength instance representing stringValue
Throws:
java.lang.NumberFormatException - if the given argument is not a valid NonNegativePixelLength

isValid

public static boolean isValid(java.lang.String stringValue)
check if the specified String instance is a valid data type

Parameters:
stringValue - the value to be tested
Returns:
true if the value of argument is valid for data type false otherwise


Copyright © 2008-2010 ODF Toolkit Project. All Rights Reserved.