public abstract class AbstractBaseDatatype<T> extends Object implements Datatype<T>
Title: Abstract base datatype type
Description: Base implementation to handle some boiler plate code shared by all datatype implementations
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractBaseDatatype(aterm.ATermAppl name) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
protected String |
getLexicalForm(aterm.ATermAppl input)
Gets the lexical form for a properly typed literal.
|
aterm.ATermAppl |
getName()
Get the datatype identifier
|
int |
hashCode() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitasDataRange, getCanonicalRepresentation, getLiteral, getPrimitiveDatatype, getValue, isPrimitiveprotected String getLexicalForm(aterm.ATermAppl input)
input - Input ATermAppl, should be a literalATermUtils.getLiteralValue( input )IllegalArgumentException - if !ATermUtils.isLiteral( input ) or if the
datatype URI does not match this datatypepublic aterm.ATermAppl getName()
DatatypeCopyright © 2019. All rights reserved.