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

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

public interface CascadingEventFilter
extends AppendableEventFilter

A CascadingEventFilter is based on cascading filter sequences. An CascadingEventFilter can only hold one next EventFilter. When the next EventFilter is also a CascadingEventFilter, it can handle another EventFilter... That technique can be used to build filter sequences (cascading). A other solution to build filter sequences is available with CompositeEventFilter or rather EventFilterFactory.connect(EventFilter...).

Author:
sstrohschein
Date: 05.03.2009
Time: 12:04:03

Method Summary
 boolean detach()
          Detaches the attached EventFilter.
 EventFilter getAttachedEventFilter()
          Returns the attached EventFilter.
 
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

getAttachedEventFilter

EventFilter getAttachedEventFilter()
Returns the attached EventFilter. A CascadingEventFilter can only hold one EventFilter. EventFilter instances can be attached with AppendableEventFilter.attach(EventFilter).

Returns:
the attached EventFilter

detach

boolean detach()
Detaches the attached EventFilter. A CascadingEventFilter can only hold one EventFilter. EventFilter instances can be attached with AppendableEventFilter.attach(EventFilter).

Returns:
true if an EventFilter was registered, otherwise false