Package org.eclipse.rdf4j.model.base
Enum CoreDatatype.XSD
- All Implemented Interfaces:
Serializable
,Comparable<CoreDatatype.XSD>
,CoreDatatype
- Enclosing interface:
CoreDatatype
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.rdf4j.model.base.CoreDatatype
CoreDatatype.GEO, CoreDatatype.RDF, CoreDatatype.XSD
-
Enum Constant Summary
Enum ConstantDescription -
Field Summary
Fields inherited from interface org.eclipse.rdf4j.model.base.CoreDatatype
NONE
-
Method Summary
Modifier and TypeMethodDescriptiongetIri()
boolean
Checks whether the supplied datatype is a built-in XML Schema datatype.boolean
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
Checks whether the supplied datatype is equal to xsd:decimal or one of the built-in datatypes that is derived from xsd:decimal.boolean
Checks whether the supplied datatype is a derived XML Schema datatype.boolean
Checks whether the supplied datatype is equal to xsd:duration, xsd:dayTimeDuration, xsd:yearMonthDuration.boolean
Checks whether the supplied datatype is equal to xsd:float or xsd:double.boolean
Checks whether the supplied datatype is equal to xsd:integer or one of the built-in datatypes that is derived from xsd:integer.boolean
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
Checks whether the supplied datatype is ordered.The values of an ordered datatype can be compared to each other using operators like < and >.boolean
Checks whether the supplied datatype is a primitive XML Schema datatype.boolean
Checks whether the supplied datatype is an XML Schema Datatype.toString()
static CoreDatatype.XSD
Returns the enum constant of this type with the specified name.static CoreDatatype.XSD[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
Methods inherited from interface org.eclipse.rdf4j.model.base.CoreDatatype
asGEODatatype, asGEODatatypeOrNull, asRDFDatatype, asRDFDatatypeOrNull, asXSDDatatypeOrNull, isGEODatatype, isRDFDatatype
-
Enum Constant Details
-
ENTITIES
-
ENTITY
-
ID
-
IDREF
-
IDREFS
-
NCNAME
-
NMTOKEN
-
NMTOKENS
-
NOTATION
-
NAME
-
QNAME
-
ANYURI
-
BASE64BINARY
-
BOOLEAN
-
BYTE
-
DATE
-
DATETIME
-
DATETIMESTAMP
-
DAYTIMEDURATION
-
DECIMAL
-
DOUBLE
-
DURATION
-
FLOAT
-
GDAY
-
GMONTH
-
GMONTHDAY
-
GYEAR
-
GYEARMONTH
-
HEXBINARY
-
INT
-
INTEGER
-
LANGUAGE
-
LONG
-
NEGATIVE_INTEGER
-
NON_NEGATIVE_INTEGER
-
NON_POSITIVE_INTEGER
-
NORMALIZEDSTRING
-
POSITIVE_INTEGER
-
SHORT
-
STRING
-
TIME
-
TOKEN
-
UNSIGNED_BYTE
-
UNSIGNED_INT
-
UNSIGNED_LONG
-
UNSIGNED_SHORT
-
YEARMONTHDURATION
-
-
Field Details
-
NAMESPACE
- See Also:
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isPrimitiveDatatype
public boolean isPrimitiveDatatype()Checks whether the supplied datatype is a primitive XML Schema datatype.- Returns:
- true if the datatype is a primitive type
-
isDerivedDatatype
public boolean isDerivedDatatype()Checks whether the supplied datatype is a derived XML Schema datatype.- Returns:
- true if the datatype is a derived type
-
isBuiltInDatatype
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
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
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
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
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
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
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
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
public boolean isXSDDatatype()Description copied from interface:CoreDatatype
Checks whether the supplied datatype is an XML Schema Datatype.- Specified by:
isXSDDatatype
in interfaceCoreDatatype
- Returns:
- true if the datatype is an XML Schema Datatype
-
getIri
- Specified by:
getIri
in interfaceCoreDatatype
-
asXSDDatatype
- Specified by:
asXSDDatatype
in interfaceCoreDatatype
-
toString
- Overrides:
toString
in classEnum<CoreDatatype.XSD>
-