Class FilterSet
java.lang.Object
com.puppycrawl.tools.checkstyle.api.FilterSet
- All Implemented Interfaces:
Filter
A filter set applies filters to AuditEvents.
If a filter in the set rejects an AuditEvent, then the
AuditEvent is rejected. Otherwise, the AuditEvent is accepted.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
accept
(AuditEvent event) Determines whether or not a filtered AuditEvent is accepted.void
Adds a Filter to the set.void
clear()
Clears the FilterSet.Returns the Filters of the filter set.void
removeFilter
(Filter filter) Removes filter.toString()
-
Field Details
-
filters
Filter set.
-
-
Constructor Details
-
FilterSet
public FilterSet()
-
-
Method Details
-
addFilter
Adds a Filter to the set.- Parameters:
filter
- the Filter to add.
-
removeFilter
Removes filter.- Parameters:
filter
- filter to remove.
-
getFilters
Returns the Filters of the filter set.- Returns:
- the Filters of the filter set.
-
toString
-
accept
Description copied from interface:Filter
Determines whether or not a filtered AuditEvent is accepted. -
clear
Clears the FilterSet.
-