com.puppycrawl.tools.checkstyle.filters

Class SuppressionsLoader

public final class SuppressionsLoader extends AbstractLoader

Loads a filter chain of suppressions.

Author: Rick Giles

Method Summary
FilterSetgetFilterChain()
Returns the loaded filter chain.
static FilterSetloadSuppressions(String aFilename)
Returns the suppression filters in a specified file.
voidstartElement(String aNamespaceURI, String aLocalName, String aQName, Attributes aAtts)
{@inheritDoc} *

Method Detail

getFilterChain

public FilterSet getFilterChain()
Returns the loaded filter chain.

Returns: the loaded filter chain.

loadSuppressions

public static FilterSet loadSuppressions(String aFilename)
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)
{@inheritDoc} *