org.odftoolkit.odfdom.dom.type
Class OdfPositiveInteger

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

public class OdfPositiveInteger
extends Object

DOM implementation of OpenDocument data type 'positiveInteger'


Constructor Summary
OdfPositiveInteger(int n)
          Allocates an OdfPositiveInteger object representing the n argument
 
Method Summary
 int intValue()
          Returns the value of this OdfPositiveInteger object as a int primitive
 String toString()
          Returns a String Object representing this OdfPositiveInteger's value
static OdfPositiveInteger valueOf(String stringValue)
          Returns an OdfPositiveInteger 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

OdfPositiveInteger

public OdfPositiveInteger(int n)
Allocates an OdfPositiveInteger object representing the n argument

Parameters:
n - the value of the OdfPositiveInteger
Method Detail

toString

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

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

valueOf

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

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

intValue

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

Returns:
the primitive int value of this OdfPositiveInteger object.


Copyright © 2009. All Rights Reserved.