org.apache.uima.annotator.regex.impl
Class FeaturePath_impl

java.lang.Object
  extended by org.apache.uima.annotator.regex.impl.FeaturePath_impl
All Implemented Interfaces:
FeaturePath

public class FeaturePath_impl
extends java.lang.Object
implements FeaturePath

FeaturePath implementation that validates and the given featurePath and returns the featurePath value for a specified annotation.


Constructor Summary
FeaturePath_impl(java.lang.String featurePath)
          Constructor to create a new featurePath object with a given featurePath string.
 
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(org.apache.uima.cas.Type type)
          Initialize the object's featurePath for the given type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FeaturePath_impl

public FeaturePath_impl(java.lang.String featurePath)
Constructor to create a new featurePath object with a given featurePath string.

Parameters:
featurePath - featurePath string separated by "/"
Method Detail

initialize

public void initialize(org.apache.uima.cas.Type type)
                throws RegexAnnotatorConfigException
Initialize the object's featurePath for the given type. If the featurePath is not valid an exception is thrown.

Parameters:
type - CAS type to used to initialize the featurePath
Throws:
RegexAnnotatorConfigException

getValue

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

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

getFeaturePath

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

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


Copyright © 2011. All Rights Reserved.