public interface RuleProvider
Modifier and Type | Method and Description |
---|---|
RuleEvalResult |
evaluate(String ruleName,
CharSequence selectedData,
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.
|
String getName()
void setName(String name)
name
- The rule providers name.String getSrc()
void setSrc(String src)
src
- The source which defines the rules.RuleEvalResult evaluate(String ruleName, CharSequence selectedData, ExecutionContext context) throws SmooksException
ruleName
- 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.SmooksException
Copyright © 2020. All rights reserved.