|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.clarkparsia.pellet.datatypes.InfiniteNamedDatatype
public class InfiniteNamedDatatype
Title: Infinite Named Datatype
Description: Infinite named datatype, which permits all strings as lexical forms and for which identity and equality of the value space match equality of the lexical space.
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Method Summary | |
|---|---|
RestrictedDatatype<aterm.ATermAppl> |
asDataRange()
Get the canonical data range for a datatype |
boolean |
equals(java.lang.Object obj)
|
static InfiniteNamedDatatype |
get(aterm.ATermAppl dtName)
Get an instance with a specific name. |
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. |
aterm.ATermAppl |
getValue(aterm.ATermAppl literal)
Get the Java object representation of a data value |
int |
hashCode()
|
boolean |
isPrimitive()
Check if a datatype is primitive. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static InfiniteNamedDatatype get(aterm.ATermAppl dtName)
dtName - the name of the datatype
public RestrictedDatatype<aterm.ATermAppl> asDataRange()
Datatype
asDataRange in interface Datatype<aterm.ATermAppl>DataRange representation of the datatype value spacepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
public aterm.ATermAppl getCanonicalRepresentation(aterm.ATermAppl input)
throws InvalidLiteralException
Datatype
getCanonicalRepresentation in interface Datatype<aterm.ATermAppl>input - a lexical form of the literal
InvalidLiteralExceptionpublic aterm.ATermAppl getLiteral(java.lang.Object value)
DatatypeATermAppl literal representation for a value
space object. This may be unsupported by datatypes for which
Datatype.isPrimitive() returns false.
getLiteral in interface Datatype<aterm.ATermAppl>value - Element of the value space for some datatype
ATermAppl representation of valuepublic aterm.ATermAppl getName()
Datatype
getName in interface Datatype<aterm.ATermAppl>ATermAppl of URI for datatypepublic Datatype<?> getPrimitiveDatatype()
Datatype
getPrimitiveDatatype in interface Datatype<aterm.ATermAppl>this if isPrimitive() == true, else a
primitive datatype that is a superset of the value space of this
datatype.
public aterm.ATermAppl getValue(aterm.ATermAppl literal)
throws InvalidLiteralException
Datatype
getValue in interface Datatype<aterm.ATermAppl>literal - the literal
InvalidLiteralExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean isPrimitive()
Datatype
isPrimitive in interface Datatype<aterm.ATermAppl>true if the datatype is primitive,
false elsepublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||