de.novanic.eventservice.client.event.filter
Interface CompositeEventFilter

All Superinterfaces:
AppendableEventFilter, EventFilter, java.io.Serializable
All Known Implementing Classes:
DefaultCompositeEventFilter

public interface CompositeEventFilter
extends AppendableEventFilter

A CompositeEventFilter can handle various attached EventFilter instances. The match method calls all attached EventFilter instances to check if the Event has to be filtered. A other solution to build filter sequences is available with CascadingEventFilter (cascading filter sequences).

Author:
sstrohschein
Date: 05.03.2009
Time: 12:06:49

Method Summary
 boolean detach()
          Detaches all attached EventFilter instances.
 boolean detach(EventFilter anEventFilter)
          Detaches the attached EventFilter instances.
 java.util.List<EventFilter> getAttachedEventFilters()
          Returns the attached EventFilters.
 
Methods inherited from interface de.novanic.eventservice.client.event.filter.AppendableEventFilter
attach
 
Methods inherited from interface de.novanic.eventservice.client.event.filter.EventFilter
match
 

Method Detail

getAttachedEventFilters

java.util.List<EventFilter> getAttachedEventFilters()
Returns the attached EventFilters. EventFilter instances can be attached with AppendableEventFilter.attach(EventFilter).

Returns:
the attached EventFilter

detach

boolean detach(EventFilter anEventFilter)
Detaches the attached EventFilter instances. EventFilter instances can be attached with AppendableEventFilter.attach(EventFilter).

Parameters:
anEventFilter - EventFilter to detach
Returns:
true if the EventFilter was removed with that call, otherwise false

detach

boolean detach()
Detaches all attached EventFilter instances. EventFilter instances can be attached with AppendableEventFilter.attach(EventFilter).

Returns:
true if at least one EventFilter was removed with that call, otherwise false