com.puppycrawl.tools.checkstyle.filters

Class SuppressionsLoader


public final class SuppressionsLoader
extends AbstractLoader

Loads a filter chain of suppressions.
Author:
Rick Giles

Method Summary

FilterSet
getFilterChain()
Returns the loaded filter chain.
static FilterSet
loadSuppressions(String aFilename)
Returns the suppression filters in a specified file.
void
startElement(String aNamespaceURI, String aLocalName, String aQName, Attributes aAtts)
*

Methods inherited from class com.puppycrawl.tools.checkstyle.api.AbstractLoader

error, fatalError, parseInputSource, resolveEntity, warning

Method Details

getFilterChain

public FilterSet getFilterChain()
Returns the loaded filter chain.
Returns:
the loaded filter chain.

loadSuppressions

public static FilterSet loadSuppressions(String aFilename)
            throws CheckstyleException
Returns the suppression filters in a specified file.
Parameters:
aFilename - name of the suppresssions file.
Returns:
the filter chain of suppression elements specified in the file.
Throws:
CheckstyleException - if an error occurs.

startElement

public void startElement(String aNamespaceURI,
                         String aLocalName,
                         String aQName,
                         Attributes aAtts)
            throws SAXException
*