org.jboss.axis.types
Class UnsignedByte

java.lang.Object
  extended byjava.lang.Number
      extended byorg.jboss.axis.types.UnsignedInt (src) 
          extended byorg.jboss.axis.types.UnsignedShort (src) 
              extended byorg.jboss.axis.types.UnsignedByte
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable

public class UnsignedByte
extends UnsignedShort (src)

Custom class for supporting primitive XSD data type UnsignedByte

See Also:
XML Schema 3.3.24, Serialized Form

Field Summary
 
Fields inherited from class org.jboss.axis.types.UnsignedInt (src)
lValue
 
Constructor Summary
UnsignedByte()
           
UnsignedByte(long sValue)
          ctor for UnsignedByte
UnsignedByte(java.lang.String sValue)
           
 
Method Summary
 boolean isValid(long sValue)
          validate the value against the xsd value space definition
 void setValue(long sValue)
          validates the data and sets the value for the object.
 
Methods inherited from class org.jboss.axis.types.UnsignedInt (src)
byteValue, compareTo, doubleValue, equals, floatValue, hashCode, intValue, longValue, shortValue, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UnsignedByte

public UnsignedByte()

UnsignedByte

public UnsignedByte(long sValue)
             throws java.lang.NumberFormatException
ctor for UnsignedByte

Throws:
java.lang.Exception - will be thrown if validation fails
java.lang.NumberFormatException

UnsignedByte

public UnsignedByte(java.lang.String sValue)
             throws java.lang.NumberFormatException
Method Detail

setValue

public void setValue(long sValue)
              throws java.lang.NumberFormatException
validates the data and sets the value for the object.

Overrides:
setValue in class UnsignedShort (src)
Parameters:
sValue - the number to set
Throws:
java.lang.NumberFormatException

isValid

public boolean isValid(long sValue)
validate the value against the xsd value space definition

Overrides:
isValid in class UnsignedShort (src)
Parameters:
sValue - number to check against range