org.apache.axis2.databinding.types
Class UnsignedByte

java.lang.Object
  extended by java.lang.Number
      extended by org.apache.axis2.databinding.types.UnsignedInt
          extended by org.apache.axis2.databinding.types.UnsignedShort
              extended by org.apache.axis2.databinding.types.UnsignedByte
All Implemented Interfaces:
Serializable

public class UnsignedByte
extends UnsignedShort

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.apache.axis2.databinding.types.UnsignedInt
lValue
 
Constructor Summary
UnsignedByte()
           
UnsignedByte(long sValue)
          ctor for UnsignedByte
UnsignedByte(String sValue)
           
 
Method Summary
static 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.apache.axis2.databinding.types.UnsignedInt
byteValue, 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 NumberFormatException
ctor for UnsignedByte

Throws:
Exception - will be thrown if validation fails
NumberFormatException

UnsignedByte

public UnsignedByte(String sValue)
             throws NumberFormatException
Throws:
NumberFormatException
Method Detail

setValue

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

Overrides:
setValue in class UnsignedShort
Parameters:
sValue - the number to set
Throws:
NumberFormatException

isValid

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

Parameters:
sValue - number to check against range


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