|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.odftoolkit.odfdom.type.PositiveInteger
public class PositiveInteger
This class represents the in OpenDocument format used data type positiveInteger
Constructor Summary | |
---|---|
PositiveInteger(int n)
Allocates a PositiveInteger object representing the n argument |
Method Summary | |
---|---|
int |
intValue()
Returns the value of this PositiveInteger object as a int primitive |
static boolean |
isValid(Integer integerValue)
check if the specified Integer instance is a valid positiveInteger data type |
String |
toString()
Returns a String Object representing this PositiveInteger's value |
static PositiveInteger |
valueOf(String stringValue)
Returns a PositiveInteger 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 |
---|
public PositiveInteger(int n) throws NumberFormatException
n
- the value of the PositiveInteger
NumberFormatException
- if the given argument is not a valid PostitiveLengthMethod Detail |
---|
public String toString()
toString
in class Object
public static PositiveInteger valueOf(String stringValue) throws NumberFormatException
stringValue
- a String value
NumberFormatException
- if the given argument is not a valid PostitiveLengthpublic int intValue()
public static boolean isValid(Integer integerValue)
integerValue
- the value to be tested
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |