Package org.milyn.rules.regex

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


        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

            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

Related Classes of org.milyn.rules.regex.RegexRuleEvalResult

Copyright © 2018 www.massapicom. 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.