org.eclipse.emf.emfstore.internal.modelmutator.api
Class FilteredAdapter

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.eclipse.emf.ecore.util.EContentAdapter
          extended by org.eclipse.emf.emfstore.internal.modelmutator.api.FilteredAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal
Direct Known Subclasses:
LoggingAdapter

public abstract class FilteredAdapter
extends org.eclipse.emf.ecore.util.EContentAdapter

Adapter to log changes of model in modelmutator. Also useful to filter notifications.

Author:
Julian Sommerfeldt

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Constructor Summary
FilteredAdapter(List<org.eclipse.emf.ecore.EClass> toLogClasses, List<org.eclipse.emf.ecore.EReference> toLogReferences, boolean references, boolean attributes)
           
 
Method Summary
static String getEventType(int eventType)
          Convert an int eventType of a notification to a String.
 
Methods inherited from class org.eclipse.emf.ecore.util.EContentAdapter
notifyChanged, setTarget, unsetTarget
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FilteredAdapter

public FilteredAdapter(List<org.eclipse.emf.ecore.EClass> toLogClasses,
                       List<org.eclipse.emf.ecore.EReference> toLogReferences,
                       boolean references,
                       boolean attributes)
Parameters:
toLogClasses - The EClasses to log. If null every EClass is logged.
toLogReferences - The EReferencees of the toLogClasses to log. If null every EReference is logged.
references - Log reference changes?
attributes - Log attribute changes?
Method Detail

getEventType

public static String getEventType(int eventType)
Convert an int eventType of a notification to a String.

Parameters:
eventType - The eventType to convert.
Returns:
The String representing the eventType.


Copyright © 2015. All Rights Reserved.