com.puppycrawl.tools.checkstyle.api

Class FilterSet

Implemented Interfaces:
Filter

public class FilterSet
extends Object
implements 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.
Author:
Rick Giles

Method Summary

boolean
accept(AuditEvent aEvent)
void
addFilter(Filter aFilter)
Adds a Filter to the set.
void
clear()
Clears the FilterSet.
boolean
equals(Object aObject)
protected Set
getFilters()
Returns the Filters of the filter set.
int
hashCode()
void
removeFilter(Filter aFilter)
Removes filter.
String
toString()

Method Details

accept

public boolean accept(AuditEvent aEvent)
Specified by:
accept in interface Filter

addFilter

public void addFilter(Filter aFilter)
Adds a Filter to the set.
Parameters:
aFilter - the Filter to add.

clear

public void clear()
Clears the FilterSet.

equals

public boolean equals(Object aObject)

getFilters

protected Set getFilters()
Returns the Filters of the filter set.
Returns:
the Filters of the filter set.

hashCode

public int hashCode()

removeFilter

public void removeFilter(Filter aFilter)
Removes filter.
Parameters:
aFilter - filter to remove.

toString

public String toString()