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 TypeMethodDescriptionbooleanorg.semanticweb.owlapi.model.OWLOntologyRetrieves this object's current ontology;inthashCode()voidsetOntology(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, toStringMethods inherited from class org.semanticweb.owlapi.model.OWLAxiomChange
getAxiom, isAxiomChange, signatureMethods inherited from class org.semanticweb.owlapi.model.OWLOntologyChange
getAddedAxiom, getAddedOrRemovedAxiom, getChangeRecord, getRemovedAxiom, isAxiomChange, isImportChange, isRemoveAxiomMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, unsortedSignatureMethods 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:MutableAxiomChangeSets ontology on this object.- Specified by:
setOntologyin interfaceMutableAxiomChange- Parameters:
ontology- The ontology to set
-
getOntology
Description copied from interface:MutableAxiomChangeRetrieves this object's current ontology;- Specified by:
getOntologyin interfaceMutableAxiomChange- Overrides:
getOntologyin 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:TransactionalChangeTranslates this transactional change to corresponding OWLAPI change axioms.- Specified by:
toOwlChangesin interfaceTransactionalChange- Parameters:
targetOntology- Ontology to which the changes are applied- Returns:
- A list of OWL change axioms corresponding to this change
-
equals
- Overrides:
equalsin classorg.semanticweb.owlapi.model.AddAxiom
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.semanticweb.owlapi.model.AddAxiom
-