public class ContainmentFilter extends AbstractEventFilter
Notification.getFeature()
is an EReference
and
EReference.isContainment()
is true, or if the
Notification.getNotifier()
is not an EObject
, so it might be
a ResourceSet
or a Resource
.Constructor and Description |
---|
ContainmentFilter(boolean negated) |
Modifier and Type | Method and Description |
---|---|
ContainmentFilter |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getFilterCriterion()
This method will only returns true, the logic is moved to the
EventManagerTableBased |
int |
hashCode() |
boolean |
matchesFor(org.eclipse.emf.common.notify.Notification event)
Tests if the incoming
Notification matches the intern specification |
java.lang.String |
toString() |
expandNewAndOldValueCollections, isNegated, setNegated
public boolean matchesFor(org.eclipse.emf.common.notify.Notification event)
EventFilter
Notification
matches the intern specificationevent
- the Notification
to controlNotification
matches the intern specificationpublic int hashCode()
hashCode
in class AbstractEventFilter
public boolean equals(java.lang.Object obj)
equals
in class AbstractEventFilter
public ContainmentFilter clone()
clone
in interface EventFilter
clone
in class AbstractEventFilter
public java.lang.Object getFilterCriterion()
EventManagerTableBased
getFilterCriterion
in interface EventFilter
getFilterCriterion
in class AbstractEventFilter
AbstractEventFilter.getFilterCriterion()
public java.lang.String toString()
toString
in class java.lang.Object