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

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

public class Feature_impl
extends java.lang.Object
implements Feature


Field Summary
 
Fields inherited from interface org.apache.uima.annotator.regex.Feature
CONFIDENCE_FEATURE, CUSTOM_NORMALIZATION, FLOAT_FEATURE, INTEGER_FEATURE, REFERENCE_FEATURE, RULEID_FEATURE, STRING_FEATURE, TO_LOWER_NORMALIZATION, TO_UPPER_NORMALIZATION, TRIM_NORMALIZATION
 
Constructor Summary
Feature_impl(int type, java.lang.String name, java.lang.String value, int normalizationType, java.lang.String implClass)
           
 
Method Summary
 org.apache.uima.cas.Feature getFeature()
          Get the UIMA feature value of this feature object
 java.lang.String getName()
          Get the feature name of this feature
 int getType()
          Get the feature type.
 java.lang.String getValue()
          Get the feature value of this feature.
 void initialize()
          Initialize the feature definition.
 java.lang.String normalize(java.lang.String input, java.lang.String ruleId)
          Get the normalization of the input string based on the specified normalization for this feature.
 java.lang.String toString()
           
 void typeInit(org.apache.uima.cas.Type annotationType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Feature_impl

public Feature_impl(int type,
                    java.lang.String name,
                    java.lang.String value,
                    int normalizationType,
                    java.lang.String implClass)
Method Detail

getType

public int getType()
Description copied from interface: Feature
Get the feature type.

Specified by:
getType in interface Feature
Returns:
returns the feature type.

getName

public java.lang.String getName()
Description copied from interface: Feature
Get the feature name of this feature

Specified by:
getName in interface Feature
Returns:
returns the feature name

getValue

public java.lang.String getValue()
Description copied from interface: Feature
Get the feature value of this feature.

Specified by:
getValue in interface Feature
Returns:
returns the feature value of this feature.

getFeature

public org.apache.uima.cas.Feature getFeature()
Description copied from interface: Feature
Get the UIMA feature value of this feature object

Specified by:
getFeature in interface Feature
Returns:
returns the UIMA feature object.

normalize

public java.lang.String normalize(java.lang.String input,
                                  java.lang.String ruleId)
                           throws java.lang.Exception
Description copied from interface: Feature
Get the normalization of the input string based on the specified normalization for this feature. If no normalization was specified, the input string is returned.

Specified by:
normalize in interface Feature
Returns:
returns the normalization type for this feature.
Throws:
java.lang.Exception

typeInit

public void typeInit(org.apache.uima.cas.Type annotationType)
              throws org.apache.uima.resource.ResourceInitializationException
Parameters:
annotationType -
Throws:
org.apache.uima.resource.ResourceInitializationException

initialize

public void initialize()
                throws RegexAnnotatorConfigException
Initialize the feature definition. Try to instantiate the custom normalization class if specified.

Throws:
RegexAnnotatorConfigException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2011. All Rights Reserved.