Class OWLOntologyChangeData

java.lang.Object
org.semanticweb.owlapi.change.OWLOntologyChangeData
All Implemented Interfaces:
Serializable, HasSignature
Direct Known Subclasses:
AxiomChangeData, ImportChangeData, OntologyAnnotationChangeData, SetOntologyIDData

public abstract class OWLOntologyChangeData extends Object implements HasSignature, Serializable
Represents an abstraction of the essential non-ontology data required by a particular kind of OWLOntologyChange. There is a concrete subclass of this class for each concrete class of OWLOntologyChange.
Instances of this class are immutable.
Since:
3.3
Author:
Matthew Horridge, Stanford University, Bio-Medical Informatics Research Group
See Also:
  • Method Details

    • accept

      public abstract <R> R accept(OWLOntologyChangeDataVisitor<R> visitor)
      Accepts a visit from an OWLOntologyChangeDataVisitor.
      Type Parameters:
      R - The return type for visitor's visit methods.
      Parameters:
      visitor - The visitor
      Returns:
      The object returned by the visitor's visit methods.
    • createOntologyChange

      public abstract OWLOntologyChange createOntologyChange(OWLOntology ontology)
      Creates an OWLOntologyChange object that pertains to the specified ontology, which when applied to the specified ontology enacts the change described by this info object.
      Parameters:
      ontology - The OWLOntology that the change should apply to.
      Returns:
      An OWLOntologyChange object that applies to ontology and changes ontology in a way that is consistent with this the information held in this OWLOntologyChangeData object.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getItem

      public abstract Object getItem()
      Returns:
      the object this change is adding or removing
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object