public class FeaturePathFactory extends Object
Modifier and Type | Class and Description |
---|---|
static class |
FeaturePathFactory.FeaturePathIterator<T extends org.apache.uima.cas.text.AnnotationFS> |
Constructor and Description |
---|
FeaturePathFactory() |
Modifier and Type | Method and Description |
---|---|
static Iterable<Map.Entry<org.apache.uima.cas.text.AnnotationFS,String>> |
select(org.apache.uima.cas.CAS aCas,
String aPath)
Select annotation/value pairs matching the given feature path.
|
static <T extends org.apache.uima.jcas.tcas.Annotation> |
select(org.apache.uima.jcas.JCas aJCas,
Class<T> aAnchor,
String aPath)
Select annotation/value pairs matching the given feature path.
|
public static Iterable<Map.Entry<org.apache.uima.cas.text.AnnotationFS,String>> select(org.apache.uima.cas.CAS aCas, String aPath) throws FeaturePathException
aCas
- the CAS to search in.aPath
- the full feature path.FeaturePathException
- if an error occurs during initialization of the feature pathpublic static <T extends org.apache.uima.jcas.tcas.Annotation> Iterable<Map.Entry<T,String>> select(org.apache.uima.jcas.JCas aJCas, Class<T> aAnchor, String aPath) throws FeaturePathException
T
- the anchor type.aJCas
- the JCas to search in.aAnchor
- the anchor type.aPath
- a feature path relative to the anchor type.FeaturePathException
- if an error occurs during initialization of the feature pathCopyright © 2007–2018 Ubiquitous Knowledge Processing (UKP) Lab, Technische Universität Darmstadt. All rights reserved.