org.eclipse.ocl.examples.eventmanager.filters
Class NotFilter
java.lang.Object
org.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter
org.eclipse.ocl.examples.eventmanager.framework.LogicalOperationFilterImpl
org.eclipse.ocl.examples.eventmanager.filters.NotFilter
- All Implemented Interfaces:
- EventFilter, LogicalOperationFilter
public class NotFilter
- extends LogicalOperationFilterImpl
Is an LogicalOperationFilter
and implements the not-operator.
Not applies only for one EventFilter
so the NotFilter
can only contain one operand.
- Author:
- Philipp Berger, Axel Uhl
Method Summary |
NotFilter |
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 |
NotFilter
public NotFilter()
NotFilter
public NotFilter(EventFilter subTypeFilterTree)
- The standard constructor
- Parameters:
subTypeFilterTree
- the filter to negate
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
clone
public NotFilter clone()
- Specified by:
clone
in interface EventFilter
- Specified by:
clone
in class AbstractEventFilter
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object