org.eclipse.ocl.examples.eventmanager
Interface EventFilter

All Known Implementing Classes:
AbstractEventFilter, AndFilter, ClassFilter, ClassFilterIncludingSubclasses, ContainmentFilter, EventTypeFilter, LogicalOperationFilterImpl, NewValueClassFilter, NewValueClassFilterIncludingSubclasses, NotFilter, OldValueClassFilter, OldValueClassFilterIncludingSubclasses, OrFilter, StructuralFeatureFilter

public interface EventFilter

Represents a filter that can be applied to and match a Notification. Different sorts of filters exist. They can be constructed using the factory methods of EventManagerFactory, such as EventManagerFactory.createClassFilter(org.eclipse.emf.ecore.EClass).

Author:
Axel Uhl

Method Summary
 EventFilter clone()
           
 java.lang.Object getFilterCriterion()
          Returns the unique property for which this filter looks in a Notification.
 boolean isNegated()
          Returns whether the filter is negated.
 boolean matchesFor(org.eclipse.emf.common.notify.Notification event)
          Tests if the incoming Notification matches the intern specification
 

Method Detail

matchesFor

boolean matchesFor(org.eclipse.emf.common.notify.Notification event)
Tests if the incoming Notification matches the intern specification

Parameters:
event - the Notification to control
Returns:
whether the given Notification matches the intern specification

isNegated

boolean isNegated()
Returns whether the filter is negated. If the filter is negated it will match every Notification which is not matching this filter's regular specification.

Returns:
true if the filter is negated

getFilterCriterion

java.lang.Object getFilterCriterion()
Returns the unique property for which this filter looks in a Notification.


clone

EventFilter clone()