org.apache.axis2.databinding.types
Class UnsignedInt
java.lang.Object
java.lang.Number
org.apache.axis2.databinding.types.UnsignedInt
- All Implemented Interfaces:
- Serializable
- Direct Known Subclasses:
- UnsignedShort
- public class UnsignedInt
- extends Number
Custom class for supporting primitive XSD data type UnsignedInt
- See Also:
- XML Schema 3.3.22,
Serialized Form
lValue
protected Long lValue
UnsignedInt
public UnsignedInt()
UnsignedInt
public UnsignedInt(long iValue)
throws NumberFormatException
- ctor for UnsignedInt
- Throws:
NumberFormatException
- will be thrown if validation fails
UnsignedInt
public UnsignedInt(String stValue)
throws NumberFormatException
setValue
public void setValue(long iValue)
throws NumberFormatException
- validates the data and sets the value for the object.
- Parameters:
iValue
- value
- Throws:
NumberFormatException
toString
public String toString()
hashCode
public int hashCode()
isValid
public static boolean isValid(long iValue)
- validate the value against the xsd definition
equals
public boolean equals(Object obj)
byteValue
public byte byteValue()
shortValue
public short shortValue()
intValue
public int intValue()
longValue
public long longValue()
doubleValue
public double doubleValue()
floatValue
public float floatValue()