Class MutableAddAxiom
java.lang.Object
org.semanticweb.owlapi.model.OWLOntologyChange
org.semanticweb.owlapi.model.OWLAxiomChange
org.semanticweb.owlapi.model.AddAxiom
cz.cvut.kbss.ontodriver.owlapi.change.MutableAddAxiom
- All Implemented Interfaces:
MutableAxiomChange
,TransactionalChange
,Serializable
,org.semanticweb.owlapi.model.HasSignature
public class MutableAddAxiom
extends org.semanticweb.owlapi.model.AddAxiom
implements MutableAxiomChange
Add axiom wrapper which allows us to set ontology to which it is applied.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMutableAddAxiom
(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.AddAxiom
accept, accept, getChangeData, isAddAxiom, 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, 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
-
MutableAddAxiom
public MutableAddAxiom(org.semanticweb.owlapi.model.OWLOntology ont, org.semanticweb.owlapi.model.OWLAxiom axiom) - Parameters:
ont
- the ontology to which the change is to be appliedaxiom
- The added axiom
-
-
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
-
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
-
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
-
equals
- Overrides:
equals
in classorg.semanticweb.owlapi.model.AddAxiom
-
hashCode
public int hashCode()- Overrides:
hashCode
in classorg.semanticweb.owlapi.model.AddAxiom
-