org.semanticweb.owl.model
Class OWLAxiomChange

java.lang.Object
  extended by org.semanticweb.owl.model.OWLOntologyChange
      extended by org.semanticweb.owl.model.OWLAxiomChange
Direct Known Subclasses:
AddAxiom, RemoveAxiom

public abstract class OWLAxiomChange
extends OWLOntologyChange

Author: Matthew Horridge
The University Of Manchester
Bio-Health Informatics Group
Date: 12-Dec-2006


Constructor Summary
OWLAxiomChange(OWLOntology ont, OWLAxiom axiom)
           
 
Method Summary
 OWLAxiom getAxiom()
          Gets the axiom that is involved in the change (the axiom to either be added or removed)
 java.util.Set<OWLEntity> getEntities()
          A convenience method that obtains the entities which are referenced in the axiom contained within this change.
protected abstract  boolean isAdd()
          Determines if the change will add an axiom to an ontology, or remove an axiom from an ontology.
 boolean isAxiomChange()
          Determines if the change will cause the addition or removal of an axiom from an ontology.
 
Methods inherited from class org.semanticweb.owl.model.OWLOntologyChange
accept, getOntology
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLAxiomChange

public OWLAxiomChange(OWLOntology ont,
                      OWLAxiom axiom)
Method Detail

isAxiomChange

public boolean isAxiomChange()
Description copied from class: OWLOntologyChange
Determines if the change will cause the addition or removal of an axiom from an ontology.

Specified by:
isAxiomChange in class OWLOntologyChange
Returns:
true if the change is an OWLAddAxiomChange or OWLRemoveAxiomChange otherwise false.

isAdd

protected abstract boolean isAdd()
Determines if the change will add an axiom to an ontology, or remove an axiom from an ontology.

Returns:
true if the change will add an axiom to an ontology, false if the change will remove an axiom from an ontology.

getAxiom

public OWLAxiom getAxiom()
Gets the axiom that is involved in the change (the axiom to either be added or removed)

Specified by:
getAxiom in class OWLOntologyChange
Returns:
The Axiom if this change is an axiom change

getEntities

public java.util.Set<OWLEntity> getEntities()
A convenience method that obtains the entities which are referenced in the axiom contained within this change.

Returns:
A Set of entities which are referenced by the axiom contained within this change.