org.activemath.events.impl
Class EventFilterList

java.lang.Object
  extended by org.activemath.events.impl.EventFilterList

public class EventFilterList
extends Object

A list of @link EventFilter objects.


Field Summary
protected static Logger log
           
 
Constructor Summary
EventFilterList()
           
 
Method Summary
 void add(Class cls)
          Add an event class filter to this list.
 void add(EventFilter filter)
          Add an event filter to this list.
 void add(EventTag tag)
          Add an event tag filter to this list.
 void add(String type)
          Add an event type filter to this list.
 boolean isEmpty()
          Say if this filter list is empty.
 boolean matchesAny(ActivemathEvent event)
          Say if event matches any filter of this list.
 boolean matchesNone(ActivemathEvent event)
          Say if event matches no filter of this list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Logger log
Constructor Detail

EventFilterList

public EventFilterList()
Method Detail

add

public void add(EventFilter filter)
Add an event filter to this list.


add

public void add(String type)
Add an event type filter to this list.


add

public void add(Class cls)
Add an event class filter to this list.


add

public void add(EventTag tag)
Add an event tag filter to this list.


isEmpty

public boolean isEmpty()
Say if this filter list is empty.


matchesNone

public boolean matchesNone(ActivemathEvent event)
Say if event matches no filter of this list.

Returns:
true if no filter in this list matches event.

matchesAny

public boolean matchesAny(ActivemathEvent event)
Say if event matches any filter of this list.

Returns:
true if any filter in this list matches event.