Package gnu.kawa.xml

Class XIntegerType

  • All Implemented Interfaces:
    TypeValue, java.lang.reflect.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
    • 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

      • isUnsignedType

        public boolean isUnsignedType()
      • 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. 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
      • 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)