public class CachedJCasUtil extends Object
Modifier and Type | Method and Description |
---|---|
<X extends org.apache.uima.jcas.tcas.Annotation> |
add(Class<X> annotationClass,
X annotationInstance)
Manually adds the given instance to the respective cache.
|
<X extends org.apache.uima.jcas.tcas.Annotation> |
add(X annotationInstance)
Manually adds the given instance to the respective cache.
|
static CachedJCasUtil |
getInstance(org.apache.uima.jcas.JCas jcas)
Returns the JCasUtil instance for the given JCas instance.
|
org.apache.uima.jcas.JCas |
getJcas() |
<X extends org.apache.uima.jcas.tcas.Annotation> |
remove(Class<X> annotationClass,
X annotationInstance) |
<X extends org.apache.uima.jcas.tcas.Annotation> |
select(Class<X> annotationClass)
Returns all annotations of the given class.
|
<X extends org.apache.uima.jcas.tcas.Annotation> |
selectCovered(Class<X> annotationClass,
int begin,
int end)
Returns all annotations of the given class that are contained in the text region specified by
the given begin and end (inclusive).
|
<X extends org.apache.uima.jcas.tcas.Annotation> |
selectCovering(Class<X> annotationClass,
int begin,
int end)
Returns all annotations of the given class that contain at least the text region specified by
the given begin and end (inclusive).
|
<X extends org.apache.uima.jcas.tcas.Annotation> |
selectOverlapping(Class<X> annotationClass,
int begin,
int end)
Returns all annotations of the given class that are overlapping with the text region specified by
the given begin and end (inclusive).
|
<X extends org.apache.uima.jcas.tcas.Annotation> |
update(Class<X> annotationClass)
Updates the cache for the given class and inserts all new instances of the given class.
|
public org.apache.uima.jcas.JCas getJcas()
public static CachedJCasUtil getInstance(org.apache.uima.jcas.JCas jcas)
jcas
- public <X extends org.apache.uima.jcas.tcas.Annotation> void add(X annotationInstance)
X
- annotationInstance
- public <X extends org.apache.uima.jcas.tcas.Annotation> void add(Class<X> annotationClass, X annotationInstance)
X
- annotationInstance
- public <X extends org.apache.uima.jcas.tcas.Annotation> boolean remove(Class<X> annotationClass, X annotationInstance)
public <X extends org.apache.uima.jcas.tcas.Annotation> void update(Class<X> annotationClass)
X
- annotationClass
- public <X extends org.apache.uima.jcas.tcas.Annotation> List<X> select(Class<X> annotationClass)
public <X extends org.apache.uima.jcas.tcas.Annotation> List<X> selectCovered(Class<X> annotationClass, int begin, int end)
public <X extends org.apache.uima.jcas.tcas.Annotation> List<X> selectCovering(Class<X> annotationClass, int begin, int end)
public <X extends org.apache.uima.jcas.tcas.Annotation> List<X> selectOverlapping(Class<X> annotationClass, int begin, int end)
Copyright (C) 2013, 2014 Raphael Dickfelder, Jan Göpfert, Benjamin Paassen, Andreas Stöckel, licensed under the AGPL v. 3: http://openresearch.cit-ec.de/projects/scie