org.odftoolkit.odfdom.dom.type
Class OdfMeasure

java.lang.Object
  extended by org.odftoolkit.odfdom.dom.type.OdfMeasure

public class OdfMeasure
extends Object

DOM implementation of OpenDocument data type 'measure' converts odf measure strings from to units in cm.


Constructor Summary
OdfMeasure(int measure)
          Allocates an OdfMeasure object representing the measure argument
 
Method Summary
 int intValue()
          Returns the value of this OdfMeasure object as a int primitive
 String toString()
          Returns a String Object representing this OdfMeasure's value
static OdfMeasure valueOf(String stringValue)
          Returns an OdfMeasure instance representing the specified String value
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OdfMeasure

public OdfMeasure(int measure)
Allocates an OdfMeasure object representing the measure argument

Parameters:
measure - the value of the OdfMeasure
Method Detail

toString

public String toString()
Returns a String Object representing this OdfMeasure's value

Overrides:
toString in class Object
Returns:
return a string representation of the value of this OdfMeasure object

valueOf

public static OdfMeasure valueOf(String stringValue)
Returns an OdfMeasure instance representing the specified String value

Parameters:
stringValue - a String value
Returns:
return an OdfMeasure instance representing stringValue

intValue

public int intValue()
Returns the value of this OdfMeasure object as a int primitive

Returns:
the primitive int value of this OdfMeasure object.


Copyright © 2009. All Rights Reserved.