org.eclipse.ocl.examples.eventmanager.framework
Class TableForOldValueClassFilter

java.lang.Object
  extended by org.eclipse.ocl.examples.eventmanager.framework.TableForEventFilter
      extended by org.eclipse.ocl.examples.eventmanager.framework.TableForOldValueClassFilter

public class TableForOldValueClassFilter
extends TableForEventFilter

The AssociationFilterTable manages all Registrations containing StructuralFeatureFilter.

Author:
Daniel Vocke (D044825)
See Also:
TableForEventFilter

Field Summary
 
Fields inherited from class org.eclipse.ocl.examples.eventmanager.framework.TableForEventFilter
filterCriteriaByRegistration, tableEntryByFilterCriterion
 
Constructor Summary
TableForOldValueClassFilter(int numberOfFilterTables)
           
 
Method Summary
protected  java.lang.String criterionToString(java.lang.Object criterion)
           
 java.lang.Object getAffectedObject(org.eclipse.emf.common.notify.Notification event)
          This method encapsulates the knowledge which information that is contained by the passed event is of interest in the context of the current EventFilterTable.
 java.lang.Class<OldValueClassFilter> getIdentifier()
          Each type of TableForEventFilter is directly associated to a filter type, but some MoinEventFilters support additional modifiers that affect the filtering ( for example the includeCompositions flag on InstanceFilterTable or the includeSubclasses flag on ClassFilter).
 
Methods inherited from class org.eclipse.ocl.examples.eventmanager.framework.TableForEventFilter
getCompleteNoBag, isEmpty, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TableForOldValueClassFilter

public TableForOldValueClassFilter(int numberOfFilterTables)
Method Detail

getAffectedObject

public java.lang.Object getAffectedObject(org.eclipse.emf.common.notify.Notification event)
Description copied from class: TableForEventFilter
This method encapsulates the knowledge which information that is contained by the passed event is of interest in the context of the current EventFilterTable.

Specified by:
getAffectedObject in class TableForEventFilter
Returns:
the affected meta object of LinkChangedEvents. If the event is not of type LinkChangeEvent, null is returned.

getIdentifier

public java.lang.Class<OldValueClassFilter> getIdentifier()
Description copied from class: TableForEventFilter
Each type of TableForEventFilter is directly associated to a filter type, but some MoinEventFilters support additional modifiers that affect the filtering ( for example the includeCompositions flag on InstanceFilterTable or the includeSubclasses flag on ClassFilter). In those cases, there will be more than one instance of the EventFilterTable and in order to be able to determine the right instance for a given MoinEventFilter, both, the MoinEventFilter and the EventFilterTable must implement a getIdentifier() method. The default implementation simply returns its Class, but filters and their tables which support modifying flags return a List containing the Class and all modifiers.

Specified by:
getIdentifier in class TableForEventFilter
Returns:
an Identifier that allows associating the instance to a filter type.

criterionToString

protected java.lang.String criterionToString(java.lang.Object criterion)
Overrides:
criterionToString in class TableForEventFilter