org.sonar.plugins.pmd.xml.Ruleset Maven / Gradle / Ivy
package org.sonar.plugins.pmd.xml;
import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import com.thoughtworks.xstream.annotations.XStreamOmitField;
import java.util.ArrayList;
import java.util.List;
@XStreamAlias("ruleset")
public class Ruleset {
private String description;
@XStreamImplicit
private List rules = new ArrayList();
@XStreamOmitField
@XStreamAlias(value = "exclude-pattern")
private String excludePattern;
@XStreamOmitField
@XStreamAlias(value = "include-pattern")
private String includePattern;
public Ruleset() {
}
public Ruleset(String description) {
this.description = description;
}
public List getRules() {
return rules;
}
public void setRules(List rules) {
this.rules = rules;
}
public String getDescription() {
return description;
}
public void setDescription(String description) {
this.description = description;
}
public void addRule(Rule module) {
rules.add(module);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy