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

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

public class Concept_impl
extends java.lang.Object
implements Concept


Constructor Summary
Concept_impl(java.lang.String name, boolean processAllRules)
           
 
Method Summary
 void addAnnotation(Annotation aAnnotation)
          Adds the given annotation to this concept.
 void addRule(Rule aRule)
          Adds the given rule to this concept
 Annotation[] getAnnotations()
          Gets an array of annotations for this rule.
 java.lang.String getName()
          Get the concept name.
 Rule[] getRules()
          Gets an array of rules for this concept
 void initialize(org.apache.uima.util.Logger logger)
          initialize the concept and the referred rules and annotations.
 boolean processAllConceptRules()
          Checks the rule processing for this concept.
 java.lang.String toString()
           
 void typeInit(org.apache.uima.cas.TypeSystem ts)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Concept_impl

public Concept_impl(java.lang.String name,
                    boolean processAllRules)
Parameters:
name -
Method Detail

addAnnotation

public void addAnnotation(Annotation aAnnotation)
Description copied from interface: Concept
Adds the given annotation to this concept.

Specified by:
addAnnotation in interface Concept
Parameters:
aAnnotation - The annotation to be added.

getAnnotations

public Annotation[] getAnnotations()
Description copied from interface: Concept
Gets an array of annotations for this rule.

Specified by:
getAnnotations in interface Concept
Returns:
returns an array of annotations for this concept.

addRule

public void addRule(Rule aRule)
Description copied from interface: Concept
Adds the given rule to this concept

Specified by:
addRule in interface Concept
Parameters:
aRule - The rule to be added.

getName

public java.lang.String getName()
Description copied from interface: Concept
Get the concept name.

Specified by:
getName in interface Concept
Returns:
returns the concept name.

getRules

public Rule[] getRules()
Description copied from interface: Concept
Gets an array of rules for this concept

Specified by:
getRules in interface Concept
Returns:
returns an array of rules for this concept.

processAllConceptRules

public boolean processAllConceptRules()
Description copied from interface: Concept
Checks the rule processing for this concept.

Specified by:
processAllConceptRules in interface Concept
Returns:
Returns true if all rules for this concept should be process. Returns false if the rule processing should be stopped after the first match was found.

typeInit

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

initialize

public void initialize(org.apache.uima.util.Logger logger)
                throws RegexAnnotatorConfigException
initialize the concept and the referred rules and annotations. Also do some additional syntax checking.

Throws:
RegexAnnotatorConfigException

toString

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


Copyright © 2011. All Rights Reserved.