|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Rule
Rule interface defines the access to the Rule settings and allows to add new Rule settings.
Field Summary | |
---|---|
static int |
MATCH_ALL
|
static int |
MATCH_COMPLETE
|
static int |
MATCH_FIRST
|
static java.lang.String |
MATCH_GROUP_REGEX_BEGIN
|
static java.lang.String |
MATCH_GROUP_REGEX_END
|
static java.util.regex.Pattern |
MATCH_GROUP_REGEX_PATTERN
|
static java.lang.String |
MATCH_GROUP_START
|
Method Summary | |
---|---|
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 |
java.lang.String |
getId()
Get the rule id |
int |
getMatchGroupNumber(java.lang.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 |
java.util.regex.Pattern |
getRegexPattern()
Get the regular expression of this rule. |
boolean |
isFeaturePathMatch()
Returns true if a featurePath for this rule was specified. |
Field Detail |
---|
static final int MATCH_FIRST
static final int MATCH_ALL
static final int MATCH_COMPLETE
static final java.lang.String MATCH_GROUP_START
static final java.lang.String MATCH_GROUP_REGEX_BEGIN
static final java.lang.String MATCH_GROUP_REGEX_END
static final java.util.regex.Pattern MATCH_GROUP_REGEX_PATTERN
Method Detail |
---|
java.util.regex.Pattern getRegexPattern()
java.lang.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(java.lang.String matchGroupName)
matchGroupName
- match group name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |