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

java.lang.Object
  extended by uk.ac.manchester.cs.owl.owlapi.OWLObjectImpl
All Implemented Interfaces:
java.lang.Comparable<OWLObject>, OWLObject
Direct Known Subclasses:
OWLAnnotationImpl, OWLAnnotationPropertyImpl, OWLAxiomImpl, OWLClassExpressionImpl, OWLDataComplementOfImpl, OWLDataOneOfImpl, OWLDatatypeImpl, OWLDatatypeRestrictionImpl, OWLFacetRestrictionImpl, OWLIndividualImpl, OWLLiteralImpl, OWLNaryDataRangeImpl, OWLOntologyImpl, OWLPropertyExpressionImpl, SWRLAtomImpl, SWRLIndividualArgumentImpl, SWRLLiteralArgumentImpl, SWRLVariableImpl

public abstract class OWLObjectImpl
extends java.lang.Object
implements OWLObject

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 25-Oct-2006


Constructor Summary
OWLObjectImpl(OWLDataFactory dataFactory)
           
 
Method Summary
protected abstract  int compareObjectOfSameType(OWLObject object)
           
protected static int compareSets(java.util.Set<? extends OWLObject> set1, java.util.Set<? extends OWLObject> set2)
           
 int compareTo(OWLObject o)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Set<OWLClass> getClassesInSignature()
          A convenience method that obtains the classes that are in the signature of this object
 java.util.Set<OWLDataProperty> getDataPropertiesInSignature()
          A convenience method that obtains the data properties that are in the signature of this object
 java.util.Set<OWLDatatype> getDatatypesInSignature()
          A convenience method that obtains the datatypes that are in the signature of this object
 java.util.Set<OWLNamedIndividual> getIndividualsInSignature()
          A convenience method that obtains the individuals that are in the signature of this object
 java.util.Set<OWLClassExpression> getNestedClassExpressions()
          Gets all of the nested (includes top level) class expressions that are used in this object
 java.util.Set<OWLObjectProperty> getObjectPropertiesInSignature()
          A convenience method that obtains the object properties that are in the signature of this object
 OWLDataFactory getOWLDataFactory()
           
 java.util.Set<OWLEntity> getSignature()
          Gets the signature of this object
 int hashCode()
           
 boolean isBottomEntity()
          Determines if this object is either, owl:Nothing (the bottom class), owl:bottomObjectProperty (the bottom object property) , owl:bottomDataProperty (the bottom data property).
 boolean isTopEntity()
          Determines if this object is either, owl:Thing (the top class), owl:topObjectProperty (the top object property) , owl:topDataProperty (the top data property) or rdfs:Literal (the top datatype).
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.semanticweb.owlapi.model.OWLObject
accept, accept
 

Constructor Detail

OWLObjectImpl

public OWLObjectImpl(OWLDataFactory dataFactory)
Method Detail

getOWLDataFactory

public OWLDataFactory getOWLDataFactory()

getSignature

public java.util.Set<OWLEntity> getSignature()
Description copied from interface: OWLObject
Gets the signature of this object

Specified by:
getSignature in interface OWLObject
Returns:
A set of entities that correspond to the signature of this object.

getClassesInSignature

public java.util.Set<OWLClass> getClassesInSignature()
Description copied from interface: OWLObject
A convenience method that obtains the classes that are in the signature of this object

Specified by:
getClassesInSignature in interface OWLObject
Returns:
A set containing the classes that are in the signature of this object.

getDataPropertiesInSignature

public java.util.Set<OWLDataProperty> getDataPropertiesInSignature()
Description copied from interface: OWLObject
A convenience method that obtains the data properties that are in the signature of this object

Specified by:
getDataPropertiesInSignature in interface OWLObject
Returns:
A set containing the data properties that are in the signature of this object.

getObjectPropertiesInSignature

public java.util.Set<OWLObjectProperty> getObjectPropertiesInSignature()
Description copied from interface: OWLObject
A convenience method that obtains the object properties that are in the signature of this object

Specified by:
getObjectPropertiesInSignature in interface OWLObject
Returns:
A set containing the object properties that are in the signature of this object.

getIndividualsInSignature

public java.util.Set<OWLNamedIndividual> getIndividualsInSignature()
Description copied from interface: OWLObject
A convenience method that obtains the individuals that are in the signature of this object

Specified by:
getIndividualsInSignature in interface OWLObject
Returns:
A set containing the individuals that are in the signature of this object.

getDatatypesInSignature

public java.util.Set<OWLDatatype> getDatatypesInSignature()
A convenience method that obtains the datatypes that are in the signature of this object

Specified by:
getDatatypesInSignature in interface OWLObject
Returns:
A set containing the datatypes that are in the signature of this object.

getNestedClassExpressions

public java.util.Set<OWLClassExpression> getNestedClassExpressions()
Description copied from interface: OWLObject
Gets all of the nested (includes top level) class expressions that are used in this object

Specified by:
getNestedClassExpressions in interface OWLObject
Returns:
A set of OWLClassExpressions that represent the nested class expressions used in this object.

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

compareTo

public final int compareTo(OWLObject o)
Specified by:
compareTo in interface java.lang.Comparable<OWLObject>

compareObjectOfSameType

protected abstract int compareObjectOfSameType(OWLObject object)

toString

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

isTopEntity

public boolean isTopEntity()
Description copied from interface: OWLObject
Determines if this object is either, owl:Thing (the top class), owl:topObjectProperty (the top object property) , owl:topDataProperty (the top data property) or rdfs:Literal (the top datatype).

Specified by:
isTopEntity in interface OWLObject
Returns:
true if this object corresponds to one of the above entities.

isBottomEntity

public boolean isBottomEntity()
Description copied from interface: OWLObject
Determines if this object is either, owl:Nothing (the bottom class), owl:bottomObjectProperty (the bottom object property) , owl:bottomDataProperty (the bottom data property).

Specified by:
isBottomEntity in interface OWLObject
Returns:
true if this object corresponds to one of the above entities.

compareSets

protected static int compareSets(java.util.Set<? extends OWLObject> set1,
                                 java.util.Set<? extends OWLObject> set2)