edu.cmu.sei.aadl.modelsupport.adapter
Class ExternalModelAdapterFactory
java.lang.Object
org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
edu.cmu.sei.aadl.modelsupport.adapter.ExternalModelAdapterFactory
- All Implemented Interfaces:
- org.eclipse.emf.common.notify.AdapterFactory
public class ExternalModelAdapterFactory
- extends org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
This class implements an ExternalModelAdapter factory: It attaches an adapter
that handles an external model reference. This adapter does not listen to
notifications from changes to the Aadl Object model. The adapter is being
created through the createAdapter method. This method can be overwritten to
create an ExternalModelAdapter with an active notifyChanged method. If a
different adapter type is used, the isFactoryForType method must be
overwritten as well
Does not support adaptAllNew(Notifier)
because we cannot know
all the type keys that might be used to create adapters with this factory.
Specifically, the method adaptAllNew(Notifier)
does nothing, and
the helper method AdapterFactoryImpl.createAdapter(Notifier)
always returns an adapter with a null
type.
- Author:
- phf
Field Summary |
static org.eclipse.emf.common.notify.AdapterFactory |
INSTANCE
Static singleton instance of the factory. |
Method Summary |
void |
adaptAllNew(org.eclipse.emf.common.notify.Notifier target)
|
protected org.eclipse.emf.common.notify.Adapter |
createAdapter(org.eclipse.emf.common.notify.Notifier target)
|
org.eclipse.emf.common.notify.Adapter |
createAdapter(org.eclipse.emf.common.notify.Notifier target,
java.lang.Object type)
|
boolean |
isFactoryForType(java.lang.Object type)
|
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl |
adapt, adapt, adaptNew, associate, resolve |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
public static final org.eclipse.emf.common.notify.AdapterFactory INSTANCE
- Static singleton instance of the factory.
ExternalModelAdapterFactory
public ExternalModelAdapterFactory()
isFactoryForType
public boolean isFactoryForType(java.lang.Object type)
- Specified by:
isFactoryForType
in interface org.eclipse.emf.common.notify.AdapterFactory
- Overrides:
isFactoryForType
in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
adaptAllNew
public void adaptAllNew(org.eclipse.emf.common.notify.Notifier target)
- Specified by:
adaptAllNew
in interface org.eclipse.emf.common.notify.AdapterFactory
- Overrides:
adaptAllNew
in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
createAdapter
public org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target,
java.lang.Object type)
- Overrides:
createAdapter
in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl
createAdapter
protected org.eclipse.emf.common.notify.Adapter createAdapter(org.eclipse.emf.common.notify.Notifier target)
- Overrides:
createAdapter
in class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl