public class RuleBuilder
extends java.lang.Object
Rule instances.| Constructor and Description |
|---|
RuleBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Rule |
build()
Create a new
Rule. |
RuleBuilder |
description(java.lang.String description)
Set rule description.
|
RuleBuilder |
name(java.lang.String name)
Set rule name.
|
RuleBuilder |
priority(int priority)
Set rule priority.
|
RuleBuilder |
then(Action action)
Add an action to the rule.
|
RuleBuilder |
when(Condition condition)
Set rule condition.
|
public RuleBuilder name(java.lang.String name)
name - of the rulepublic RuleBuilder description(java.lang.String description)
description - of the rulepublic RuleBuilder priority(int priority)
priority - of the rulepublic RuleBuilder when(Condition condition)
condition - of the rulepublic RuleBuilder then(Action action)
action - to addCopyright © 2018. All Rights Reserved.