org.apache.axis2.databinding.types
Class UnsignedInt

java.lang.Object
  extended by java.lang.Number
      extended by 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

Field Summary
protected  Long lValue
           
 
Constructor Summary
UnsignedInt()
           
UnsignedInt(long iValue)
          ctor for UnsignedInt
UnsignedInt(String stValue)
           
 
Method Summary
 byte byteValue()
           
 double doubleValue()
           
 boolean equals(Object obj)
           
 float floatValue()
           
 int hashCode()
           
 int intValue()
           
static boolean isValid(long iValue)
          validate the value against the xsd definition
 long longValue()
           
 void setValue(long iValue)
          validates the data and sets the value for the object.
 short shortValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

lValue

protected Long lValue
Constructor Detail

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
Throws:
NumberFormatException
Method Detail

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()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isValid

public static boolean isValid(long iValue)
validate the value against the xsd definition


equals

public boolean equals(Object obj)
Overrides:
equals in class Object

byteValue

public byte byteValue()
Overrides:
byteValue in class Number

shortValue

public short shortValue()
Overrides:
shortValue in class Number

intValue

public int intValue()
Specified by:
intValue in class Number

longValue

public long longValue()
Specified by:
longValue in class Number

doubleValue

public double doubleValue()
Specified by:
doubleValue in class Number

floatValue

public float floatValue()
Specified by:
floatValue in class Number


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.