Package gnu.kawa.xml

Class XIntegerType

All Implemented Interfaces:
TypeValue, Type

public class XIntegerType extends XDataType
A restriction (sub-range) of the integer type. Implements built-in XML Schema types derived from xs:integer.
  • Field Details

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

  • Method Details

    • isUnsignedType

      public boolean isUnsignedType()
    • isInstance

      public boolean isInstance(Object obj)
      Overrides:
      isInstance in class XDataType
    • coerceFromObject

      public Object coerceFromObject(Object obj)
      Description copied from class: Type
      Convert an object to a value of this Type. The result is actually of the implementation type, boxed as appropriate, so it is suitable for standard reflective operations, like the arguments to Field#set or Method#invoke. Throw a ClassCastException when this is not possible.
      Overrides:
      coerceFromObject in class XDataType
    • valueOf

      public IntNum valueOf(IntNum value)
    • cast

      public Object cast(Object value)
      Overrides:
      cast in class XDataType
    • valueOf

      public Object valueOf(String value)
      Overrides:
      valueOf in class XDataType
    • valueOf

      public IntNum valueOf(String value, int radix)