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 String getRuleSetFileName() {
    15  		return ruleSetFileName;
    16  	}
    17
    18  	public void setRuleSetFileName(String ruleSetFileName) {
    19  		this.ruleSetFileName = ruleSetFileName;
    20  	}
    21
    22  	public boolean isAllRules() {
    23  		return allRules;
    24  	}
    25
    26  	public void setAllRules(boolean allRules) {
    27  		this.allRules = allRules;
    28  	}
    29
    30  	public Set<String> getExcludes() {
    31  		return excludes;
    32  	}
    33
    34  	public void setExcludes(Set<String> excludes) {
    35  		this.excludes = excludes;
    36  	}
    37
    38  	public void addExclude(String name) {
    39  		this.excludes.add(name);
    40  	}
    41  }