|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationSet
Annotation sets
Method Summary | |
---|---|
void |
add(Integer id,
Long start,
Long end,
String type,
FeatureMap features)
Create and add an annotation with a pre-existing ID |
void |
addAnnotationSetListener(AnnotationSetListener l)
|
void |
addGateListener(GateListener l)
|
Node |
firstNode()
Get the node with the smallest offset |
AnnotationSet |
get(Long offset)
Select annotations by offset. |
AnnotationSet |
get(Long startOffset,
Long endOffset)
Select annotations by offset. |
AnnotationSet |
get(String type,
FeatureMap constraints)
Select annotations by type and features |
AnnotationSet |
get(String type,
FeatureMap constraints,
Long offset)
Select annotations by type, features and offset |
AnnotationSet |
get(String type,
Long startOffset,
Long endOffset)
Select annotations by offset and type. |
AnnotationSet |
get(String type,
Set featureNames)
Select annotations by type and feature names It returns all annotations of the given type that have the given set of features, regardless of their concrete values If the type == null, then select regardless of type |
AnnotationSet |
getContained(Long startOffset,
Long endOffset)
Select annotations by offset. |
Node |
lastNode()
Get the node with the largest offset |
Node |
nextNode(Node node)
Get the first node that is relevant for this annotation set and which has the offset larger than the one of the node provided. |
void |
removeAnnotationSetListener(AnnotationSetListener l)
|
void |
removeGateListener(GateListener l)
|
Methods inherited from interface gate.SimpleAnnotationSet |
---|
add, add, add, get, get, get, get, getAllTypes, getDocument, getName, iterator, remove, size |
Methods inherited from interface java.util.Set |
---|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
Method Detail |
---|
void add(Integer id, Long start, Long end, String type, FeatureMap features) throws InvalidOffsetException
InvalidOffsetException
AnnotationSet get(String type, FeatureMap constraints)
AnnotationSet get(String type, Set featureNames)
AnnotationSet get(String type, FeatureMap constraints, Long offset)
AnnotationSet get(Long offset)
AnnotationSet get(Long startOffset, Long endOffset)
AnnotationSet get(String type, Long startOffset, Long endOffset)
AnnotationSet getContained(Long startOffset, Long endOffset)
Node firstNode()
Node lastNode()
Node nextNode(Node node)
void addAnnotationSetListener(AnnotationSetListener l)
void removeAnnotationSetListener(AnnotationSetListener l)
void addGateListener(GateListener l)
void removeGateListener(GateListener l)
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |