org.acm.seguin.pmd
Class RuleSet

java.lang.Object
  extended by org.acm.seguin.pmd.RuleSet

public class RuleSet
extends java.lang.Object


Constructor Summary
RuleSet()
           
 
Method Summary
 void addRule(Rule rule)
           
 void addRuleSet(RuleSet ruleSet)
           
 void apply(java.util.List acuList, RuleContext ctx)
           
 java.lang.String getDescription()
           
 java.lang.String getFileName()
          Get the name of the file the rule set is to be stored in, e.g., "basic_rules.xml".
 java.lang.String getName()
           
 Rule getRuleByName(java.lang.String ruleName)
           
 java.util.Set getRules()
           
 boolean include()
          Returns true when the rule set is included in PMD's analysis; otherwise, false when it is excluded.
 void setDescription(java.lang.String description)
           
 void setFileName(java.lang.String fileName)
          Set the name of the file the rule set is to be stored in, e.g., "basic_rules.xml".
 void setInclude(boolean include)
          Set to true when the rule set is included in PMD's analysis; otherwise, set to false when it is excluded.
 void setName(java.lang.String name)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleSet

public RuleSet()
Method Detail

size

public int size()

addRule

public void addRule(Rule rule)

getRules

public java.util.Set getRules()

getRuleByName

public Rule getRuleByName(java.lang.String ruleName)

addRuleSet

public void addRuleSet(RuleSet ruleSet)

apply

public void apply(java.util.List acuList,
                  RuleContext ctx)

getName

public java.lang.String getName()

setName

public void setName(java.lang.String name)

getDescription

public java.lang.String getDescription()

setDescription

public void setDescription(java.lang.String description)

include

public boolean include()
Returns true when the rule set is included in PMD's analysis; otherwise, false when it is excluded.

Returns:
True to include during analysis.

setInclude

public void setInclude(boolean include)
Set to true when the rule set is included in PMD's analysis; otherwise, set to false when it is excluded.

Parameters:
include - True to include during analysis.

getFileName

public java.lang.String getFileName()
Get the name of the file the rule set is to be stored in, e.g., "basic_rules.xml".

Returns:
The name of the rule set file.

setFileName

public void setFileName(java.lang.String fileName)
Set the name of the file the rule set is to be stored in, e.g., "basic_rules.xml".

Parameters:
fileName - The name of the rule set file.