Groovy Documentation

org.codenarc.ruleset
Class CompositeRuleSet

java.lang.Object
  org.codenarc.ruleset.CompositeRuleSet

class CompositeRuleSet

A RuleSet implementation that aggregates a set of RuleSets and Rules.

author:
Chris Mair
version:
$Revision: 194 $ - $Date: 2009-08-01 15:48:43 -0400 (Sat, 01 Aug 2009) $


Constructor Summary
CompositeRuleSet()

 
Method Summary
void addRule(Rule rule)

Add a single Rule to this RuleSet

void addRuleSet(RuleSet ruleSet)

Add all of the Rules within the specified RuleSet to this RuleSet

List getRules()

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

CompositeRuleSet

CompositeRuleSet()


 
Method Detail

addRule

void addRule(Rule rule)
Add a single Rule to this RuleSet
param:
rule - the Rule to add


addRuleSet

void addRuleSet(RuleSet ruleSet)
Add all of the Rules within the specified RuleSet to this RuleSet
param:
ruleSet - the RuleSet whose Rules are to be included


getRules

List getRules()
return:
a List of Rule objects. The returned List is immutable.


 

Groovy Documentation