org.eclipse.ocl.examples.eventmanager.filters
Class StructuralFeatureFilter

java.lang.Object
  extended by org.eclipse.ocl.examples.eventmanager.filters.AbstractEventFilter
      extended by org.eclipse.ocl.examples.eventmanager.filters.StructuralFeatureFilter
All Implemented Interfaces:
EventFilter

public class StructuralFeatureFilter
extends AbstractEventFilter

Matches a feature.

Author:
Philipp Berger

Constructor Summary
StructuralFeatureFilter(org.eclipse.emf.ecore.EStructuralFeature feature, boolean negated)
          The standard constructor
 
Method Summary
 StructuralFeatureFilter clone()
           
 boolean equals(java.lang.Object obj)
           
 org.eclipse.emf.ecore.EStructuralFeature getFeature()
          Gives the feature of the filter
 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

StructuralFeatureFilter

public StructuralFeatureFilter(org.eclipse.emf.ecore.EStructuralFeature feature,
                               boolean negated)
The standard constructor

Parameters:
negated - set AbstractEventFilter.isNegated()
feature - the feature to match
Method Detail

getFeature

public org.eclipse.emf.ecore.EStructuralFeature getFeature()
Gives the feature of the filter

Returns:
feature

equals

public boolean equals(java.lang.Object obj)
Specified by:
equals in class AbstractEventFilter

hashCode

public int hashCode()
Specified by:
hashCode 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

clone

public StructuralFeatureFilter clone()
Specified by:
clone in interface EventFilter
Specified by:
clone in class AbstractEventFilter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

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