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

    Constructors
    Constructor
    Description
    MutableRemoveAxiom(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.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 applied
      axiom - 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 interface MutableAxiomChange
      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 interface TransactionalChange
      Parameters:
      targetOntology - Ontology to which the changes are applied
      Returns:
      A list of OWL change axioms corresponding to this change
    • 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
    • equals

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

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