org.semanticweb.HermiT.model
Class AtomicConcept
java.lang.Object
org.semanticweb.HermiT.model.Concept
org.semanticweb.HermiT.model.LiteralConcept
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
|
Constructor Summary |
protected |
AtomicConcept(java.lang.String uri)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
AtomicConcept
protected AtomicConcept(java.lang.String uri)
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.