Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Gliffy Diagram
nameuv3 fs iteration design

Translations of uimaFIT select methods to the new API

select(FSArray, Class<T>)
Code Block
languagejava
myArray.select(Token.class)

select(FSList, Class<T>)

Code Block
languagejava
myList.select(Token.class)
select(JCas, Class<T>)
Code Block
languagejava
jcas.select(Token.class)

selectAll(JCas)

Code Block
languagejava
jcas.select()
selectAt(JCas, Class<T>, int, int)
Code Block
languagejava
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
languagejava
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
languagejava
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
languagejava
jcas.select(Token.class).within(contextAnnotation)
selectCovered(JCas, Class<T>, int, int)
Code Block
languagejava
jcas.select(Token.class).within(1,3)
selectCovering(Class<T>, AnnotationFS)
Code Block
languagejava
 
selectCovering(JCas, Class<T>, AnnotationFS)
Code Block
languagejava
 
selectCovering(JCas, Class<T>, int, int)
Code Block
languagejava
 
selectFollowing(Class<T>, AnnotationFS, int)
Code Block
languagejava
 
selectFollowing(JCas, Class<T>, AnnotationFS, int)
Code Block
languagejava
 
selectPreceding(Class<T>, AnnotationFS, int)
Code Block
languagejava
 
selectPreceding(JCas, Class<T>, AnnotationFS, int)
Code Block
languagejava
 
selectSingle(JCas, Class<T>)
Code Block
languagejava
 
selectSingleAt(JCas, Class<T>, int, int)
Code Block
languagejava
 
selectSingleRelative(Class<T>, AnnotationFS, int)
Code Block
languagejava
 
selectSingleRelative(JCas, Class<T>, AnnotationFS, int)
Code Block
languagejava