|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.rules.regex.RegexProvider
public class RegexProvider
Regex Rule Provider.
| Constructor Summary | |
|---|---|
RegexProvider()
No-args constructor required by Smooks. |
|
RegexProvider(String src)
Constructor which accepts a source regex file. |
|
| Method Summary | |
|---|---|
RuleEvalResult |
evaluate(String ruleName,
CharSequence selectedData,
org.milyn.container.ExecutionContext context)
Evalutate the rule. |
String |
getName()
Gets this providers name. |
String |
getSrc()
Gets the source for this rule provider |
protected void |
loadRules(String ruleFile)
Load the regex rule from the specified rule file. |
void |
setName(String name)
The name of this rule provider. |
void |
setSrc(String src)
Sets the src for this rule provider. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexProvider()
public RegexProvider(String src)
src - The name/path of the properties file containing the reqular expressions.| Method Detail |
|---|
public RuleEvalResult evaluate(String ruleName,
CharSequence selectedData,
org.milyn.container.ExecutionContext context)
throws org.milyn.SmooksException
RuleProvider
evaluate in interface RuleProviderruleName - The ruleName to be used in this evaluation.selectedData - The data that this evalute method will evaluate upon.context - The Smooks Excecution context.
RuleEvalResult Object representing an evaluation result.
org.milyn.SmooksExceptionpublic String getName()
RuleProvider
getName in interface RuleProviderpublic void setName(String name)
RuleProvider
setName in interface RuleProvidername - The rule providers name.public String getSrc()
RuleProvider
getSrc in interface RuleProviderpublic void setSrc(String src)
RuleProvider
setSrc in interface RuleProvidersrc - The source which defines the rules.protected void loadRules(String ruleFile)
ruleFile - The rule file path.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||