protected class MappingRootImpl.MappedObjectStateAdapterFactory extends AdapterFactoryImpl implements IDisposable
| Modifier and Type | Field and Description |
|---|---|
protected Disposable |
disposable |
| Constructor and Description |
|---|
MappingRootImpl.MappedObjectStateAdapterFactory() |
| Modifier and Type | Method and Description |
|---|---|
Adapter |
adapt(Notifier notifier,
java.lang.Object type)
Returns either a previously associated adapter or a newly associated adapter, as appropriate.
|
java.lang.Object |
adapt(java.lang.Object object,
java.lang.Object type)
Returns either
the result of calling
adapt(Notifier, Object)
or the result of calling resolve(Object, Object),
depending on whether the target is a notifier. |
Adapter |
adaptNew(Notifier object,
java.lang.Object type)
Creates an adapter by calling
createAdapter(Notifier, Object)
and associates it by calling associate. |
Adapter |
createAdapter(Notifier target)
Creates an
AdapterImpl. |
void |
dispose()
This is called to dispose the object.
|
boolean |
isFactoryForType(java.lang.Object type)
Returns
false. |
adaptAllNew, associate, createAdapter, resolveprotected Disposable disposable
public MappingRootImpl.MappedObjectStateAdapterFactory()
public Adapter createAdapter(Notifier target)
AdapterFactoryImplAdapterImpl.createAdapter in class AdapterFactoryImpltarget - the notifier to adapt.AdapterFactoryImpl.createAdapter(Notifier)public boolean isFactoryForType(java.lang.Object type)
AdapterFactoryImplfalse.isFactoryForType in interface AdapterFactoryisFactoryForType in class AdapterFactoryImpltype - the key indicating the type of adapter in question.false.Adapter.isAdapterForType(java.lang.Object)public Adapter adapt(Notifier notifier, java.lang.Object type)
AdapterFactorycreate a new adapter if possible.adapt in interface AdapterFactoryadapt in class AdapterFactoryImplnotifier - the notifier to adapt.type - the key indicating the type of adapter required.null otherwise.Adapter.setTarget(org.eclipse.emf.common.notify.Notifier),
AdapterFactory.adaptNew(org.eclipse.emf.common.notify.Notifier, java.lang.Object)public java.lang.Object adapt(java.lang.Object object,
java.lang.Object type)
AdapterFactoryImpladapt(Notifier, Object)
or the result of calling resolve(Object, Object),
depending on whether the target is a notifier.adapt in interface AdapterFactoryadapt in class AdapterFactoryImplobject - arbitrary object to adapt.type - the key indicating the type of adapter required.AdapterFactoryImpl.adapt(Notifier,Object),
AdapterFactoryImpl.resolve(Object, Object)public Adapter adaptNew(Notifier object, java.lang.Object type)
AdapterFactoryImplcreateAdapter(Notifier, Object)
and associates it by calling associate.adaptNew in interface AdapterFactoryadaptNew in class AdapterFactoryImplobject - the notifier to adapt.type - the key indicating the type of adapter required.AdapterFactoryImpl.createAdapter(Notifier, Object),
AdapterFactoryImpl.associate(Adapter, Notifier)public void dispose()
IDisposabledispose in interface IDisposable