|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.puppycrawl.tools.checkstyle.ConfigurationLoader
public final class ConfigurationLoader
Loads a configuration from a standard configuration XML file.
Method Summary | |
---|---|
static Configuration |
loadConfiguration(InputStream aConfigStream,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
Returns the module configurations from a specified input stream. |
static Configuration |
loadConfiguration(String aConfig,
PropertyResolver aOverridePropsResolver)
Returns the module configurations in a specified file. |
static Configuration |
loadConfiguration(String aConfig,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
Returns the module configurations in a specified file. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Configuration loadConfiguration(String aConfig, PropertyResolver aOverridePropsResolver) throws CheckstyleException
aConfig
- location of config file, can be either a URL or a filenameaOverridePropsResolver
- overriding properties
CheckstyleException
- if an error occurspublic static Configuration loadConfiguration(String aConfig, PropertyResolver aOverridePropsResolver, boolean aOmitIgnoredModules) throws CheckstyleException
aConfig
- location of config file, can be either a URL or a filenameaOverridePropsResolver
- overriding propertiesaOmitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwise
CheckstyleException
- if an error occurspublic static Configuration loadConfiguration(InputStream aConfigStream, PropertyResolver aOverridePropsResolver, boolean aOmitIgnoredModules) throws CheckstyleException
aConfigStream
- the input stream to the Checkstyle configurationaOverridePropsResolver
- overriding propertiesaOmitIgnoredModules
- true
if modules with severity
'ignore' should be omitted, false
otherwise
CheckstyleException
- if an error occurs
|
Back to the Checkstyle Home Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |