org.apache.uima.annotator.dict_annot.impl
Class FeaturePathInfo_impl

java.lang.Object
  extended by org.apache.uima.annotator.dict_annot.impl.FeaturePathInfo_impl
All Implemented Interfaces:
FeaturePathInfo

public class FeaturePathInfo_impl
extends java.lang.Object
implements FeaturePathInfo

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
 java.lang.String getFeaturePath()
          Returns the featurePath as String
 java.lang.String getValue(org.apache.uima.cas.text.AnnotationFS annotFS)
          Returns the value of the given annotation FS for the stored featurePath.
 void initialize(java.lang.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

FeaturePathInfo_impl

public FeaturePathInfo_impl()
Constructor to create a new featurePath object

Method Detail

initialize

public void initialize(java.lang.String featurePath)
                throws DictionaryAnnotatorConfigException
Initialize the object's featurePath for the given type. If the featurePath is not valid an exception is thrown.

Parameters:
featurePath - featurePath string separated by "/"
Throws:
DictionaryAnnotatorConfigException

typeSystemInit

public void typeSystemInit(org.apache.uima.cas.Type featurePathType)
                    throws DictionaryAnnotatorProcessException
checks the feature path for the given type and checks if it can be valid.

Throws:
DictionaryAnnotatorProcessException

getValue

public java.lang.String getValue(org.apache.uima.cas.text.AnnotationFS annotFS)
Description copied from interface: FeaturePathInfo
Returns the value of the given annotation FS for the stored featurePath.

Specified by:
getValue in interface FeaturePathInfo
Parameters:
annotFS - annotation where the featurePath should be resolved on.
Returns:
featurePath value as String

getFeaturePath

public java.lang.String getFeaturePath()
Description copied from interface: FeaturePathInfo
Returns the featurePath as String

Specified by:
getFeaturePath in interface FeaturePathInfo
Returns:
featurePath string value

match

public boolean match(org.apache.uima.cas.text.AnnotationFS annotFS,
                     Condition condition)
Description copied from interface: FeaturePathInfo
Returns true if the featurePath value for the given annotation match the specified condition. It returns false if no featurePath was specified!

Specified by:
match in interface FeaturePathInfo
Parameters:
annotFS - current annotation to check
condition - condition for the match
Returns:
returns true if the conditions match the featurePath value


Copyright © 2011. All Rights Reserved.