|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.RuleSet
Field Summary | |
private java.lang.String |
description
|
private java.lang.String |
m_fileName
The name of the file the rule set is stored in, e.g., "basic_rules.xml". |
private boolean |
m_include
Indicates whether or not the rule set should be included in PMD's analysis. |
private java.lang.String |
name
|
private java.util.Set |
rules
|
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 |
Field Detail |
private java.util.Set rules
private java.lang.String name
private java.lang.String description
private boolean m_include
private java.lang.String m_fileName
Constructor Detail |
public RuleSet()
Method Detail |
public int size()
public void addRule(Rule rule)
public java.util.Set getRules()
public Rule getRuleByName(java.lang.String ruleName)
public void addRuleSet(RuleSet ruleSet)
public void apply(java.util.List acuList, RuleContext ctx)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public boolean include()
public void setInclude(boolean include)
include
- True to include during analysis.public java.lang.String getFileName()
public void setFileName(java.lang.String fileName)
fileName
- The name of the rule set file.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |