...
Gliffy Diagram |
---|
| |
---|
name | uv3 fs iteration design |
---|
|
Translations of uimaFIT select methods to the new API
select(FSArray, Class<T>)
Code Block |
---|
|
myArray.select(Token.class) |
select(FSList, Class<T>)
Code Block |
---|
|
myList.select(Token.class) |
select(JCas, Class<T>)
Code Block |
---|
|
jcas.select(Token.class) |
selectAll(JCas)
selectAt(JCas, Class<T>, int, int)
Code Block |
---|
|
jcas.select(Token.class).at(begin end) |
selectBetween(Class<T>, AnnotationFS, AnnotationFS)
For description, see selectBetween(JCas, Class<T>, AnnotationFS, AnnotationFS) below.
Example same as selectBetween(JCas, Class<T>, AnnotationFS, AnnotationFS) below unless we introduce a static method.
selectBetween(JCas, Class<T>, AnnotationFS, AnnotationFS)
Code Block |
---|
|
jcas.select(Token.class).startAt(fs1).endAt(fs2) // this looks more like index positions...
jcas.select(Token.class).between(fs1, fs2) // might make more sense because we are using offsets, not index positions |
selectByIndex(JCas, Class<T>, int)
Code Block |
---|
|
jcas.select(Token.class).at(indexPosition) |
selectCovered(Class<T>, AnnotationFS)
Get a list of annotations of the given annotation type constrained by a 'covering' annotation. Iterates over all annotations of the given type to find the covered annotations. Does not use subiterators.
The covering annotation is never returned itself, even if it is of the queried-for type or a subtype of that type.
Same as selectCovered(JCas, Class<T>, AnnotationFS) below unless we introduce a static method.
selectCovered(JCas, Class<T>, AnnotationFS)
Code Block |
---|
|
jcas.select(Token.class).within(contextAnnotation) |
selectCovered(JCas, Class<T>, int, int)
Code Block |
---|
|
jcas.select(Token.class).within(1,3) |
selectCovering(Class<T>, AnnotationFS)
selectCovering(JCas, Class<T>, AnnotationFS)
selectCovering(JCas, Class<T>, int, int)
selectFollowing(Class<T>, AnnotationFS, int)
selectFollowing(JCas, Class<T>, AnnotationFS, int)
selectPreceding(Class<T>, AnnotationFS, int)
selectPreceding(JCas, Class<T>, AnnotationFS, int)
selectSingle(JCas, Class<T>)
selectSingleAt(JCas, Class<T>, int, int)
selectSingleRelative(Class<T>, AnnotationFS, int)
selectSingleRelative(JCas, Class<T>, AnnotationFS, int)