org.acm.seguin.pmd
Class RuleSetFactory

java.lang.Object
  extended by org.acm.seguin.pmd.RuleSetFactory

public class RuleSetFactory
extends java.lang.Object


Constructor Summary
RuleSetFactory()
           
 
Method Summary
 RuleSet createRuleSet(java.io.InputStream inputStream)
           
 RuleSet createRuleSet(java.io.InputStream inputStream, java.lang.ClassLoader classLoader)
           
 RuleSet createRuleSet(java.lang.String name)
          Creates a ruleset.
 RuleSet createRuleSet(java.lang.String name, java.lang.ClassLoader classLoader)
           
 java.util.Iterator getRegisteredRuleSets()
          Returns an Iterator of RuleSet objects
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleSetFactory

public RuleSetFactory()
Method Detail

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)