org.semanticweb.owlapi.model
Class AddOntologyAnnotation

java.lang.Object
  extended by org.semanticweb.owlapi.model.OWLOntologyChange
      extended by org.semanticweb.owlapi.model.AddOntologyAnnotation

public class AddOntologyAnnotation
extends OWLOntologyChange

Author: Matthew Horridge
The University of Manchester
Information Management Group
Date: 24-Mar-2009

Represents an ontology change where an annotation is added to an ontology.


Constructor Summary
AddOntologyAnnotation(OWLOntology ont, OWLAnnotation annotation)
           
 
Method Summary
 void accept(OWLOntologyChangeVisitor visitor)
           
 boolean equals(java.lang.Object obj)
           
 OWLAnnotation getAnnotation()
          Gets the annotation that was added to an ontology.
 OWLAxiom getAxiom()
          If the change is an axiom change (i.e.
 int hashCode()
           
 boolean isAxiomChange()
          Determines if the change will cause the addition or removal of an axiom from an ontology.
 boolean isImportChange()
          Determines if this change is an import change and hence causes a change to the imports closure of an ontology.
 
Methods inherited from class org.semanticweb.owlapi.model.OWLOntologyChange
getOntology
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AddOntologyAnnotation

public AddOntologyAnnotation(OWLOntology ont,
                             OWLAnnotation annotation)
Method Detail

isAxiomChange

public boolean isAxiomChange()
Description copied from class: OWLOntologyChange
Determines if the change will cause the addition or removal of an axiom from an ontology.

Specified by:
isAxiomChange in class OWLOntologyChange
Returns:
true if the change is an OWLAddAxiomChange or OWLRemoveAxiomChange otherwise false.

getAnnotation

public OWLAnnotation getAnnotation()
Gets the annotation that was added to an ontology.

Returns:
The annotation that was added

getAxiom

public OWLAxiom getAxiom()
Description copied from class: OWLOntologyChange
If the change is an axiom change (i.e. AddAxiom or RemoveAxiom) this method obtains the axiom.

Specified by:
getAxiom in class OWLOntologyChange
Returns:
The Axiom if this change is an axiom change

isImportChange

public boolean isImportChange()
Description copied from class: OWLOntologyChange
Determines if this change is an import change and hence causes a change to the imports closure of an ontology.

Specified by:
isImportChange in class OWLOntologyChange
Returns:
true if this change is an import change, otherwise false.

accept

public void accept(OWLOntologyChangeVisitor visitor)
Specified by:
accept in class OWLOntologyChange

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object