|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.uima.annotator.dict_annot.impl.FeaturePathInfo_impl
public class FeaturePathInfo_impl
FeaturePathInfo implementation validates the given featurePath for a specified annotation. It can return the featurePath value as string or match the featurePath value against a specified condition.
Constructor Summary | |
---|---|
FeaturePathInfo_impl()
Constructor to create a new featurePath object |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeaturePathInfo_impl()
Method Detail |
---|
public void initialize(String featurePath) throws DictionaryAnnotatorConfigException
featurePath
- featurePath string separated by "/"
DictionaryAnnotatorConfigException
public void typeSystemInit(org.apache.uima.cas.Type featurePathType) throws DictionaryAnnotatorProcessException
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 match
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |