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()
RuleEvalResult
matched
in interface RuleEvalResult
true
if successful or false if it failed.public String getRuleName()
RuleEvalResult
getRuleName
in interface RuleEvalResult
public String getRuleProviderName()
RuleEvalResult
getRuleProviderName
in interface RuleEvalResult
public Throwable getEvalException()
RuleEvalResult
getEvalException
in interface RuleEvalResult
Copyright © 2020. All rights reserved.