org.eclipse.ocl.examples.eventmanager.filters
Class NotFilter

java.lang.Object
  extended by org.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter
      extended by org.eclipse.ocl.examples.eventmanager.framework.LogicalOperationFilterImpl
          extended by 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

Constructor Summary
NotFilter()
           
NotFilter(EventFilter subTypeFilterTree)
          The standard constructor
 
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 org.eclipse.ocl.examples.eventmanager.framework.LogicalOperationFilterImpl
addOperand, addOperands, clearOperands, cloneContents, equals, getFilterCriterion, getOperands, hashCode, isNegated, setNegated
 
Methods inherited from class org.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter
expandNewAndOldValueCollections
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NotFilter

public NotFilter()

NotFilter

public NotFilter(EventFilter subTypeFilterTree)
The standard constructor

Parameters:
subTypeFilterTree - the filter to negate
Method Detail

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