View Javadoc

    1   package net.sourceforge.pmd;
    2
    3   import java.util.LinkedHashSet;
    4   import java.util.Set;
    5
    6   /**
    7    * This class represents a reference to RuleSet.
    8    */
    9   public class RuleSetReference {
    10  	private String ruleSetFileName;
    11  	private boolean allRules;
    12  	private Set<String> excludes = new LinkedHashSet<String>(0);
    13
    14  	public RuleSetReference() {	}
    15
    16  	public RuleSetReference(String theFilename) {
    17  		ruleSetFileName = theFilename;
    18  	}
    19
    20  	public String getRuleSetFileName() {
    21  		return ruleSetFileName;
    22  	}
    23
    24  	public void setRuleSetFileName(String ruleSetFileName) {
    25  		this.ruleSetFileName = ruleSetFileName;
    26  	}
    27
    28  	public boolean isAllRules() {
    29  		return allRules;
    30  	}
    31
    32  	public void setAllRules(boolean allRules) {
    33  		this.allRules = allRules;
    34  	}
    35
    36  	public Set<String> getExcludes() {
    37  		return excludes;
    38  	}
    39
    40  	public void setExcludes(Set<String> excludes) {
    41  		this.excludes = excludes;
    42  	}
    43
    44  	public void addExclude(String name) {
    45  		this.excludes.add(name);
    46  	}
    47  }