|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SimpleAnnotationSet
Annotation sets
Method Summary | |
---|---|
Integer |
add(Long start,
Long end,
String type,
FeatureMap features)
Create and add an annotation and return its id |
Integer |
add(Node start,
Node end,
String type,
FeatureMap features)
Create and add an annotation with pre-existing nodes, and return its id |
boolean |
add(Object o)
Add an existing annotation. |
AnnotationSet |
get()
Get all annotations |
Annotation |
get(Integer id)
Find annotations by id |
AnnotationSet |
get(Set types)
Select annotations by a set of types. |
AnnotationSet |
get(String type)
Select annotations by type |
Set |
getAllTypes()
Get a set of java.lang.String objects representing all the annotation types present in this annotation set. |
Document |
getDocument()
Get the document this set is attached to. |
String |
getName()
Get the name of this set. |
Iterator |
iterator()
Get an iterator for this set |
boolean |
remove(Object o)
Remove an element from this set. |
int |
size()
The size of this set |
Methods inherited from interface java.util.Set |
---|
addAll, clear, contains, containsAll, equals, hashCode, isEmpty, removeAll, retainAll, toArray, toArray |
Method Detail |
---|
Integer add(Node start, Node end, String type, FeatureMap features)
Integer add(Long start, Long end, String type, FeatureMap features) throws InvalidOffsetException
InvalidOffsetException
boolean add(Object o)
add
in interface Collection
add
in interface Set
Iterator iterator()
iterator
in interface Collection
iterator
in interface Iterable
iterator
in interface Set
int size()
size
in interface Collection
size
in interface Set
boolean remove(Object o)
remove
in interface Collection
remove
in interface Set
Annotation get(Integer id)
AnnotationSet get()
AnnotationSet get(String type)
AnnotationSet get(Set types)
String getName()
Set getAllTypes()
Document getDocument()
|
GATE Version 3.1-2270 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |