org.jupe.synchronisation.umlchanges
Class AbstractContainerHandler

java.lang.Object
  extended by org.eclipse.emf.common.notify.impl.AdapterImpl
      extended by org.jupe.synchronisation.umlchanges.AbstractContainerHandler
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal
Direct Known Subclasses:
JavaContainerHandler

public abstract class AbstractContainerHandler
extends org.eclipse.emf.common.notify.impl.AdapterImpl

Abstract, language independant base class for handlers of UML2 elements that can contain others (e.g. org.eclipse.uml2.Package or org.eclipse.uml2.Class. There should be subclasses for each UML2 of that kind. The handler get notified about each change in the corresponding element using AdapterImpl.notifyChanged(Notification). It has to handle changes in it using handleChange(), as well as elements that are added to or removed from it using handleAdd() and handleRemove().

UML2 element that cannot contain others are handled using SimpleHandler.

Author:
Michael Pradel

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Method Summary
 boolean switchCases(int type)
           
 
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterImpl
getTarget, isAdapterForType, notifyChanged, setTarget, unsetTarget
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

switchCases

public boolean switchCases(int type)