Examples of RegexRuleEvalResult


Examples of org.milyn.rules.regex.RegexRuleEvalResult

        {
        }

        public RuleEvalResult evaluate(String ruleName, CharSequence selectedData, ExecutionContext context) throws SmooksException
        {
            return new RegexRuleEvalResult(true, ruleName, "MockProvider", null, selectedData.toString());
        }
View Full Code Here

Examples of org.milyn.rules.regex.RegexRuleEvalResult

        public void setSrc(String src) {
            this.src = src;
        }

        public RuleEvalResult evaluate(String ruleName, CharSequence selectedData, ExecutionContext context) throws SmooksException {
            return new RegexRuleEvalResult(true, ruleName, "MockProvider", null, selectedData.toString());
        }
View Full Code Here

Examples of org.milyn.rules.regex.RegexRuleEvalResult

            throw new SmooksException("Unknown rule name '" + ruleName + "' on Regex RuleProvider '" + providerName + "'.");
        }

        final boolean matched = pattern.matcher(selectedData).matches();

        return new RegexRuleEvalResult(matched, ruleName, providerName, pattern, selectedData.toString());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.