public final class RemoveOntologyAnnotationData extends OWLOntologyChangeData
Represents the specific non-ontology data required by a RemoveOntologyAnnotation
change.
Instances of this class are immutable.
Constructor and Description |
---|
RemoveOntologyAnnotationData(OWLAnnotation annotation)
Constructs a
RemoveOntologyAnnotationData object that describes a RemoveOntologyAnnotation change
for the OWLAnnotation specified by the annotation parameter. |
Modifier and Type | Method and Description |
---|---|
<O,E extends java.lang.Exception> |
accept(OWLOntologyChangeDataVisitor<O,E> visitor)
Accepts a visit from an
OWLOntologyChangeDataVisitor |
RemoveOntologyAnnotation |
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. |
boolean |
equals(java.lang.Object obj) |
OWLAnnotation |
getAnnotation()
Gets the
OWLAnnotation that is the focus of some RemoveOntologyAnnotation
change. |
int |
hashCode() |
java.lang.String |
toString() |
public RemoveOntologyAnnotationData(OWLAnnotation annotation)
RemoveOntologyAnnotationData
object that describes a RemoveOntologyAnnotation
change
for the OWLAnnotation
specified by the annotation
parameter.annotation
- The OWLAnnotation
that is the focus of some change. Not null
.java.lang.NullPointerException
- if annotation
is null
.public OWLAnnotation getAnnotation()
OWLAnnotation
that is the focus of some RemoveOntologyAnnotation
change.OWLAnnotation
. Not null
.public RemoveOntologyAnnotation createOntologyChange(OWLOntology ontology)
OWLOntologyChangeData
OWLOntologyChange
object that pertains to the specified ontology
, which when applied
to the specified ontology enacts the change described by this info object.createOntologyChange
in class OWLOntologyChangeData
ontology
- The OWLOntology
that the change should apply to. Not null
.OWLOntologyChange
object that applies to ontology
and changes ontology
is
a way that is consistent with this the information held in this OWLOntologyChangeData
object.public <O,E extends java.lang.Exception> O accept(OWLOntologyChangeDataVisitor<O,E> visitor) throws E extends java.lang.Exception
OWLOntologyChangeData
OWLOntologyChangeDataVisitor
accept
in class OWLOntologyChangeData
O
- The return type for visitor's visit methods.E
- The exception type for exceptions thrown by the visitor's visit methods.visitor
- The visitorE
- The exception thrown by the visitor's visit methods.E extends java.lang.Exception
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object