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 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.
      • 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
    • Method Detail

      • isUnsignedType

        public boolean isUnsignedType()
      • 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​(String value,
                              int radix)