|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Datatype<T>
Title: Datatype
Description: A datatype as described in the OWL 2 specificationf
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Method Summary | |
|---|---|
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(java.lang.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. |
| Method Detail |
|---|
RestrictedDatatype<T> asDataRange()
DataRange representation of the datatype value space
aterm.ATermAppl getCanonicalRepresentation(aterm.ATermAppl input)
throws InvalidLiteralException
input - a lexical form of the literal
InvalidLiteralExceptionaterm.ATermAppl getLiteral(java.lang.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 datatype
ATermAppl representation of value
java.lang.IllegalArgumentException - 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 literal
InvalidLiteralExceptionboolean isPrimitive()
true if the datatype is primitive,
false else
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||