Package org.apache.axis.types
Class UnsignedInt
- java.lang.Object
-
- java.lang.Number
-
- org.apache.axis.types.UnsignedInt
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<UnsignedInt>
- Direct Known Subclasses:
UnsignedShort
public class UnsignedInt extends java.lang.Number implements java.lang.Comparable<UnsignedInt>
Custom class for supporting primitive XSD data type UnsignedInt- Author:
- Chris Haddad
- See Also:
- XML Schema 3.3.22, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.LonglValue
-
Constructor Summary
Constructors Constructor Description UnsignedInt()UnsignedInt(long iValue)ctor for UnsignedIntUnsignedInt(java.lang.String stValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description bytebyteValue()intcompareTo(UnsignedInt obj)doubledoubleValue()booleanequals(java.lang.Object obj)floatfloatValue()inthashCode()intintValue()static booleanisValid(long iValue)validate the value against the xsd definitionlonglongValue()voidsetValue(long iValue)validates the data and sets the value for the object.shortshortValue()java.lang.StringtoString()
-
-
-
Constructor Detail
-
UnsignedInt
public UnsignedInt()
-
UnsignedInt
public UnsignedInt(long iValue) throws java.lang.NumberFormatExceptionctor for UnsignedInt- Throws:
java.lang.NumberFormatException- will be thrown if validation fails
-
UnsignedInt
public UnsignedInt(java.lang.String stValue) throws java.lang.NumberFormatException- Throws:
java.lang.NumberFormatException
-
-
Method Detail
-
setValue
public void setValue(long iValue) throws java.lang.NumberFormatExceptionvalidates the data and sets the value for the object.- Parameters:
iValue- value- Throws:
java.lang.NumberFormatException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
isValid
public static boolean isValid(long iValue)
validate the value against the xsd definition
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
compareTo
public int compareTo(UnsignedInt obj)
- Specified by:
compareToin interfacejava.lang.Comparable<UnsignedInt>
-
byteValue
public byte byteValue()
- Overrides:
byteValuein classjava.lang.Number
-
shortValue
public short shortValue()
- Overrides:
shortValuein classjava.lang.Number
-
intValue
public int intValue()
- Specified by:
intValuein classjava.lang.Number
-
longValue
public long longValue()
- Specified by:
longValuein classjava.lang.Number
-
doubleValue
public double doubleValue()
- Specified by:
doubleValuein classjava.lang.Number
-
floatValue
public float floatValue()
- Specified by:
floatValuein classjava.lang.Number
-
-