Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package org.jharks.workflow;
 
 import java.util.List;

The RuleSet class will be a container for a set of Rule instances. When configuring a Transition a RuleSet can be associated with the object. All rules would need to be met within a RuleSet for the transition to be executed.

Author(s):
Michael J. Rizzo
public class RuleSet {

    
Default public constructor
    public RuleSet() {
    }

    
List of Rules configured.
    private List<Rulerules;

    
Retrieve a collection as a List of all Rule instances within a RuleSet.
    public List<RulegetRules() {
        return ;
    }

    
Set rules.

Parameters:
value the list of Rule instances.
    public void setRules(List<Rulevalue) {
        this. = value;
    }

    
Add a Rule instance to a RuleSet.

Parameters:
rule the Rule instance to add.
    public void addRule(Rule rule) {
        .add(rule);
    }
New to GrepCode? Check out our FAQ X