org.acm.seguin.pmd
Class RuleSetFactory
java.lang.Object
org.acm.seguin.pmd.RuleSetFactory
public class RuleSetFactory
- extends java.lang.Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RuleSetFactory
public RuleSetFactory()
getRegisteredRuleSets
public java.util.Iterator getRegisteredRuleSets()
throws RuleSetNotFoundException
- Returns an Iterator of RuleSet objects
- Throws:
RuleSetNotFoundException
createRuleSet
public RuleSet createRuleSet(java.lang.String name,
java.lang.ClassLoader classLoader)
throws RuleSetNotFoundException
- Throws:
RuleSetNotFoundException
createRuleSet
public RuleSet createRuleSet(java.lang.String name)
throws RuleSetNotFoundException
- Creates a ruleset. If passed a comma-delimited string (rulesets/basic.xml,rulesets/unusedcode.xml)
it will parse that string and create a new ruleset for each item in the list.
- Throws:
RuleSetNotFoundException
createRuleSet
public RuleSet createRuleSet(java.io.InputStream inputStream)
createRuleSet
public RuleSet createRuleSet(java.io.InputStream inputStream,
java.lang.ClassLoader classLoader)