Package com.stardog.stark
Enum Class Datatype
- All Implemented Interfaces:
Serializable,Comparable<Datatype>,Constable
Object representing the datatype of a Literal.
- Since:
- 1.0
- Version:
- 1.0
- Author:
- Michael Grove
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandatatypesEqual(Literal theLeft, Literal theRight) Return whether or not the twodatatypesare equalintgetId()iri()The IRI of the `Datatype`static Datatypeof(int theId) Return theDatatypeassociated with the id.static DatatypetoString()static DatatypeReturns the enum constant of this class with the specified name.static Datatype[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOOLEAN
-
INT
-
INTEGER
-
LONG
-
FLOAT
-
DOUBLE
-
BYTE
-
SHORT
-
STRING
-
TIME
-
DATE
-
GYEARMONTH
-
GYEAR
-
GMONTHDAY
-
GDAY
-
GMONTH
-
BASE64BINARY
-
HEXBINARY
-
DECIMAL
-
ANYURI
-
QNAME
-
NOTATION
-
NORMALIZEDSTRING
-
TOKEN
-
LANGUAGE
-
NMTOKEN
-
NMTOKENS
-
NAME
-
NCNAME
-
ID
-
IDREF
-
IDREFS
-
ENTITY
-
ENTITIES
-
NON_POSITIVE_INTEGER
-
NEGATIVE_INTEGER
-
NON_NEGATIVE_INTEGER
-
POSITIVE_INTEGER
-
UNSIGNED_LONG
-
UNSIGNED_INT
-
UNSIGNED_SHORT
-
UNSIGNED_BYTE
-
DATETIME
-
DATETIMESTAMP
-
DURATION
-
DURATION_DAYTIME
-
DURATION_YEARMONTH
-
LANG_STRING
-
UDF
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
of
Return theDatatypeassociated with theIRI. If the `IRI` does not denote a native XML or RDF datatype,UDFwill be returned.- Parameters:
theIRI- the datatype IRI- Returns:
- the
Datatype
-
of
Return theDatatypeassociated with the id.- Parameters:
theId- the id of IRI- Returns:
- the
Datatype
-
datatypesEqual
Return whether or not the twodatatypesare equal- Parameters:
theLeft- the first typetheRight- the other type- Returns:
- `true` if equal, `false` otherwise
-
iri
The IRI of the `Datatype`- Returns:
- the IRI
-
getId
public int getId() -
toString
-