org.odftoolkit.odfdom.type
Class PositiveLength

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

public class PositiveLength
extends Length

This class represents the in OpenDocument format used data type positiveLength


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

Constructor Detail

PositiveLength

public PositiveLength(String length)
               throws NumberFormatException
Construct PositiveLength by the parsing the given string

Parameters:
length - The String to be parsed into PositiveLength
Throws:
NumberFormatException - if the given argument is not a valid PostitiveLength
Method Detail

valueOf

public static PositiveLength valueOf(String stringValue)
                              throws NumberFormatException
Returns a PositiveLength instance representing the specified String value

Parameters:
stringValue - a String value
Returns:
return a PositiveLength instance representing stringValue
Throws:
NumberFormatException - if the given argument is not a valid PostitiveLength

isValid

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

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


Copyright © 2008-2017 The Apache Software Foundation. All Rights Reserved.