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
Custom class for supporting primitive XSD data type UnsignedShort
- See Also:
-
Field Summary
Fields inherited from class org.apache.axis2.databinding.types.UnsignedInt
lValue -
Constructor Summary
ConstructorsConstructorDescriptionUnsignedShort(long sValue) ctor for UnsignedShortUnsignedShort(String sValue) -
Method Summary
Methods inherited from class org.apache.axis2.databinding.types.UnsignedInt
byteValue, doubleValue, equals, floatValue, hashCode, intValue, longValue, shortValue, toString
-
Constructor Details
-
UnsignedShort
public UnsignedShort() -
UnsignedShort
ctor for UnsignedShort- Throws:
NumberFormatException- will be thrown if validation fails
-
UnsignedShort
- Throws:
NumberFormatException
-
-
Method Details
-
setValue
validates the data and sets the value for the object.- Overrides:
setValuein classUnsignedInt- Parameters:
sValue- value- Throws:
NumberFormatException
-
isValid
public static boolean isValid(long sValue) validate the value against the xsd definition
-