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

    Constructors
    Constructor
    Description
    MutableAddAxiom(org.semanticweb.owlapi.model.OWLOntology ont, org.semanticweb.owlapi.model.OWLAxiom axiom)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    org.semanticweb.owlapi.model.OWLOntology
    Retrieves this object's current ontology;
    int
     
    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 applied
      axiom - 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 interface MutableAxiomChange
      Parameters:
      ontology - The ontology to set
    • getOntology

      @Nonnull public org.semanticweb.owlapi.model.OWLOntology getOntology()
      Description copied from interface: MutableAxiomChange
      Retrieves this object's current ontology;
      Specified by:
      getOntology in interface MutableAxiomChange
      Overrides:
      getOntology in class org.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 interface TransactionalChange
      Parameters:
      targetOntology - Ontology to which the changes are applied
      Returns:
      A list of OWL change axioms corresponding to this change
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class org.semanticweb.owlapi.model.AddAxiom
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class org.semanticweb.owlapi.model.AddAxiom