org.eclipse.ocl.examples.eventmanager.filters
Class OrFilter
java.lang.Object
org.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter
org.eclipse.ocl.examples.eventmanager.framework.LogicalOperationFilterImpl
org.eclipse.ocl.examples.eventmanager.filters.OrFilter
- All Implemented Interfaces:
- EventFilter, LogicalOperationFilter
public class OrFilter
- extends LogicalOperationFilterImpl
Is an LogicalOperationFilter
implementing the or-operator, so it
matches if any of the contained operand matches the Notification
.
- Author:
- Philipp Berger
Method Summary |
OrFilter |
clone()
|
boolean |
matchesFor(org.eclipse.emf.common.notify.Notification event)
Tests if the incoming Notification matches the intern specification |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
OrFilter
public OrFilter()
OrFilter
public OrFilter(EventFilter... newFilters)
matchesFor
public boolean matchesFor(org.eclipse.emf.common.notify.Notification event)
- Description copied from interface:
EventFilter
- Tests if the incoming
Notification
matches the intern specification
- Parameters:
event
- the Notification
to control
- Returns:
- whether the given
Notification
matches the intern specification
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
clone
public OrFilter clone()
- Specified by:
clone
in interface EventFilter
- Specified by:
clone
in class AbstractEventFilter