|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.puppycrawl.tools.checkstyle.ConfigurationLoader
public final class ConfigurationLoader
Loads a configuration from a standard configuration XML file.
| Method Summary | |
|---|---|
static Configuration |
loadConfiguration(InputSource aConfigSource,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
Returns the module configurations from a specified input source. |
static Configuration |
loadConfiguration(InputStream aConfigStream,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
Deprecated. As this method does not provide a valid system ID, preventing resolution of external entities, a version using an InputSource
should be used instead |
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 occurs
public 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 occurs
@Deprecated
public static Configuration loadConfiguration(InputStream aConfigStream,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
throws CheckstyleException
version using an InputSource
should be used instead
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
public static Configuration loadConfiguration(InputSource aConfigSource,
PropertyResolver aOverridePropsResolver,
boolean aOmitIgnoredModules)
throws CheckstyleException
aConfigSource - 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 | |||||||||