gnu.kawa.xml

Class XIntegerType

public class XIntegerType extends XDataType

A restriction (sub-range) of the integer type. Implements built-in XML Schema types derived from {@code xs:integer}.
Field Summary
static XIntegerTypebyteType
static XIntegerTypeintegerType
static XIntegerTypeintType
static XIntegerTypelongType
IntNummaxValue
The upper bound, inclusive. of the value range of this type.
IntNumminValue
The lower bound, inclusive. of the value range of this type.
static XIntegerTypenegativeIntegerType
static XIntegerTypenonNegativeIntegerType
static XIntegerTypenonPositiveIntegerType
static XIntegerTypepositiveIntegerType
static XIntegerTypeshortType
static XIntegerTypeunsignedByteType
static XIntegerTypeunsignedIntType
static XIntegerTypeunsignedLongType
static XIntegerTypeunsignedShortType
Constructor Summary
XIntegerType(String name, XDataType base, int typeCode, IntNum min, IntNum max)
XIntegerType(Object name, XDataType base, int typeCode, IntNum min, IntNum max)
Method Summary
Objectcast(Object value)
ObjectcoerceFromObject(Object obj)
booleanisInstance(Object obj)
booleanisUnsignedType()
IntNumvalueOf(IntNum value)
ObjectvalueOf(String value)
IntNumvalueOf(String value, int radix)

Field Detail

byteType

public static final XIntegerType byteType

integerType

public static final XIntegerType integerType

intType

public static final XIntegerType intType

longType

public static final XIntegerType longType

maxValue

public final IntNum maxValue
The upper bound, inclusive. of the value range of this type. If there is no upper bound then {@code maxValue} is {@code null}.

minValue

public final IntNum minValue
The lower bound, inclusive. of the value range of this type. If there is no lower bound then {@code minValue} is {@code 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

shortType

public static final XIntegerType shortType

unsignedByteType

public static final XIntegerType unsignedByteType

unsignedIntType

public static final XIntegerType unsignedIntType

unsignedLongType

public static final XIntegerType unsignedLongType

unsignedShortType

public static final XIntegerType unsignedShortType

Constructor Detail

XIntegerType

public XIntegerType(String name, XDataType base, int typeCode, IntNum min, IntNum max)

XIntegerType

public XIntegerType(Object name, XDataType base, int typeCode, IntNum min, IntNum max)

Method Detail

cast

public Object cast(Object value)

coerceFromObject

public Object coerceFromObject(Object obj)

isInstance

public boolean isInstance(Object obj)

isUnsignedType

public boolean isUnsignedType()

valueOf

public IntNum valueOf(IntNum value)

valueOf

public Object valueOf(String value)

valueOf

public IntNum valueOf(String value, int radix)