org.eclipse.ocl.examples.eventmanager.filters
Class ClassFilter
java.lang.Object
org.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter
org.eclipse.ocl.examples.eventmanager.filters.ClassFilter
- All Implemented Interfaces:
- EventFilter
- Direct Known Subclasses:
- ClassFilterIncludingSubclasses, NewValueClassFilter, OldValueClassFilter
public class ClassFilter
- extends AbstractEventFilter
Matches an event's notifier
's class
- Author:
- Daniel Vocke, Philipp Berger, Axel Uhl
Field Summary |
protected org.eclipse.emf.ecore.EClass |
wantedClass
|
Constructor Summary |
ClassFilter(org.eclipse.emf.ecore.EClass clazz,
boolean negated)
|
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
wantedClass
protected org.eclipse.emf.ecore.EClass wantedClass
ClassFilter
public ClassFilter(org.eclipse.emf.ecore.EClass clazz,
boolean negated)
getWantedClass
public org.eclipse.emf.ecore.EClass getWantedClass()
hashCode
public int hashCode()
- Specified by:
hashCode
in class AbstractEventFilter
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equals
in class AbstractEventFilter
matchesFor
public boolean matchesFor(org.eclipse.emf.common.notify.Notification event)
- Description copied from interface:
EventFilter
- Tests if the incoming
Notification
matches the intern specification
- Parameters:
event
- the Notification
to control
- Returns:
- whether the given
Notification
matches the intern specification
matches
protected boolean matches(org.eclipse.emf.ecore.EClass cls)
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
clone
public ClassFilter clone()
- Specified by:
clone
in interface EventFilter
- Specified by:
clone
in class AbstractEventFilter
getFilterCriterion
public java.lang.Object getFilterCriterion()
- Description copied from class:
AbstractEventFilter
- Returns the unique property for an
AbstractEventFilter
object
- Specified by:
getFilterCriterion
in interface EventFilter
- Specified by:
getFilterCriterion
in class AbstractEventFilter