|
||||||||||
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
org.eclipse.ocl.examples.eventmanager.filters.EventTypeFilter
public class EventTypeFilter
Matches an event type
. The constants are
defined in Notifier
.
Constructor Summary | |
---|---|
EventTypeFilter(int eventType,
boolean negated)
Creates a new EventTypeFilter with the given filter type. |
Method Summary | |
---|---|
EventTypeFilter |
clone()
|
boolean |
equals(java.lang.Object obj)
|
int |
getEventType()
Gives the event type of this filter object |
java.lang.Object |
getFilterCriterion()
Returns the unique property for an AbstractEventFilter object |
int |
hashCode()
|
boolean |
matchesFor(org.eclipse.emf.common.notify.Notification event)
Tests if the incoming Notification matches the intern specification |
java.lang.String |
toString()
|
Methods inherited from class org.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter |
---|
expandNewAndOldValueCollections, isNegated, setNegated |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EventTypeFilter(int eventType, boolean negated)
EventTypeFilter
with the given filter type.
For the different types Notifier
eventType
- negated
- defines whether the filter is negatedMethod Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class AbstractEventFilter
public int getEventType()
public int hashCode()
hashCode
in class AbstractEventFilter
public boolean matchesFor(org.eclipse.emf.common.notify.Notification event)
EventFilter
Notification
matches the intern specification
event
- the Notification
to control
Notification
matches the intern specificationpublic java.lang.String toString()
toString
in class java.lang.Object
public EventTypeFilter clone()
clone
in interface EventFilter
clone
in class AbstractEventFilter
public java.lang.Object getFilterCriterion()
AbstractEventFilter
AbstractEventFilter
object
getFilterCriterion
in interface EventFilter
getFilterCriterion
in class AbstractEventFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |