public abstract class AbstractEventFilter extends java.lang.Object implements EventFilter
Notification against an incoming Notification.
It is used to pass a Notification specification to an EventManager| Constructor and Description |
|---|
AbstractEventFilter(boolean negated)
default constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract AbstractEventFilter |
clone() |
abstract boolean |
equals(java.lang.Object obj) |
protected java.util.Set<org.eclipse.emf.common.notify.Notification> |
expandNewAndOldValueCollections(org.eclipse.emf.common.notify.Notification n)
If any of
n.getOldValue() and
n.getNewValue() is a collection
with more than one element, the notification is expanded into one notification
per element in the collection. |
abstract java.lang.Object |
getFilterCriterion()
Returns the unique property for an
AbstractEventFilter object |
abstract int |
hashCode() |
boolean |
isNegated()
Returns whether the filter is negated.
|
void |
setNegated(boolean b)
Sets whether this filter is negated
if the filter is negated it will match every
Notification
which is not matching the intern specification |
finalize, getClass, notify, notifyAll, toString, wait, wait, waitmatchesForpublic AbstractEventFilter(boolean negated)
negated - defines whether the filter is negatedpublic abstract int hashCode()
hashCode in class java.lang.Objectpublic abstract boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic abstract java.lang.Object getFilterCriterion()
AbstractEventFilter objectgetFilterCriterion in interface EventFilterpublic boolean isNegated()
Notification which is not matching this filter's
regular specification.isNegated in interface EventFiltertrue if the filter is negatedpublic abstract AbstractEventFilter clone()
clone in interface EventFilterclone in class java.lang.Objectpublic void setNegated(boolean b)
Notification
which is not matching the intern specificationb - true for negating the filter, false for notprotected java.util.Set<org.eclipse.emf.common.notify.Notification> expandNewAndOldValueCollections(org.eclipse.emf.common.notify.Notification n)
n.getOldValue() and
n.getNewValue() is a collection
with more than one element, the notification is expanded into one notification
per element in the collection. If both, oldValue and newValue
are collections with more than one element, all combinations are produced.