public class FeaturePathInfo_impl extends Object implements FeaturePathInfo
Constructor and Description |
---|
FeaturePathInfo_impl()
Constructor to create a new featurePath object
|
Modifier and Type | Method and Description |
---|---|
String |
getFeaturePath()
Returns the featurePath as String
|
String |
getValue(org.apache.uima.cas.text.AnnotationFS annotFS)
Returns the value of the given annotation FS for the stored featurePath.
|
void |
initialize(String featurePath)
Initialize the object's featurePath for the given type.
|
boolean |
match(org.apache.uima.cas.text.AnnotationFS annotFS,
Condition condition)
Returns true if the featurePath value for the given annotation match the
specified condition.
|
void |
typeSystemInit(org.apache.uima.cas.Type featurePathType)
checks the feature path for the given type and checks if it can be valid.
|
public FeaturePathInfo_impl()
public void initialize(String featurePath) throws DictionaryAnnotatorConfigException
featurePath
- featurePath string separated by "/"DictionaryAnnotatorConfigException
public void typeSystemInit(org.apache.uima.cas.Type featurePathType) throws DictionaryAnnotatorProcessException
public String getValue(org.apache.uima.cas.text.AnnotationFS annotFS)
FeaturePathInfo
getValue
in interface FeaturePathInfo
annotFS
- annotation where the featurePath should be resolved on.public String getFeaturePath()
FeaturePathInfo
getFeaturePath
in interface FeaturePathInfo
public boolean match(org.apache.uima.cas.text.AnnotationFS annotFS, Condition condition)
FeaturePathInfo
match
in interface FeaturePathInfo
annotFS
- current annotation to checkcondition
- condition for the matchCopyright © 2006–2022 The Apache Software Foundation. All rights reserved.