public interface Rule
Modifier and Type | Field and Description |
---|---|
static int |
MATCH_ALL |
static int |
MATCH_COMPLETE |
static int |
MATCH_FIRST |
static String |
MATCH_GROUP_REGEX_BEGIN |
static String |
MATCH_GROUP_REGEX_END |
static Pattern |
MATCH_GROUP_REGEX_PATTERN |
static String |
MATCH_GROUP_START |
Modifier and Type | Method and Description |
---|---|
void |
addException(RuleException aException)
Adds the given exception to this rule
|
void |
addFilterFeature(FilterFeature aFeature)
Adds the given feature to the match type filter features
|
void |
addUpdateFeature(Feature aFeature)
Adds the given feature to the match type annotation update features
|
float |
getConfidence()
Get the rule confidence
|
RuleException[] |
getExceptions()
Returns the exceptions for this rule
|
String |
getId()
Get the rule id
|
int |
getMatchGroupNumber(String matchGroupName)
Returns the match group number for the given match group name or -1 if
the match group name is not available.
|
int |
getMatchStrategy()
Get the match strategy of this rule;
|
org.apache.uima.cas.Type |
getMatchType()
Get the match type of this rule.
|
FeaturePath |
getMatchTypeFeaturePath()
Returns the match type featurePath object.
|
FilterFeature[] |
getMatchTypeFilterFeatures()
Returns the match type filter features
|
Feature[] |
getMatchTypeUpdateFeatures()
Returns the match type annotation update features
|
Pattern |
getRegexPattern()
Get the regular expression of this rule.
|
boolean |
isFeaturePathMatch()
Returns true if a featurePath for this rule was specified.
|
static final int MATCH_FIRST
static final int MATCH_ALL
static final int MATCH_COMPLETE
static final String MATCH_GROUP_START
static final String MATCH_GROUP_REGEX_BEGIN
static final String MATCH_GROUP_REGEX_END
static final Pattern MATCH_GROUP_REGEX_PATTERN
Pattern getRegexPattern()
String getId()
float getConfidence()
int getMatchStrategy()
org.apache.uima.cas.Type getMatchType()
void addFilterFeature(FilterFeature aFeature)
aFeature
- The feature to be added.FilterFeature[] getMatchTypeFilterFeatures()
void addUpdateFeature(Feature aFeature)
aFeature
- The feature to be added.Feature[] getMatchTypeUpdateFeatures()
void addException(RuleException aException)
aException
- The exception to be added.RuleException[] getExceptions()
FeaturePath getMatchTypeFeaturePath()
boolean isFeaturePathMatch()
int getMatchGroupNumber(String matchGroupName)
matchGroupName
- match group nameCopyright © 2016. All rights reserved.