public abstract class OWLOntologyChange extends Object implements HasSignature, Serializable
| Constructor and Description |
|---|
OWLOntologyChange(OWLOntology ont) |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
accept(OWLOntologyChangeVisitor visitor)
Accepts a visitor.
|
abstract <O> O |
accept(OWLOntologyChangeVisitorEx<O> visitor)
Accepts a visitor.
|
OWLAxiom |
getAxiom()
If the change is an axiom change (i.e.
|
abstract OWLOntologyChangeData |
getChangeData()
Gets the data (independent of the ontology) associated with this specific
change.
|
OWLOntologyChangeRecord |
getChangeRecord()
Gets a
OWLOntologyChangeRecord that is derived from this
OWLOntologyChange's OWLOntologyID and it's
OWLOntologyChangeData. |
OWLOntology |
getOntology()
Gets the ontology that the change is/was applied to.
|
boolean |
isAddAxiom()
Determines if the change will add an axiom to an ontology.
|
boolean |
isAxiomChange()
Determines if the change will cause the addition or removal of an axiom
from an ontology.
|
boolean |
isImportChange()
Determines if this change is an import change and hence causes a change
to the imports closure of an ontology.
|
boolean |
isRemoveAxiom()
Determines if the change will remove an axiom from an ontology.
|
abstract OWLOntologyChange |
reverseChange() |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetSignature, signaturepublic OWLOntologyChange(OWLOntology ont)
ont - the ontology to which the change is to be appliedpublic boolean isAxiomChange()
true if the change is an OWLAddAxiomChange or OWLRemoveAxiomChange otherwise false.public boolean isAddAxiom()
true if the change is an AddAxiom change and it will add an axiom to an
ontology, false otherwise.public boolean isRemoveAxiom()
true if the change is a RemoveAxiom change and it will remove an axiom from
an ontology, false otherwise.public OWLAxiom getAxiom()
IllegalStateException - if the change has no axiom; UnsupportedOperationException If
the change is not an axiom change (check with the isAxiomChange method first).public boolean isImportChange()
true if this change is an import change, otherwise false.public OWLOntology getOntology()
public abstract OWLOntologyChangeData getChangeData()
OWLOntologyChangeData associated with this OWLOntologyChange.public OWLOntologyChangeRecord getChangeRecord()
OWLOntologyChangeRecord that is derived from this
OWLOntologyChange's OWLOntologyID and it's
OWLOntologyChangeData.OWLOntologyChangeRecord containing an OWLOntologyID equal to the
OWLOntologyID of this OWLOntologyChange's OWLOntology. Not null .public abstract void accept(OWLOntologyChangeVisitor visitor)
visitor - The visitorpublic abstract <O> O accept(OWLOntologyChangeVisitorEx<O> visitor)
O - visitor return typevisitor - The visitorpublic abstract OWLOntologyChange reverseChange()
Copyright © 2017 The University of Manchester. All rights reserved.