Enum CoreDatatype.XSD

java.lang.Object
java.lang.Enum<CoreDatatype.XSD>
org.eclipse.rdf4j.model.base.CoreDatatype.XSD
All Implemented Interfaces:
Serializable, Comparable<CoreDatatype.XSD>, CoreDatatype
Enclosing interface:
CoreDatatype

public static enum CoreDatatype.XSD extends Enum<CoreDatatype.XSD> implements CoreDatatype
  • Enum Constant Details Link icon

  • Field Details Link icon

  • Method Details Link icon

    • values Link icon

      public static CoreDatatype.XSD[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf Link icon

      public static CoreDatatype.XSD valueOf(String name)
      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 Link icon

      public boolean isPrimitiveDatatype()
      Checks whether the supplied datatype is a primitive XML Schema datatype.
      Returns:
      true if the datatype is a primitive type
    • isDerivedDatatype Link icon

      public boolean isDerivedDatatype()
      Checks whether the supplied datatype is a derived XML Schema datatype.
      Returns:
      true if the datatype is a derived type
    • isBuiltInDatatype Link icon

      public boolean isBuiltInDatatype()
      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 Link icon

      public boolean isNumericDatatype()
      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 Link icon

      public boolean isDecimalDatatype()
      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 Link icon

      public boolean isIntegerDatatype()
      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 Link icon

      public boolean isFloatingPointDatatype()
      Checks whether the supplied datatype is equal to xsd:float or xsd:double.
      Returns:
      true if it is a floating point type
    • isCalendarDatatype Link icon

      public boolean isCalendarDatatype()
      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:
    • isDurationDatatype Link icon

      public boolean isDurationDatatype()
      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:
    • isOrderedDatatype Link icon

      public boolean isOrderedDatatype()
      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
    • isXSDDatatype Link icon

      public boolean isXSDDatatype()
      Description copied from interface: CoreDatatype
      Checks whether the supplied datatype is an XML Schema Datatype.
      Specified by:
      isXSDDatatype in interface CoreDatatype
      Returns:
      true if the datatype is an XML Schema Datatype
    • getIri Link icon

      public IRI getIri()
      Specified by:
      getIri in interface CoreDatatype
    • asXSDDatatype Link icon

      public Optional<CoreDatatype.XSD> asXSDDatatype()
      Specified by:
      asXSDDatatype in interface CoreDatatype
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Enum<CoreDatatype.XSD>