com.puppycrawl.tools.checkstyle.filters
Class SeverityMatchFilter
- Configurable, Contextualizable, Filter
public class SeverityMatchFilter
This is a very simple filter based on severity matching.
The filter admits option severity and accepts an AuditEvent
if its severity equals the filter's severity.
setAcceptOnMatch
public final void setAcceptOnMatch(boolean aAcceptOnMatch)
Sets whether to accept or reject on matching severity level.
aAcceptOnMatch
- if true, accept on matches; if
false, reject on matches.
setSeverity
public final void setSeverity(String aSeverity)
Sets the severity level. The string should be one of the names
defined in the SeverityLevel
class.
aSeverity
- The new severity level