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

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.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

Constructor Summary
OrFilter()
           
OrFilter(EventFilter... newFilters)
           
 
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 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

OrFilter

public OrFilter()

OrFilter

public OrFilter(EventFilter... newFilters)
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

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