org.semanticweb.owl.model
Class OWLAxiomChange
java.lang.Object
org.semanticweb.owl.model.OWLOntologyChange
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
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. |
boolean |
isAxiomChange()
Determines if the change will cause the addition or
removal of an axiom from an ontology. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OWLAxiomChange
public OWLAxiomChange(OWLOntology ont,
OWLAxiom axiom)
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
.
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.