org.semanticweb.HermiT.model
Class AtomicConcept

java.lang.Object
  extended by org.semanticweb.HermiT.model.Concept
      extended by org.semanticweb.HermiT.model.LiteralConcept
          extended by org.semanticweb.HermiT.model.AtomicConcept
All Implemented Interfaces:
java.io.Serializable, DLPredicate
Direct Known Subclasses:
AtMostAbstractRoleGuard

public class AtomicConcept
extends LiteralConcept
implements DLPredicate

Represents an atomic concept.

See Also:
Serialized Form

Field Summary
protected  java.lang.String m_uri
           
static AtomicConcept NOTHING
           
static AtomicConcept RDFS_LITERAL
           
protected static InterningManager<AtomicConcept> s_interningManager
           
private static long serialVersionUID
           
static AtomicConcept THING
           
 
Constructor Summary
protected AtomicConcept(java.lang.String uri)
           
 
Method Summary
static AtomicConcept create(java.lang.String uri)
          Returns an AtomicConcept with the given identifier.
 int getArity()
           
static AtomicConcept getExisting(java.lang.String uri)
          If an atomic concept has previously been constructed for this URI then return it; otherwise return null.
 java.lang.String getURI()
           
protected  java.lang.Object readResolve()
           
 java.lang.String toString(Namespaces namespaces)
           
 
Methods inherited from class org.semanticweb.HermiT.model.Concept
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

m_uri

protected final java.lang.String m_uri

s_interningManager

protected static InterningManager<AtomicConcept> s_interningManager

THING

public static final AtomicConcept THING

NOTHING

public static final AtomicConcept NOTHING

RDFS_LITERAL

public static final AtomicConcept RDFS_LITERAL
Constructor Detail

AtomicConcept

protected AtomicConcept(java.lang.String uri)
Method Detail

getURI

public java.lang.String getURI()

getArity

public int getArity()
Specified by:
getArity in interface DLPredicate
Returns:
the arity of the predicate

toString

public java.lang.String toString(Namespaces namespaces)
Specified by:
toString in interface DLPredicate
Specified by:
toString in class Concept

readResolve

protected java.lang.Object readResolve()

create

public static AtomicConcept create(java.lang.String uri)
Returns an AtomicConcept with the given identifier. If this function is called multiple times with the same identifier, then the same object will be returned on each call (allowing for fast equality testing). It is the caller's responsibility to normalize the given URI---this function treats the argument as a raw string.


getExisting

public static AtomicConcept getExisting(java.lang.String uri)
If an atomic concept has previously been constructed for this URI then return it; otherwise return null.