|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pmd.RuleSetFactory
Constructor Summary | |
RuleSetFactory()
|
Method Summary | |
RuleSet |
createRuleSet(java.io.InputStream inputStream)
Create a ruleset from an inputsteam. |
RuleSet |
createRuleSet(java.io.InputStream inputStream,
java.lang.ClassLoader classLoader)
Create a ruleset from an input stream with a specified class loader |
RuleSet |
createRuleSet(java.lang.String name)
Deprecated. Use createRuleSets instead, because this method puts all rules in one single RuleSet object, and thus removes name and language of the originating rule set files. |
RuleSet |
createRuleSet(java.lang.String name,
java.lang.ClassLoader classLoader)
Deprecated. Use createRuleSets instead, because this method puts all rules in one single RuleSet object, and thus removes name and language of the originating rule set files. |
RuleSets |
createRuleSets(java.lang.String ruleSetFileNames)
Create a RuleSets from a list of names, using the classloader of this class. |
RuleSets |
createRuleSets(java.lang.String ruleSetFileNames,
java.lang.ClassLoader classLoader)
Create a RuleSets from a list of names. |
RuleSet |
createSingleRuleSet(java.lang.String ruleSetFileName)
Create a ruleset from a name |
RuleSet |
createSingleRuleSet(java.lang.String ruleSetFileName,
java.lang.ClassLoader classLoader)
Create a ruleset from a name |
java.util.Iterator |
getRegisteredRuleSets()
Returns an Iterator of RuleSet objects loaded from descriptions from the "rulesets.properties" resource. |
void |
setMinimumPriority(int minPriority)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public RuleSetFactory()
Method Detail |
public void setMinimumPriority(int minPriority)
public java.util.Iterator getRegisteredRuleSets() throws RuleSetNotFoundException
RuleSetNotFoundException
public RuleSets createRuleSets(java.lang.String ruleSetFileNames, java.lang.ClassLoader classLoader) throws RuleSetNotFoundException
ruleSetFileNames
- comma-separated list of rule set files.
RuleSetNotFoundException
public RuleSets createRuleSets(java.lang.String ruleSetFileNames) throws RuleSetNotFoundException
ruleSetFileNames
- comma-separated list of rule set files.
RuleSetNotFoundException
public RuleSet createRuleSet(java.lang.String name, java.lang.ClassLoader classLoader) throws RuleSetNotFoundException
name
- name of rule set file loaded as a resourceclassLoader
- the classloader used to load the ruleset and subsequent rules
RuleSetNotFoundException
public RuleSet createRuleSet(java.lang.String name) throws RuleSetNotFoundException
name
- name of rule set file loaded as a resource
RuleSetNotFoundException
public RuleSet createSingleRuleSet(java.lang.String ruleSetFileName, java.lang.ClassLoader classLoader) throws RuleSetNotFoundException
classLoader
- the classloader used to load the ruleset and subsequent rules
RuleSetNotFoundException
public RuleSet createSingleRuleSet(java.lang.String ruleSetFileName) throws RuleSetNotFoundException
RuleSetNotFoundException
public RuleSet createRuleSet(java.io.InputStream inputStream)
inputStream
- an input stream that contains a ruleset descripion
public RuleSet createRuleSet(java.io.InputStream inputStream, java.lang.ClassLoader classLoader)
inputStream
- an input stream that contains a ruleset descripionclassLoader
- a class loader used to load rule classes
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |