gnu.kawa.xml
Class XIntegerType

java.lang.Object
  extended by gnu.bytecode.Type
      extended by gnu.kawa.xml.XDataType
          extended by gnu.kawa.xml.XIntegerType
All 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 integerType
           
static XIntegerType intType
           
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_URI_TYPE_CODE, anyURIType, BASE64_BINARY_TYPE_CODE, base64BinaryType, BOOLEAN_TYPE_CODE, booleanType, BYTE_TYPE_CODE, DATE_TIME_TYPE_CODE, DATE_TYPE_CODE, DAY_TIME_DURATION_TYPE_CODE, dayTimeDurationType, DECIMAL_ONE, DECIMAL_TYPE_CODE, decimalType, DOUBLE_ONE, DOUBLE_TYPE_CODE, DOUBLE_ZERO, doubleType, DURATION_TYPE_CODE, durationType, FLOAT_ONE, FLOAT_TYPE_CODE, FLOAT_ZERO, floatType, 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, hexBinaryType, INT_TYPE_CODE, INTEGER_TYPE_CODE, LONG_TYPE_CODE, NEGATIVE_INTEGER_TYPE_CODE, NON_POSITIVE_INTEGER_TYPE_CODE, NONNEGATIVE_INTEGER_TYPE_CODE, NOTATION_TYPE_CODE, NotationType, POSITIVE_INTEGER_TYPE_CODE, QNAME_TYPE_CODE, SHORT_TYPE_CODE, STRING_TYPE_CODE, stringType, TIME_TYPE_CODE, UNSIGNED_BYTE_TYPE_CODE, UNSIGNED_INT_TYPE_CODE, UNSIGNED_LONG_TYPE_CODE, UNSIGNED_SHORT_TYPE_CODE, UNTYPED_ATOMIC_TYPE_CODE, untypedAtomicType, YEAR_MONTH_DURATION_TYPE_CODE, yearMonthDurationType
 
Fields inherited from class gnu.bytecode.Type
boolean_ctype, boolean_type, booleanValue_method, byte_type, char_type, clone_method, double_type, doubleValue_method, float_type, floatValue_method, int_type, intValue_method, java_lang_Class_type, long_type, longValue_method, neverReturnsType, nullType, number_type, pointer_type, reflectClass, short_type, string_type, throwable_type, toString_method, tostring_type, typeArray0, void_type
 
Constructor Summary
XIntegerType(java.lang.Object name, XDataType base, int typeCode, IntNum min, IntNum max)
           
XIntegerType(java.lang.String name, XDataType base, int typeCode, IntNum min, IntNum max)
           
 
Method Summary
 java.lang.Object cast(java.lang.Object value)
           
 java.lang.Object coerceFromObject(java.lang.Object obj)
          Convert an object to a value of this Type.
 boolean isInstance(java.lang.Object obj)
           
 IntNum valueOf(IntNum value)
           
 java.lang.Object valueOf(java.lang.String value)
           
 IntNum valueOf(java.lang.String value, int radix)
           
 
Methods inherited from class gnu.kawa.xml.XDataType
castable, compare, emitCoerceFromObject, emitCoerceToObject, emitIsInstance, emitTestIf, getConstructor, getImplementationType, getReflectClass, makeDouble, makeFloat, print, toString
 
Methods inherited from class gnu.bytecode.Type
coerceToObject, emitIsInstance, getName, getSignature, getSize, getSizeInWords, getType, hashCode, isMoreSpecific, isSubtype, isValidJavaTypeName, isVoid, lookupType, lowestCommonSuperType, make, promote, registerTypeForClass, setName, setReflectClass, setSignature, signatureLength, signatureLength, signatureToName, signatureToPrimitive, signatureToType, signatureToType, swappedCompareResult, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.


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.


integerType

public static final XIntegerType integerType

longType

public static final XIntegerType longType

intType

public static final XIntegerType intType

shortType

public static final XIntegerType shortType

byteType

public static final XIntegerType byteType

nonPositiveIntegerType

public static final XIntegerType nonPositiveIntegerType

negativeIntegerType

public static final XIntegerType negativeIntegerType

nonNegativeIntegerType

public static final XIntegerType nonNegativeIntegerType

unsignedLongType

public static final XIntegerType unsignedLongType

unsignedIntType

public static final XIntegerType unsignedIntType

unsignedShortType

public static final XIntegerType unsignedShortType

unsignedByteType

public static final XIntegerType unsignedByteType

positiveIntegerType

public static final XIntegerType positiveIntegerType
Constructor Detail

XIntegerType

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

XIntegerType

public XIntegerType(java.lang.Object name,
                    XDataType base,
                    int typeCode,
                    IntNum min,
                    IntNum max)
Method Detail

isInstance

public boolean isInstance(java.lang.Object obj)
Overrides:
isInstance in class XDataType

coerceFromObject

public java.lang.Object coerceFromObject(java.lang.Object obj)
Description copied from class: Type
Convert an object to a value of this Type. Throw a ClassCastException when this is not possible.

Overrides:
coerceFromObject in class XDataType

valueOf

public IntNum valueOf(IntNum value)

cast

public java.lang.Object cast(java.lang.Object value)
Overrides:
cast in class XDataType

valueOf

public java.lang.Object valueOf(java.lang.String value)
Overrides:
valueOf in class XDataType

valueOf

public IntNum valueOf(java.lang.String value,
                      int radix)