Package org.semanticweb.owlapi.model
Class AddOntologyAnnotation
java.lang.Object
org.semanticweb.owlapi.model.OWLOntologyChange
org.semanticweb.owlapi.model.AnnotationChange
org.semanticweb.owlapi.model.AddOntologyAnnotation
- All Implemented Interfaces:
Serializable
,HasSignature
Represents an ontology change where an annotation is added to an ontology.
- Since:
- 3.0.0
- Author:
- Matthew Horridge, The University of Manchester, Information Management Group
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(OWLOntologyChangeVisitor visitor) Accepts a visitor.<O> O
accept
(OWLOntologyChangeVisitorEx<O> visitor) Accepts a visitor.boolean
Gets the data (independent of the ontology) associated with this specific change.int
hashCode()
toString()
Methods inherited from class org.semanticweb.owlapi.model.AnnotationChange
getAnnotation, signature
Methods inherited from class org.semanticweb.owlapi.model.OWLOntologyChange
getAddedAxiom, getAddedOrRemovedAxiom, getAxiom, getChangeRecord, getOntology, getRemovedAxiom, isAddAxiom, isAxiomChange, isAxiomChange, isImportChange, isRemoveAxiom
Methods inherited from interface org.semanticweb.owlapi.model.HasSignature
getSignature, unsortedSignature
-
Constructor Details
-
AddOntologyAnnotation
- Parameters:
ont
- the ontology to which the change is to be appliedannotation
- the annotation
-
-
Method Details
-
getChangeData
Description copied from class:OWLOntologyChange
Gets the data (independent of the ontology) associated with this specific change.- Specified by:
getChangeData
in classOWLOntologyChange
- Returns:
- The
OWLOntologyChangeData
associated with thisOWLOntologyChange
.
-
accept
Description copied from class:OWLOntologyChange
Accepts a visitor.- Specified by:
accept
in classOWLOntologyChange
- Parameters:
visitor
- The visitor
-
accept
Description copied from class:OWLOntologyChange
Accepts a visitor.- Specified by:
accept
in classOWLOntologyChange
- Type Parameters:
O
- visitor return type- Parameters:
visitor
- The visitor- Returns:
- visitor value
-
hashCode
public int hashCode() -
equals
-
toString
-
reverseChange
- Specified by:
reverseChange
in classOWLOntologyChange
- Returns:
- the reverse of this change; can be used to create undo changes.
-