|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectde.novanic.eventservice.client.event.filter.DefaultCompositeEventFilter
public class DefaultCompositeEventFilter
The DefaultCompositeEventFilter can handle various attached EventFilter instances.
The match method calls all attached EventFilter instances to check if the
Event has to be filtered.
| Constructor Summary | |
|---|---|
DefaultCompositeEventFilter()
Creates a new DefaultCompositeEventFilter. |
|
DefaultCompositeEventFilter(EventFilter... anEventFilters)
Creates a new DefaultCompositeEventFilter. |
|
| Method Summary | |
|---|---|
AppendableEventFilter |
attach(EventFilter anEventFilter)
Appends another EventFilter which is used/called from the match method
(EventFilter.match(de.novanic.eventservice.client.event.Event)). |
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. |
boolean |
match(Event anEvent)
If the match method returns true for an event, the event should be ignored, because the EventFilter recognizes the event to filter it. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultCompositeEventFilter()
EventFilter instances
must be attached with AppendableEventFilter.attach(EventFilter) or
the constructor DefaultCompositeEventFilter(EventFilter...) must
be used to register EventFilter instances for the match method.
public DefaultCompositeEventFilter(EventFilter... anEventFilters)
EventFilter instances
are used by the match method to filter the events. More EventFilter instances
can be attached with the attach method (AppendableEventFilter.attach(EventFilter)).
anEventFilters - EventFilter which are used by the match method| Method Detail |
|---|
public boolean match(Event anEvent)
EventFilter
instances to filter the events. See DefaultCompositeEventFilter(EventFilter...)
or AppendableEventFilter.attach(EventFilter) to append
EventFilter instances.
match in interface EventFilteranEvent - event to check
public AppendableEventFilter attach(EventFilter anEventFilter)
EventFilter which is used/called from the match method
(EventFilter.match(de.novanic.eventservice.client.event.Event)).
attach in interface AppendableEventFilteranEventFilter - EventFilter to attach
EventFilter instances)public boolean detach(EventFilter anEventFilter)
EventFilter instances.
EventFilter instances can be attached with AppendableEventFilter.attach(EventFilter).
detach in interface CompositeEventFilteranEventFilter - EventFilter to detach
public boolean detach()
EventFilter instances.
EventFilter instances can be attached with AppendableEventFilter.attach(EventFilter).
detach in interface CompositeEventFilterpublic java.util.List<EventFilter> getAttachedEventFilters()
AppendableEventFilter.attach(EventFilter).
getAttachedEventFilters in interface CompositeEventFilterEventFilter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||