|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter
public abstract class AbstractEventFilter
An EventFilter matches a given specification for the properties
of a Notification
against an incoming Notification
.
It is used to pass a Notification
specification to an EventManager
Constructor Summary | |
---|---|
AbstractEventFilter(boolean negated)
default constructor |
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ocl.examples.eventmanager.EventFilter |
---|
matchesFor |
Constructor Detail |
---|
public AbstractEventFilter(boolean negated)
negated
- defines whether the filter is negatedMethod Detail |
---|
public abstract int hashCode()
hashCode
in class java.lang.Object
public abstract boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public abstract java.lang.Object getFilterCriterion()
AbstractEventFilter
object
getFilterCriterion
in interface EventFilter
public boolean isNegated()
Notification
which is not matching this filter's
regular specification.
isNegated
in interface EventFilter
true
if the filter is negatedpublic abstract AbstractEventFilter clone()
clone
in interface EventFilter
clone
in class java.lang.Object
public void setNegated(boolean b)
Notification
which is not matching the intern specification
b
- 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |