|
||||||||||
| 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(java.lang.String src)
Constructor which accepts a source regex file. |
|
| Method Summary | |
|---|---|
RuleEvalResult |
evaluate(java.lang.String ruleName,
java.lang.CharSequence selectedData,
ExecutionContext context)
Evalutate the rule. |
java.lang.String |
getName()
Gets this providers name. |
java.lang.String |
getSrc()
Gets the source for this rule provider |
protected void |
loadRules(java.lang.String ruleFile)
Load the regex rule from the specified rule file. |
void |
setName(java.lang.String name)
The name of this rule provider. |
void |
setSrc(java.lang.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(java.lang.String src)
src - The name/path of the properties file containing the reqular expressions.| Method Detail |
|---|
public RuleEvalResult evaluate(java.lang.String ruleName,
java.lang.CharSequence selectedData,
ExecutionContext context)
throws 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.
SmooksExceptionpublic java.lang.String getName()
RuleProvider
getName in interface RuleProviderpublic void setName(java.lang.String name)
RuleProvider
setName in interface RuleProvidername - The rule providers name.public java.lang.String getSrc()
RuleProvider
getSrc in interface RuleProviderpublic void setSrc(java.lang.String src)
RuleProvider
setSrc in interface RuleProvidersrc - The source which defines the rules.protected void loadRules(java.lang.String ruleFile)
ruleFile - The rule file path.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||