org.eclipse.ocl.examples.eventmanager.filters
Class AndFilter
java.lang.Object
org.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter
org.eclipse.ocl.examples.eventmanager.framework.LogicalOperationFilterImpl
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
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
AndFilter
public AndFilter()
AndFilter
public AndFilter(EventFilter... newFilters)
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