org.semanticweb.owlapi.model
Class OWLOntologyChange

java.lang.Object
  extended by org.semanticweb.owlapi.model.OWLOntologyChange
Direct Known Subclasses:
AddOntologyAnnotation, ImportChange, OWLAxiomChange, RemoveOntologyAnnotation, SetOntologyID

public abstract class OWLOntologyChange
extends java.lang.Object

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


Constructor Summary
OWLOntologyChange(OWLOntology ont)
           
 
Method Summary
abstract  void accept(OWLOntologyChangeVisitor visitor)
           
abstract  OWLAxiom getAxiom()
          If the change is an axiom change (i.e.
 OWLOntology getOntology()
          Gets the ontology that the change is/was applied to
abstract  boolean isAxiomChange()
          Determines if the change will cause the addition or removal of an axiom from an ontology.
abstract  boolean isImportChange()
          Determines if this change is an import change and hence causes a change to the imports closure of an ontology.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OWLOntologyChange

public OWLOntologyChange(OWLOntology ont)
Method Detail

isAxiomChange

public abstract boolean isAxiomChange()
Determines if the change will cause the addition or removal of an axiom from an ontology.

Returns:
true if the change is an OWLAddAxiomChange or OWLRemoveAxiomChange otherwise false.

getAxiom

public abstract OWLAxiom getAxiom()
If the change is an axiom change (i.e. AddAxiom or RemoveAxiom) this method obtains the axiom.

Returns:
The Axiom if this change is an axiom change
Throws:
java.lang.UnsupportedOperationException - If the change is not an axiom change (check with the isAxiomChange method first).

isImportChange

public abstract boolean isImportChange()
Determines if this change is an import change and hence causes a change to the imports closure of an ontology.

Returns:
true if this change is an import change, otherwise false.

getOntology

public OWLOntology getOntology()
Gets the ontology that the change is/was applied to

Returns:
The ontology that the change is applicable to

accept

public abstract void accept(OWLOntologyChangeVisitor visitor)