gnu.kawa.xml

Class XIntegerType

Implemented Interfaces:
TypeValue

public class XIntegerType
extends XDataType

A restriction (sub-range) of the integer type. Implements built-in XML Schema types derived from xs:integer.

Field Summary

static XIntegerType
byteType
static XIntegerType
intType
static XIntegerType
integerType
static XIntegerType
longType
IntNum
maxValue
The upper bound, inclusive.
IntNum
minValue
The lower bound, inclusive.
static XIntegerType
negativeIntegerType
static XIntegerType
nonNegativeIntegerType
static XIntegerType
nonPositiveIntegerType
static XIntegerType
positiveIntegerType
static XIntegerType
shortType
static XIntegerType
unsignedByteType
static XIntegerType
unsignedIntType
static XIntegerType
unsignedLongType
static XIntegerType
unsignedShortType

Fields inherited from class gnu.kawa.xml.XDataType

ANY_ATOMIC_TYPE_CODE, ANY_URI_TYPE_CODE, BASE64_BINARY_TYPE_CODE, BOOLEAN_TYPE_CODE, BYTE_TYPE_CODE, DATE_TIME_TYPE_CODE, DATE_TYPE_CODE, DAY_TIME_DURATION_TYPE_CODE, DECIMAL_ONE, DECIMAL_TYPE_CODE, DOUBLE_ONE, DOUBLE_TYPE_CODE, DOUBLE_ZERO, DURATION_TYPE_CODE, ENTITY_TYPE_CODE, FLOAT_ONE, FLOAT_TYPE_CODE, FLOAT_ZERO, G_DAY_TYPE_CODE, G_MONTH_DAY_TYPE_CODE, G_MONTH_TYPE_CODE, G_YEAR_MONTH_TYPE_CODE, G_YEAR_TYPE_CODE, HEX_BINARY_TYPE_CODE, IDREF_TYPE_CODE, ID_TYPE_CODE, INTEGER_TYPE_CODE, INT_TYPE_CODE, LANGUAGE_TYPE_CODE, LONG_TYPE_CODE, NAME_TYPE_CODE, NCNAME_TYPE_CODE, NEGATIVE_INTEGER_TYPE_CODE, NMTOKEN_TYPE_CODE, NONNEGATIVE_INTEGER_TYPE_CODE, NON_POSITIVE_INTEGER_TYPE_CODE, NORMALIZED_STRING_TYPE_CODE, NOTATION_TYPE_CODE, NotationType, POSITIVE_INTEGER_TYPE_CODE, QNAME_TYPE_CODE, SHORT_TYPE_CODE, STRING_TYPE_CODE, TIME_TYPE_CODE, TOKEN_TYPE_CODE, UNSIGNED_BYTE_TYPE_CODE, UNSIGNED_INT_TYPE_CODE, UNSIGNED_LONG_TYPE_CODE, UNSIGNED_SHORT_TYPE_CODE, UNTYPED_ATOMIC_TYPE_CODE, YEAR_MONTH_DURATION_TYPE_CODE, anyAtomicType, anyURIType, base64BinaryType, booleanType, dayTimeDurationType, decimalType, doubleType, durationType, floatType, hexBinaryType, stringStringType, stringType, untypedAtomicType, yearMonthDurationType

Fields inherited from class gnu.bytecode.Type

booleanValue_method, boolean_ctype, boolean_type, byte_type, char_type, clone_method, doubleValue_method, double_type, floatValue_method, float_type, intValue_method, int_type, java_lang_Class_type, longValue_method, long_type, neverReturnsType, nullType, number_type, pointer_type, reflectClass, short_type, string_type, throwable_type, toString_method, tostring_type, typeArray0, void_type

Constructor Summary

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

Method Summary

Object
cast(Object value)
Object
coerceFromObject(Object obj)
Convert an object to a value of this Type.
boolean
isInstance(Object obj)
boolean
isUnsignedType()
Object
valueOf(String value)
IntNum
valueOf(String value, int radix)
IntNum
valueOf(IntNum value)

Methods inherited from class gnu.kawa.xml.XDataType

cast, castable, coerceFromObject, compare, emitCoerceFromObject, emitCoerceToObject, emitIsInstance, emitTestIf, getConstructor, getImplementationType, getReflectClass, isInstance, makeDouble, makeFloat, print, toString, valueOf

Methods inherited from class gnu.bytecode.Type

coerceFromObject, coerceToObject, compare, emitCoerceFromObject, emitCoerceToObject, emitIsInstance, getImplementationType, getName, getReflectClass, getSignature, getSize, getSizeInWords, getType, hashCode, isInstance, isMoreSpecific, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSuperType, make, promote, registerTypeForClass, setName, setReflectClass, setSignature, signatureLength, signatureLength, signatureToName, signatureToPrimitive, signatureToType, signatureToType, swappedCompareResult, toString

Field Details

byteType

public static final XIntegerType byteType

intType

public static final XIntegerType intType

integerType

public static final XIntegerType integerType

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 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

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 Details

XIntegerType

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

XIntegerType

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

Method Details

cast

public Object cast(Object value)
Overrides:
cast in interface XDataType

coerceFromObject

public Object coerceFromObject(Object obj)
Convert an object to a value of this Type. Throw a ClassCastException when this is not possible.
Overrides:
coerceFromObject in interface XDataType

isInstance

public boolean isInstance(Object obj)
Overrides:
isInstance in interface XDataType

isUnsignedType

public boolean isUnsignedType()

valueOf

public Object valueOf(String value)
Overrides:
valueOf in interface XDataType

valueOf

public IntNum valueOf(String value,
                      int radix)

valueOf

public IntNum valueOf(IntNum value)