org.milyn.rules.regex
Class RegexRuleEvalResult

java.lang.Object
  extended by org.milyn.rules.BasicRuleEvalResult
      extended by org.milyn.rules.regex.RegexRuleEvalResult
All Implemented Interfaces:
Serializable, RuleEvalResult

public class RegexRuleEvalResult
extends BasicRuleEvalResult

Regex RuleEvalResult. This class extends BasicRuleEvalResult and adds the Regex Pattern and text that te regex was evaluated on.

Author:
Daniel Bevenius
See Also:
Serialized Form

Constructor Summary
RegexRuleEvalResult(boolean matched, String ruleName, String ruleProviderName, Pattern pattern, String text)
          Creates a RuleEvalResult that indicates a successfully executed rule.
 
Method Summary
 Pattern getPattern()
           
 String getText()
           
 String toString()
           
 
Methods inherited from class org.milyn.rules.BasicRuleEvalResult
getEvalException, getRuleName, getRuleProviderName, matched
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RegexRuleEvalResult

public RegexRuleEvalResult(boolean matched,
                           String ruleName,
                           String ruleProviderName,
                           Pattern pattern,
                           String text)
Creates a RuleEvalResult that indicates a successfully executed rule.

Method Detail

getPattern

public Pattern getPattern()
Returns:
Patten the compiled regular expression.

getText

public String getText()
Returns:
String the text that the regular expression was evaluated on/against.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.