Class MutableRemoveAxiom
java.lang.Object
org.semanticweb.owlapi.model.OWLOntologyChange
org.semanticweb.owlapi.model.OWLAxiomChange
org.semanticweb.owlapi.model.RemoveAxiom
cz.cvut.kbss.ontodriver.owlapi.change.MutableRemoveAxiom
- All Implemented Interfaces:
MutableAxiomChange
,TransactionalChange
,Serializable
,org.semanticweb.owlapi.model.HasSignature
public class MutableRemoveAxiom
extends org.semanticweb.owlapi.model.RemoveAxiom
implements MutableAxiomChange
Remove axiom wrapper which allows us to set ontology to which it is applied.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMutableRemoveAxiom
(org.semanticweb.owlapi.model.OWLOntology ont, org.semanticweb.owlapi.model.OWLAxiom axiom) -
Method Summary
Modifier and TypeMethodDescriptionboolean
org.semanticweb.owlapi.model.OWLOntology
Retrieves this object's current ontology;int
hashCode()
void
setOntology
(org.semanticweb.owlapi.model.OWLOntology ontology) Sets ontology on this object.List<org.semanticweb.owlapi.model.OWLOntologyChange>
toOwlChanges
(org.semanticweb.owlapi.model.OWLOntology targetOntology) Translates this transactional change to corresponding OWLAPI change axioms.Methods inherited from class org.semanticweb.owlapi.model.RemoveAxiom
accept, accept, getChangeData, reverseChange, toString
Methods inherited from class org.semanticweb.owlapi.model.OWLAxiomChange
getAxiom, isAxiomChange, signature
Methods inherited from class org.semanticweb.owlapi.model.OWLOntologyChange
getAddedAxiom, getAddedOrRemovedAxiom, getChangeRecord, getRemovedAxiom, isAddAxiom, isAxiomChange, isImportChange, isRemoveAxiom
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, unsortedSignature
Methods inherited from interface cz.cvut.kbss.ontodriver.owlapi.change.TransactionalChange
overrides
-
Constructor Details
-
MutableRemoveAxiom
public MutableRemoveAxiom(org.semanticweb.owlapi.model.OWLOntology ont, org.semanticweb.owlapi.model.OWLAxiom axiom) - Parameters:
ont
- the ontology to which the change is to be appliedaxiom
- Axiom to remove
-
-
Method Details
-
setOntology
public void setOntology(org.semanticweb.owlapi.model.OWLOntology ontology) Description copied from interface:MutableAxiomChange
Sets ontology on this object.- Specified by:
setOntology
in interfaceMutableAxiomChange
- Parameters:
ontology
- The ontology to set
-
toOwlChanges
public List<org.semanticweb.owlapi.model.OWLOntologyChange> toOwlChanges(org.semanticweb.owlapi.model.OWLOntology targetOntology) Description copied from interface:TransactionalChange
Translates this transactional change to corresponding OWLAPI change axioms.- Specified by:
toOwlChanges
in interfaceTransactionalChange
- Parameters:
targetOntology
- Ontology to which the changes are applied- Returns:
- A list of OWL change axioms corresponding to this change
-
getOntology
Description copied from interface:MutableAxiomChange
Retrieves this object's current ontology;- Specified by:
getOntology
in interfaceMutableAxiomChange
- Overrides:
getOntology
in classorg.semanticweb.owlapi.model.OWLOntologyChange
- Returns:
- OWLOntology
-
equals
- Overrides:
equals
in classorg.semanticweb.owlapi.model.RemoveAxiom
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.semanticweb.owlapi.model.RemoveAxiom
-