A Builder for RuleSets. Create a RuleSet by calling the ruleset
method, passing in a Closure defining the contents of the RuleSet.
The Closure can contain any combination of the following (as well as
arbitrary Groovy code):
ruleset - to load a RuleSet file. The path specifies either a
Groovy file or an XML file.rule - to load a single Rule (specify either the rule name or rule class)description - description of the RuleSet (optional)| Type Params | Return Type | Name and description |
|---|---|---|
|
RuleSet |
getRuleSet() |
|
void |
ruleset(groovy.lang.Closure closure) |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |