Enum XSD.Datatype

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      ANYURI
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      BASE64BINARY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      BOOLEAN
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      BYTE
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      DATE
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      DATETIME
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      DATETIMESTAMP
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      DAYTIMEDURATION
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      DECIMAL
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      DOUBLE
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      DURATION
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      ENTITIES
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      ENTITY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      FLOAT
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      GDAY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      GMONTH
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      GMONTHDAY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      GYEAR
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      GYEARMONTH
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      HEXBINARY
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      ID
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      IDREF
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      IDREFS
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      INT
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      INTEGER
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      LANGUAGE
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      LONG
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NAME
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NCNAME
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NEGATIVE_INTEGER
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NMTOKEN
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NMTOKENS
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NON_NEGATIVE_INTEGER
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NON_POSITIVE_INTEGER
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NORMALIZEDSTRING
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      NOTATION
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      POSITIVE_INTEGER
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      QNAME
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      SHORT
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      STRING
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      TIME
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      TOKEN
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      UNSIGNED_BYTE
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      UNSIGNED_INT
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      UNSIGNED_LONG
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      UNSIGNED_SHORT
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      YEARMONTHDURATION
      Deprecated, for removal: This API element is subject to removal in a future version.
       
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods 
      Modifier and Type Method Description
      static Optional<XSD.Datatype> from​(CoreDatatype.XSD datatype)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      static Optional<XSD.Datatype> from​(IRI datatype)
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      CoreDatatype getCoreDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      IRI getIri()
      Deprecated, for removal: This API element is subject to removal in a future version.
       
      boolean isBuiltInDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is a built-in XML Schema datatype.
      boolean isCalendarDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is equal to xsd:dateTime, xsd:date, xsd:time, xsd:gYearMonth, xsd:gMonthDay, xsd:gYear, xsd:gMonth or xsd:gDay.These are the primitive datatypes that represent dates and/or times.
      boolean isDecimalDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is equal to xsd:decimal or one of the built-in datatypes that is derived from xsd:decimal.
      boolean isDerivedDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is a derived XML Schema datatype.
      boolean isDurationDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is equal to xsd:duration, xsd:dayTimeDuration, xsd:yearMonthDuration.
      boolean isFloatingPointDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is equal to xsd:float or xsd:double.
      boolean isIntegerDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is equal to xsd:integer or one of the built-in datatypes that is derived from xsd:integer.
      boolean isNumericDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is a numeric datatype, i.e.if it is equal to xsd:float, xsd:double, xsd:decimal or one of the datatypes derived from xsd:decimal.
      boolean isOrderedDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is ordered.The values of an ordered datatype can be compared to each other using operators like < and >.
      boolean isPrimitiveDatatype()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Checks whether the supplied datatype is a primitive XML Schema datatype.
      static XSD.Datatype valueOf​(String name)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns the enum constant of this type with the specified name.
      static XSD.Datatype[] values()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Returns an array containing the constants of this enum type, in the order they are declared.
    • Enum Constant Detail

      • DURATION

        public static final XSD.Datatype DURATION
        Deprecated, for removal: This API element is subject to removal in a future version.
      • DATETIME

        public static final XSD.Datatype DATETIME
        Deprecated, for removal: This API element is subject to removal in a future version.
      • DATETIMESTAMP

        public static final XSD.Datatype DATETIMESTAMP
        Deprecated, for removal: This API element is subject to removal in a future version.
      • DAYTIMEDURATION

        public static final XSD.Datatype DAYTIMEDURATION
        Deprecated, for removal: This API element is subject to removal in a future version.
      • TIME

        public static final XSD.Datatype TIME
        Deprecated, for removal: This API element is subject to removal in a future version.
      • DATE

        public static final XSD.Datatype DATE
        Deprecated, for removal: This API element is subject to removal in a future version.
      • GYEARMONTH

        public static final XSD.Datatype GYEARMONTH
        Deprecated, for removal: This API element is subject to removal in a future version.
      • GYEAR

        public static final XSD.Datatype GYEAR
        Deprecated, for removal: This API element is subject to removal in a future version.
      • GMONTHDAY

        public static final XSD.Datatype GMONTHDAY
        Deprecated, for removal: This API element is subject to removal in a future version.
      • GDAY

        public static final XSD.Datatype GDAY
        Deprecated, for removal: This API element is subject to removal in a future version.
      • GMONTH

        public static final XSD.Datatype GMONTH
        Deprecated, for removal: This API element is subject to removal in a future version.
      • STRING

        public static final XSD.Datatype STRING
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BOOLEAN

        public static final XSD.Datatype BOOLEAN
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BASE64BINARY

        public static final XSD.Datatype BASE64BINARY
        Deprecated, for removal: This API element is subject to removal in a future version.
      • HEXBINARY

        public static final XSD.Datatype HEXBINARY
        Deprecated, for removal: This API element is subject to removal in a future version.
      • FLOAT

        public static final XSD.Datatype FLOAT
        Deprecated, for removal: This API element is subject to removal in a future version.
      • DECIMAL

        public static final XSD.Datatype DECIMAL
        Deprecated, for removal: This API element is subject to removal in a future version.
      • DOUBLE

        public static final XSD.Datatype DOUBLE
        Deprecated, for removal: This API element is subject to removal in a future version.
      • ANYURI

        public static final XSD.Datatype ANYURI
        Deprecated, for removal: This API element is subject to removal in a future version.
      • QNAME

        public static final XSD.Datatype QNAME
        Deprecated, for removal: This API element is subject to removal in a future version.
      • NOTATION

        public static final XSD.Datatype NOTATION
        Deprecated, for removal: This API element is subject to removal in a future version.
      • NORMALIZEDSTRING

        public static final XSD.Datatype NORMALIZEDSTRING
        Deprecated, for removal: This API element is subject to removal in a future version.
      • TOKEN

        public static final XSD.Datatype TOKEN
        Deprecated, for removal: This API element is subject to removal in a future version.
      • LANGUAGE

        public static final XSD.Datatype LANGUAGE
        Deprecated, for removal: This API element is subject to removal in a future version.
      • NMTOKEN

        public static final XSD.Datatype NMTOKEN
        Deprecated, for removal: This API element is subject to removal in a future version.
      • NMTOKENS

        public static final XSD.Datatype NMTOKENS
        Deprecated, for removal: This API element is subject to removal in a future version.
      • NAME

        public static final XSD.Datatype NAME
        Deprecated, for removal: This API element is subject to removal in a future version.
      • NCNAME

        public static final XSD.Datatype NCNAME
        Deprecated, for removal: This API element is subject to removal in a future version.
      • ID

        public static final XSD.Datatype ID
        Deprecated, for removal: This API element is subject to removal in a future version.
      • IDREF

        public static final XSD.Datatype IDREF
        Deprecated, for removal: This API element is subject to removal in a future version.
      • IDREFS

        public static final XSD.Datatype IDREFS
        Deprecated, for removal: This API element is subject to removal in a future version.
      • ENTITY

        public static final XSD.Datatype ENTITY
        Deprecated, for removal: This API element is subject to removal in a future version.
      • ENTITIES

        public static final XSD.Datatype ENTITIES
        Deprecated, for removal: This API element is subject to removal in a future version.
      • INTEGER

        public static final XSD.Datatype INTEGER
        Deprecated, for removal: This API element is subject to removal in a future version.
      • LONG

        public static final XSD.Datatype LONG
        Deprecated, for removal: This API element is subject to removal in a future version.
      • INT

        public static final XSD.Datatype INT
        Deprecated, for removal: This API element is subject to removal in a future version.
      • SHORT

        public static final XSD.Datatype SHORT
        Deprecated, for removal: This API element is subject to removal in a future version.
      • BYTE

        public static final XSD.Datatype BYTE
        Deprecated, for removal: This API element is subject to removal in a future version.
      • NON_POSITIVE_INTEGER

        public static final XSD.Datatype NON_POSITIVE_INTEGER
        Deprecated, for removal: This API element is subject to removal in a future version.
      • NEGATIVE_INTEGER

        public static final XSD.Datatype NEGATIVE_INTEGER
        Deprecated, for removal: This API element is subject to removal in a future version.
      • NON_NEGATIVE_INTEGER

        public static final XSD.Datatype NON_NEGATIVE_INTEGER
        Deprecated, for removal: This API element is subject to removal in a future version.
      • POSITIVE_INTEGER

        public static final XSD.Datatype POSITIVE_INTEGER
        Deprecated, for removal: This API element is subject to removal in a future version.
      • UNSIGNED_LONG

        public static final XSD.Datatype UNSIGNED_LONG
        Deprecated, for removal: This API element is subject to removal in a future version.
      • UNSIGNED_INT

        public static final XSD.Datatype UNSIGNED_INT
        Deprecated, for removal: This API element is subject to removal in a future version.
      • UNSIGNED_SHORT

        public static final XSD.Datatype UNSIGNED_SHORT
        Deprecated, for removal: This API element is subject to removal in a future version.
      • UNSIGNED_BYTE

        public static final XSD.Datatype UNSIGNED_BYTE
        Deprecated, for removal: This API element is subject to removal in a future version.
      • YEARMONTHDURATION

        public static final XSD.Datatype YEARMONTHDURATION
        Deprecated, for removal: This API element is subject to removal in a future version.
    • Method Detail

      • values

        public static XSD.Datatype[] values()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (XSD.Datatype c : XSD.Datatype.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static XSD.Datatype valueOf​(String name)
        Deprecated, for removal: This API element is subject to removal in a future version.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • isPrimitiveDatatype

        public boolean isPrimitiveDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is a primitive XML Schema datatype.
        Returns:
        true if the datatype is a primitive type
      • isDerivedDatatype

        public boolean isDerivedDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is a derived XML Schema datatype.
        Returns:
        true if the datatype is a derived type
      • isBuiltInDatatype

        public boolean isBuiltInDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is a built-in XML Schema datatype.
        Returns:
        true if it is a primitive or derived XML Schema type
      • isNumericDatatype

        public boolean isNumericDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is a numeric datatype, i.e.if it is equal to xsd:float, xsd:double, xsd:decimal or one of the datatypes derived from xsd:decimal.
        Returns:
        true of it is a decimal or floating point type
      • isDecimalDatatype

        public boolean isDecimalDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is equal to xsd:decimal or one of the built-in datatypes that is derived from xsd:decimal.
        Returns:
        true if it is a decimal datatype
      • isIntegerDatatype

        public boolean isIntegerDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is equal to xsd:integer or one of the built-in datatypes that is derived from xsd:integer.
        Returns:
        true if it is an integer type
      • isFloatingPointDatatype

        public boolean isFloatingPointDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is equal to xsd:float or xsd:double.
        Returns:
        true if it is a floating point type
      • isCalendarDatatype

        public boolean isCalendarDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is equal to xsd:dateTime, xsd:date, xsd:time, xsd:gYearMonth, xsd:gMonthDay, xsd:gYear, xsd:gMonth or xsd:gDay.These are the primitive datatypes that represent dates and/or times.
        Returns:
        true if it is a calendar type
        See Also:
        XMLGregorianCalendar
      • isDurationDatatype

        public boolean isDurationDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is equal to xsd:duration, xsd:dayTimeDuration, xsd:yearMonthDuration. These are the datatypes that represents durations.
        Returns:
        true if it is a duration type
        See Also:
        Duration
      • isOrderedDatatype

        public boolean isOrderedDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
        Checks whether the supplied datatype is ordered.The values of an ordered datatype can be compared to each other using operators like < and >.
        Returns:
        true if the datatype is ordered
      • getIri

        public IRI getIri()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • getCoreDatatype

        public CoreDatatype getCoreDatatype()
        Deprecated, for removal: This API element is subject to removal in a future version.
      • from

        public static Optional<XSD.Datatype> from​(IRI datatype)
        Deprecated, for removal: This API element is subject to removal in a future version.