A restriction (sub-range) of the integer type.
Implements built-in XML Schema types derived from xs:integer
.
maxValue
public final IntNum maxValue
The upper bound, inclusive. of the value range of this type.
If there is no upper bound then maxValue
is null
.
minValue
public final IntNum minValue
The lower bound, inclusive. of the value range of this type.
If there is no lower bound then minValue
is null
.
negativeIntegerType
public static final XIntegerType negativeIntegerType
nonNegativeIntegerType
public static final XIntegerType nonNegativeIntegerType
nonPositiveIntegerType
public static final XIntegerType nonPositiveIntegerType
positiveIntegerType
public static final XIntegerType positiveIntegerType
unsignedByteType
public static final XIntegerType unsignedByteType
unsignedIntType
public static final XIntegerType unsignedIntType
unsignedLongType
public static final XIntegerType unsignedLongType
unsignedShortType
public static final XIntegerType unsignedShortType
coerceFromObject
public Object coerceFromObject(Object obj)
Convert an object to a value of this Type.
Throw a ClassCastException when this is not possible.
- coerceFromObject in interface XDataType
isUnsignedType
public boolean isUnsignedType()
valueOf
public IntNum valueOf(String value,
int radix)