Package org.apache.axis.types
Class UnsignedInt
java.lang.Object
java.lang.Number
org.apache.axis.types.UnsignedInt
- All Implemented Interfaces:
Serializable
,Comparable<UnsignedInt>
- Direct Known Subclasses:
UnsignedShort
Custom class for supporting primitive XSD data type UnsignedInt
- Author:
- Chris Haddad <chaddad@cobia.net>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte
int
compareTo
(UnsignedInt obj) double
boolean
float
int
hashCode()
int
intValue()
static boolean
isValid
(long iValue) validate the value against the xsd definitionlong
void
setValue
(long iValue) validates the data and sets the value for the object.short
toString()
-
Field Details
-
lValue
-
-
Constructor Details
-
UnsignedInt
public UnsignedInt() -
UnsignedInt
ctor for UnsignedInt- Throws:
NumberFormatException
- will be thrown if validation fails
-
UnsignedInt
- Throws:
NumberFormatException
-
-
Method Details
-
setValue
validates the data and sets the value for the object.- Parameters:
iValue
- value- Throws:
NumberFormatException
-
toString
-
hashCode
public int hashCode() -
isValid
public static boolean isValid(long iValue) validate the value against the xsd definition -
equals
-
compareTo
- Specified by:
compareTo
in interfaceComparable<UnsignedInt>
-
byteValue
public byte byteValue() -
shortValue
public short shortValue()- Overrides:
shortValue
in classNumber
-
intValue
public int intValue() -
longValue
public long longValue() -
doubleValue
public double doubleValue()- Specified by:
doubleValue
in classNumber
-
floatValue
public float floatValue()- Specified by:
floatValue
in classNumber
-