org.apache.axis.types

Class UnsignedShort

Implemented Interfaces:
java.lang.Comparable
Known Direct Subclasses:
UnsignedByte

public class UnsignedShort
extends UnsignedInt

Custom class for supporting primitive XSD data type UnsignedShort
Author:
Chris Haddad
See Also:
XML Schema 3.3.23

Field Summary

Fields inherited from class org.apache.axis.types.UnsignedInt

lValue

Constructor Summary

UnsignedShort()
UnsignedShort(String sValue)
UnsignedShort(long sValue)
ctor for UnsignedShort

Method Summary

static boolean
isValid(long sValue)
validate the value against the xsd definition
void
setValue(long sValue)
validates the data and sets the value for the object.

Methods inherited from class org.apache.axis.types.UnsignedInt

byteValue, compareTo, doubleValue, equals, floatValue, hashCode, intValue, isValid, longValue, setValue, shortValue, toString

Constructor Details

UnsignedShort

public UnsignedShort()

UnsignedShort

public UnsignedShort(String sValue)
            throws NumberFormatException

UnsignedShort

public UnsignedShort(long sValue)
            throws NumberFormatException
ctor for UnsignedShort

Method Details

isValid

public static boolean isValid(long sValue)
validate the value against the xsd definition
Overrides:
isValid in interface UnsignedInt

setValue

public void setValue(long sValue)
            throws NumberFormatException
validates the data and sets the value for the object.
Overrides:
setValue in interface UnsignedInt
Parameters:
sValue - value

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.