public interface Datatype<T>
Title: Datatype
Description: A datatype as described in the OWL 2 specificationf
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Modifier and Type | Method and Description |
|---|---|
RestrictedDatatype<T> |
asDataRange()
Get the canonical data range for a datatype
|
aterm.ATermAppl |
getCanonicalRepresentation(aterm.ATermAppl input)
Get the canonical representation of a lexical form
|
aterm.ATermAppl |
getLiteral(Object value)
Get the canonical
ATermAppl literal representation for a value
space object. |
aterm.ATermAppl |
getName()
Get the datatype identifier
|
Datatype<?> |
getPrimitiveDatatype()
Get the primitive datatype associated with this datatype.
|
T |
getValue(aterm.ATermAppl literal)
Get the Java object representation of a data value
|
boolean |
isPrimitive()
Check if a datatype is primitive.
|
RestrictedDatatype<T> asDataRange()
DataRange representation of the datatype value spaceaterm.ATermAppl getCanonicalRepresentation(aterm.ATermAppl input)
throws InvalidLiteralException
input - a lexical form of the literalInvalidLiteralExceptionaterm.ATermAppl getLiteral(Object value)
ATermAppl literal representation for a value
space object. This may be unsupported by datatypes for which
isPrimitive() returns false.value - Element of the value space for some datatypeATermAppl representation of valueIllegalArgumentException - if value is not contained in the value space of
the datatypeaterm.ATermAppl getName()
ATermAppl of URI for datatypeDatatype<?> getPrimitiveDatatype()
this if isPrimitive() == true, else a
primitive datatype that is a superset of the value space of this
datatype.T getValue(aterm.ATermAppl literal) throws InvalidLiteralException
literal - the literalInvalidLiteralExceptionboolean isPrimitive()
true if the datatype is primitive,
false elseCopyright © 2019. All rights reserved.