|
|||||||||||
| 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)
Creates a ruleset. |
RuleSet |
createRuleSet(java.lang.String name,
java.lang.ClassLoader classLoader)
Create a ruleset from a name or from a list of name |
java.lang.ClassLoader |
getClassLoader()
Return the class loader used to load ruleset resources and rules |
java.util.Iterator |
getRegisteredRuleSets()
Returns an Iterator of RuleSet objects loaded from descriptions from the "rulesets.properties" resource or from the "rulesets.filenames" property. |
void |
setClassLoader(java.lang.ClassLoader loader)
Sets the class loader used to load ruleset resources and rules |
| 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 java.util.Iterator getRegisteredRuleSets()
throws RuleSetNotFoundException
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
RuleSetNotFoundExceptionpublic 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
public java.lang.ClassLoader getClassLoader()
public void setClassLoader(java.lang.ClassLoader loader)
loader - a class loader
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||