com.puppycrawl.tools.checkstyle.api

Class FilterSet

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
booleanaccept(AuditEvent aEvent)
{@inheritDoc}
voidaddFilter(Filter aFilter)
Adds a Filter to the set.
voidclear()
Clears the FilterSet.
booleanequals(Object aObject)
{@inheritDoc}
protected SetgetFilters()
Returns the Filters of the filter set.
inthashCode()
{@inheritDoc}
voidremoveFilter(Filter aFilter)
Removes filter.
StringtoString()
{@inheritDoc}

Method Detail

accept

public boolean accept(AuditEvent aEvent)
{@inheritDoc}

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)
{@inheritDoc}

getFilters

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

Returns: the Filters of the filter set.

hashCode

public int hashCode()
{@inheritDoc}

removeFilter

public void removeFilter(Filter aFilter)
Removes filter.

Parameters: aFilter filter to remove.

toString

public String toString()
{@inheritDoc}