net.sourceforge.pmd
public class RuleSetFactory extends Object
Method Summary | |
---|---|
RuleSet | createRuleSet(String name, ClassLoader classLoader)
Create a ruleset from a name or from a list of names
|
RuleSet | createRuleSet(InputStream inputStream)
Create a RuleSet from an InputStream.
|
RuleSet | createRuleSet(InputStream inputStream, ClassLoader classLoader)
Create a RuleSet from an InputStream with a specified ClassLoader.
|
RuleSets | createRuleSets(String ruleSetFileNames)
Create a RuleSets from a list of names.
|
RuleSets | createRuleSets(String ruleSetFileNames, ClassLoader classLoader)
Create a RuleSets from a list of names with a specified ClassLoader.
|
RuleSet | createSingleRuleSet(String ruleSetFileName)
Create a RuleSet from a file name resource.
|
Iterator<RuleSet> | getRegisteredRuleSets()
Returns an Iterator of RuleSet objects loaded from descriptions from the
"rulesets.properties" resource.
|
void | setMinimumPriority(int minPriority)
Set the minimum rule priority threshold for all Rules which are loaded
from RuleSets via reference.
|
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.
Create a ruleset from a name or from a list of namesParameters: name name of rule set file loaded as a resource classLoader the classloader used to load the ruleset and subsequent rules
Returns: the new ruleset
Throws: RuleSetNotFoundException
Parameters: inputStream InputStream containing the RuleSet XML configuration.
Returns: A new RuleSet.
Parameters: inputStream InputStream containing the RuleSet XML configuration. classLoader The ClassLoader to load Classes and resources.
Returns: A new RuleSet.
Parameters: ruleSetFileNames A comma-separated list of rule set files.
Returns: The new RuleSets.
Throws: RuleSetNotFoundException if unable to find a resource.
Parameters: ruleSetFileNames A comma-separated list of rule set files. classLoader The ClassLoader to load Classes and resources.
Returns: The new RuleSets.
Throws: RuleSetNotFoundException if unable to find a resource.
Parameters: ruleSetFileName The name of rule set file loaded as a resource.
Returns: A new RuleSet.
Throws: RuleSetNotFoundException if unable to find a resource.
Returns: An Iterator of RuleSet objects.
Parameters: minPriority The minimum priority.