public class BasicRuleEvalResult extends Object implements RuleEvalResult, Serializable
| Constructor and Description |
|---|
BasicRuleEvalResult(boolean matched,
String ruleName,
String ruleProviderName) |
BasicRuleEvalResult(Throwable evalException,
String ruleName,
String ruleProviderName) |
| Modifier and Type | Method and Description |
|---|---|
Throwable |
getEvalException()
Get any provider level exceptions that may have
occured during the rule evaluation.
|
String |
getRuleName()
Gets the name of the Rule that this class is a result of.
|
String |
getRuleProviderName()
The name of the provider that produced this rule result.
|
boolean |
matched()
The outcome of the rule evaluation.
|
public BasicRuleEvalResult(boolean matched,
String ruleName,
String ruleProviderName)
public boolean matched()
RuleEvalResultmatched in interface RuleEvalResulttrue if successful or false if it failed.public String getRuleName()
RuleEvalResultgetRuleName in interface RuleEvalResultpublic String getRuleProviderName()
RuleEvalResultgetRuleProviderName in interface RuleEvalResultpublic Throwable getEvalException()
RuleEvalResultgetEvalException in interface RuleEvalResultCopyright © 2020. All rights reserved.