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

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.AndFilter
All Implemented Interfaces:
EventFilter, LogicalOperationFilter

public class AndFilter
extends LogicalOperationFilterImpl

Is an LogicalOperationFilter implementing the and-operator, so it matches if each contained operand matches the Notification.

Author:
Philipp Berger

Constructor Summary
AndFilter()
           
AndFilter(EventFilter... newFilters)
           
 
Method Summary
 LogicalOperationFilterImpl clone()
           
 boolean matchesFor(org.eclipse.emf.common.notify.Notification event)
          Returns true if every of the contained filter matches the given notification
 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

AndFilter

public AndFilter()

AndFilter

public AndFilter(EventFilter... newFilters)
Method Detail

matchesFor

public boolean matchesFor(org.eclipse.emf.common.notify.Notification event)
Returns true if every of the contained filter matches the given notification

Parameters:
event - the event to match
Returns:
true if every contained filter returns true

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

clone

public LogicalOperationFilterImpl clone()
Specified by:
clone in interface EventFilter
Specified by:
clone in class AbstractEventFilter