|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.rules.mvel.MVELProvider
public class MVELProvider
MVEL Rule Provider.
Rules must be specified in Comma Separated Value files (CSV). These can be edited using a Spreadsheet application (Excel or OpenOffice).
| Constructor Summary | |
|---|---|
MVELProvider()
|
|
| 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 |
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 MVELProvider()
| Method Detail |
|---|
public 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.
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.SmooksException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||