public class RuleSet extends Object
Constructor and Description |
---|
RuleSet(String name) |
RuleSet(String name,
Collection<Rule> rules) |
Modifier and Type | Method and Description |
---|---|
void |
add(Rule rule)
Add rule to the rule set
|
String |
getName()
Returns the name of the rule set.
|
Collection<Rule> |
getRules()
Returns the rules for this rule set.
|
boolean |
isAvailable()
Returns if the rule set is available or not.
|
void |
removeRule(Rule rule)
Remove rule from the rule set.
|
public RuleSet(String name, Collection<Rule> rules)
public RuleSet(String name)
public boolean isAvailable()
public String getName()
public Collection<Rule> getRules()
public void add(Rule rule)
rule
- rule to add to the set.public void removeRule(Rule rule)
rule
- the rule to remove.Copyright © 2004-2015. All Rights Reserved.