org.eclipse.ocl.examples.pivot.manager
Class AbstractMetaModelManagerResourceAdapter<T extends org.eclipse.emf.ecore.resource.Resource>

java.lang.Object
  extended by org.eclipse.ocl.examples.pivot.manager.AbstractMetaModelManagerResourceAdapter<T>
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Adapter.Internal, MetaModelManagedAdapter, MetaModelManagerListener
Direct Known Subclasses:
CS2PivotResourceAdapter, MetaModelManagerResourceAdapter

public abstract class AbstractMetaModelManagerResourceAdapter<T extends org.eclipse.emf.ecore.resource.Resource>
extends java.lang.Object
implements MetaModelManagedAdapter

A MetaModelManagerResourceAdapter enhances the Resource for a Concrete Syntax model to support synchronization with a Pivot model representation.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Field Summary
protected  MetaModelManager metaModelManager
           
protected  T resource
           
 
Constructor Summary
AbstractMetaModelManagerResourceAdapter(T resource, MetaModelManager metaModelManager)
           
 
Method Summary
 void dispose()
           
static void disposeAll(org.eclipse.emf.ecore.resource.Resource resource)
           
static AbstractMetaModelManagerResourceAdapter<?> findAdapter(org.eclipse.emf.ecore.resource.Resource resource)
           
 MetaModelManager getMetaModelManager()
           
 T getTarget()
           
 boolean isAdapterFor(MetaModelManager metaModelManager)
           
 boolean isAdapterForType(java.lang.Object type)
           
 void metaModelManagerDisposed(MetaModelManager metaModelManager)
          Respond to disposal of the MetaModelManager by eliminating all further usage.
 void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
           
 void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
           
 void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

resource

@NonNull
protected final T extends org.eclipse.emf.ecore.resource.Resource resource

metaModelManager

@NonNull
protected final MetaModelManager metaModelManager
Constructor Detail

AbstractMetaModelManagerResourceAdapter

public AbstractMetaModelManagerResourceAdapter(@NonNull
                                               T resource,
                                               @NonNull
                                               MetaModelManager metaModelManager)
Method Detail

disposeAll

public static void disposeAll(@NonNull
                              org.eclipse.emf.ecore.resource.Resource resource)

findAdapter

@Nullable
public static AbstractMetaModelManagerResourceAdapter<?> findAdapter(@NonNull
                                                                              org.eclipse.emf.ecore.resource.Resource resource)

dispose

public void dispose()

getMetaModelManager

@NonNull
public MetaModelManager getMetaModelManager()

getTarget

public T getTarget()
Specified by:
getTarget in interface org.eclipse.emf.common.notify.Adapter

isAdapterFor

public boolean isAdapterFor(@NonNull
                            MetaModelManager metaModelManager)
Specified by:
isAdapterFor in interface MetaModelManagedAdapter

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter

metaModelManagerDisposed

public void metaModelManagerDisposed(@NonNull
                                     MetaModelManager metaModelManager)
Description copied from interface: MetaModelManagerListener
Respond to disposal of the MetaModelManager by eliminating all further usage.

Specified by:
metaModelManagerDisposed in interface MetaModelManagerListener

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter

setTarget

public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
Specified by:
setTarget in interface org.eclipse.emf.common.notify.Adapter

unsetTarget

public void unsetTarget(org.eclipse.emf.common.notify.Notifier oldTarget)
Specified by:
unsetTarget in interface org.eclipse.emf.common.notify.Adapter.Internal