org.semanticweb.HermiT.model
Class Constant

java.lang.Object
  extended by org.semanticweb.HermiT.model.Term
      extended by org.semanticweb.HermiT.model.Constant
All Implemented Interfaces:
java.io.Serializable

public class Constant
extends Term

Represents a constants.

See Also:
Serialized Form

Nested Class Summary
static class Constant.AnonymousConstantValue
           
 
Field Summary
protected  java.lang.Object m_dataValue
           
protected static InterningManager<Constant> s_interningManager
           
 
Constructor Summary
protected Constant(java.lang.Object dataValue)
           
 
Method Summary
static Constant create(java.lang.Object dataValue)
           
 java.lang.Object getDataValue()
           
protected  java.lang.Object readResolve()
           
 java.lang.String toString()
           
 java.lang.String toString(Prefixes prefixes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_dataValue

protected final java.lang.Object m_dataValue

s_interningManager

protected static InterningManager<Constant> s_interningManager
Constructor Detail

Constant

protected Constant(java.lang.Object dataValue)
Method Detail

getDataValue

public java.lang.Object getDataValue()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.String toString(Prefixes prefixes)
Specified by:
toString in class Term

readResolve

protected java.lang.Object readResolve()

create

public static Constant create(java.lang.Object dataValue)