public interface Annotation extends SimpleAnnotation, Serializable
Changes from TIPSTER: no ID; single span only. It inherits from SimpleAnnotation in order to allow users to add events and more methods for comparing annotations The event code is needed so a persistent annotation set can listen to its annotations and update correctly the database
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationListener(AnnotationListener l)
Adds an annotation listener
|
boolean |
coextensive(Annotation anAnnot)
Two Annotation are coestensive if their offsets are the same.
|
boolean |
isCompatible(Annotation anAnnot)
This verifies if this annotation is compatible with another one.
|
boolean |
isCompatible(Annotation anAnnot,
Set<? extends Object> aFeatureNamesSet)
This verifies if this annotation is compatible with another one,
given a set with certain keys.
|
boolean |
isPartiallyCompatible(Annotation anAnnot)
This method verifies if two annotation and are partially compatible.
|
boolean |
isPartiallyCompatible(Annotation anAnnot,
Set<? extends Object> aFeatureNamesSet)
This method verifies if two annotation and are partially compatible,
given a set with certain keys.
|
boolean |
overlaps(Annotation aAnnot)
This method determines if this overlaps aAnnot, i.e.
|
void |
removeAnnotationListener(AnnotationListener l)
Removes an annotation listener
|
boolean |
withinSpanOf(Annotation aAnnot)
This method tells if this annotation's text range is
fully contained within the text annotated by
aAnnot 's
annotation. |
compareTo, getEndNode, getStartNode, getType
getFeatures, setFeatures
boolean isCompatible(Annotation anAnnot)
anAnnot
- a gate Annotation.true
if aAnnot is compatible with this and
false
otherwise.boolean isCompatible(Annotation anAnnot, Set<? extends Object> aFeatureNamesSet)
anAnnot
- a gate Annotation.aFeatureNamesSet
- is a set containing certian key that will be
intersected with this's FeatureMap's keys.true
if aAnnot is compatible with this and
false
otherwise.boolean isPartiallyCompatible(Annotation anAnnot)
anAnnot
- a gate Annotation.true
if this is partially compatible with
aAnnot and false
otherwise.boolean isPartiallyCompatible(Annotation anAnnot, Set<? extends Object> aFeatureNamesSet)
anAnnot
- a gate Annotation.aFeatureNamesSet
- is a set containing certian key that will be
intersected with this's FeatureMap's keys.true
if this is partially compatible with
aAnnot and false
otherwise.boolean coextensive(Annotation anAnnot)
anAnnot
- A Gate annotation.true
if two annotation hit the same possition and
false
otherwiseboolean overlaps(Annotation aAnnot)
aAnnot
- a gate Annotation.true
if they overlap and false
false if
they don't or if aAnnot is null.boolean withinSpanOf(Annotation aAnnot)
aAnnot
's
annotation.aAnnot
- a gate Annotation.true
if this annotation is fully contained in the
other one.void removeAnnotationListener(AnnotationListener l)
void addAnnotationListener(AnnotationListener l)
Copyright © 2024 GATE. All rights reserved.