Class UnsignedShort
- java.lang.Object
-
- java.lang.Number
-
- org.apache.axis2.databinding.types.UnsignedInt
-
- org.apache.axis2.databinding.types.UnsignedShort
-
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
UnsignedByte
public class UnsignedShort extends UnsignedInt
Custom class for supporting primitive XSD data type UnsignedShort- See Also:
- XML Schema 3.3.23, Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.axis2.databinding.types.UnsignedInt
lValue
-
-
Constructor Summary
Constructors Constructor Description UnsignedShort()
UnsignedShort(long sValue)
ctor for UnsignedShortUnsignedShort(String sValue)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static boolean
isValid(long sValue)
validate the value against the xsd definitionvoid
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
-
-
-
-
Constructor Detail
-
UnsignedShort
public UnsignedShort()
-
UnsignedShort
public UnsignedShort(long sValue) throws NumberFormatException
ctor for UnsignedShort- Throws:
NumberFormatException
- will be thrown if validation fails
-
UnsignedShort
public UnsignedShort(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 classUnsignedInt
- Parameters:
sValue
- value- Throws:
NumberFormatException
-
isValid
public static boolean isValid(long sValue)
validate the value against the xsd definition
-
-