public class SuppressionFilter extends AutomaticBean implements Filter
This filter accepts AuditEvents according to file, check, line, and column, as specified in a suppression file.
| Constructor and Description |
|---|
SuppressionFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(AuditEvent event)
Determines whether or not a filtered AuditEvent is accepted.
|
boolean |
equals(Object obj) |
protected void |
finishLocalSetup()
Provides a hook to finish the part of this component's setup that
was not handled by the bean introspection.
|
int |
hashCode() |
void |
setFile(String fileName)
Sets name of the supression file.
|
void |
setOptional(boolean optional)
Sets whether config file existence is optional.
|
configure, contextualize, getConfiguration, setupChildpublic SuppressionFilter()
public void setFile(String fileName)
fileName - name of the suppressions file.public void setOptional(boolean optional)
optional - tells if config file existence is optional.public boolean accept(AuditEvent event)
Filterprotected void finishLocalSetup() throws CheckstyleException
AutomaticBeanThe default implementation does nothing.
finishLocalSetup in class AutomaticBeanCheckstyleException - if there is a configuration error.Copyright © 2001-2016. All Rights Reserved.