uk.ac.manchester.cs.owl.owlapi
Class OWLAnonymousIndividualImpl

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
      extended by uk.ac.manchester.cs.owl.owlapi.OWLIndividualImpl
          extended by uk.ac.manchester.cs.owl.owlapi.OWLAnonymousIndividualImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLAnnotationObject, OWLAnnotationSubject, OWLAnnotationValue, OWLAnonymousIndividual, OWLIndividual, OWLObject, OWLPropertyAssertionObject

public class OWLAnonymousIndividualImpl
extends OWLIndividualImpl
implements OWLAnonymousIndividual

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 15-Jan-2009


Constructor Summary
OWLAnonymousIndividualImpl(OWLDataFactory dataFactory, NodeID nodeID)
           
 
Method Summary
 void accept(OWLAnnotationSubjectVisitor visitor)
           
<E> E
accept(OWLAnnotationSubjectVisitorEx<E> visitor)
           
 void accept(OWLAnnotationValueVisitor visitor)
           
<O> O
accept(OWLAnnotationValueVisitorEx<O> visitor)
           
 void accept(OWLIndividualVisitor visitor)
           
<O> O
accept(OWLIndividualVisitorEx<O> visitor)
           
 void accept(OWLObjectVisitor visitor)
           
<O> O
accept(OWLObjectVisitorEx<O> visitor)
           
 OWLAnonymousIndividual asOWLAnonymousIndividual()
          Obtains this individual an anonymous individual if it is indeed anonymous
 OWLNamedIndividual asOWLNamedIndividual()
          Obtains this individual as a named individual if it is indeed named.
protected  int compareObjectOfSameType(OWLObject object)
           
 boolean equals(java.lang.Object obj)
           
 NodeID getID()
          Gets the ID of this individual.
 boolean isAnonymous()
          Determines if this object is an instance of OWLAnonymousIndividual Note that this method is the dual of OWLIndividual.isNamed().
 boolean isNamed()
          Determines if this individual is an instance of OWLNamedIndividual.
 java.lang.String toStringID()
          Returns a string representation that can be used as the ID of this individual.
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLIndividualImpl
asOWLClass, asOWLDataProperty, asOWLDatatype, asOWLObjectProperty, getDataPropertyValues, getDataPropertyValues, getDifferentIndividuals, getIndividualDataRelationshipAxioms, getIndividualNotDataRelationshipAxioms, getIndividualNotObjectRelationshipAxioms, getIndividualObjectRelationshipAxioms, getIndividualTypeAxioms, getNegativeDataPropertyValues, getNegativeObjectPropertyValues, getNPropertyValues, getObjectPropertyValues, getObjectPropertyValues, getPropertyValues, getSameIndividuals, getTypes, getTypes, hasNegativeDataPropertyValue, hasNegativeObjectPropertyValue, hasObjectPropertyValue, isBuiltIn, isOWLClass, isOWLDataProperty, isOWLDatatype, isOWLObjectProperty
 
Methods inherited from class uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
compareSets, compareTo, getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getOWLDataFactory, getSignature, hashCode, isBottomEntity, isTopEntity, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLIndividual
getDataPropertyValues, getDataPropertyValues, getDifferentIndividuals, getNegativeDataPropertyValues, getNegativeObjectPropertyValues, getObjectPropertyValues, getObjectPropertyValues, getSameIndividuals, getTypes, getTypes, hasNegativeDataPropertyValue, hasNegativeObjectPropertyValue, hasObjectPropertyValue
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
getClassesInSignature, getDataPropertiesInSignature, getDatatypesInSignature, getIndividualsInSignature, getNestedClassExpressions, getObjectPropertiesInSignature, getSignature, isBottomEntity, isTopEntity
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

OWLAnonymousIndividualImpl

public OWLAnonymousIndividualImpl(OWLDataFactory dataFactory,
                                  NodeID nodeID)
Method Detail

getID

public NodeID getID()
Description copied from interface: OWLAnonymousIndividual
Gets the ID of this individual.

Specified by:
getID in interface OWLAnonymousIndividual
Returns:
The node ID of this individual.

toStringID

public java.lang.String toStringID()
Returns a string representation that can be used as the ID of this individual. This is the toString representation of the node ID of this individual

Specified by:
toStringID in interface OWLIndividual
Returns:
A string representing the toString of the node ID of this entity.

isNamed

public boolean isNamed()
Description copied from interface: OWLIndividual
Determines if this individual is an instance of OWLNamedIndividual. Note that this method is the dual of OWLIndividual.isAnonymous().

Specified by:
isNamed in interface OWLIndividual
Returns:
true if this individual is an instance of OWLNamedIndividual because it is a named individuals, otherwise false

isAnonymous

public boolean isAnonymous()
Description copied from interface: OWLIndividual
Determines if this object is an instance of OWLAnonymousIndividual Note that this method is the dual of OWLIndividual.isNamed().

Specified by:
isAnonymous in interface OWLIndividual
Returns:
true if this object represents an anonymous individual (OWLAnonymousIndividual) or false if this object represents a named individual (OWLIndividual)

asOWLAnonymousIndividual

public OWLAnonymousIndividual asOWLAnonymousIndividual()
Description copied from interface: OWLIndividual
Obtains this individual an anonymous individual if it is indeed anonymous

Specified by:
asOWLAnonymousIndividual in interface OWLIndividual
Returns:
The individual as an anonymous individual

asOWLNamedIndividual

public OWLNamedIndividual asOWLNamedIndividual()
Description copied from interface: OWLIndividual
Obtains this individual as a named individual if it is indeed named.

Specified by:
asOWLNamedIndividual in interface OWLIndividual
Returns:
The individual as a named individual

compareObjectOfSameType

protected int compareObjectOfSameType(OWLObject object)
Specified by:
compareObjectOfSameType in class OWLObjectImpl

accept

public void accept(OWLObjectVisitor visitor)
Specified by:
accept in interface OWLObject

accept

public <O> O accept(OWLObjectVisitorEx<O> visitor)
Specified by:
accept in interface OWLObject

accept

public void accept(OWLIndividualVisitor visitor)
Specified by:
accept in interface OWLIndividual

accept

public <O> O accept(OWLIndividualVisitorEx<O> visitor)
Specified by:
accept in interface OWLIndividual

accept

public void accept(OWLAnnotationValueVisitor visitor)
Specified by:
accept in interface OWLAnnotationValue

accept

public <O> O accept(OWLAnnotationValueVisitorEx<O> visitor)
Specified by:
accept in interface OWLAnnotationValue

accept

public void accept(OWLAnnotationSubjectVisitor visitor)
Specified by:
accept in interface OWLAnnotationSubject

accept

public <E> E accept(OWLAnnotationSubjectVisitorEx<E> visitor)
Specified by:
accept in interface OWLAnnotationSubject

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class OWLIndividualImpl