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, resolve
protected Disposable disposable
public MappingRootImpl.MappedObjectStateAdapterFactory()
public Adapter createAdapter(Notifier target)
AdapterFactoryImpl
AdapterImpl
.createAdapter
in class AdapterFactoryImpl
target
- the notifier to adapt.AdapterFactoryImpl.createAdapter(Notifier)
public boolean isFactoryForType(java.lang.Object type)
AdapterFactoryImpl
false
.isFactoryForType
in interface AdapterFactory
isFactoryForType
in class AdapterFactoryImpl
type
- the key indicating the type of adapter in question.false
.Adapter.isAdapterForType(java.lang.Object)
public Adapter adapt(Notifier notifier, java.lang.Object type)
AdapterFactory
create
a new adapter if possible.adapt
in interface AdapterFactory
adapt
in class AdapterFactoryImpl
notifier
- 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)
AdapterFactoryImpl
adapt(Notifier, Object)
or the result of calling resolve(Object, Object)
,
depending on whether the target is a notifier.adapt
in interface AdapterFactory
adapt
in class AdapterFactoryImpl
object
- 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)
AdapterFactoryImpl
createAdapter(Notifier, Object)
and associates it by calling associate
.adaptNew
in interface AdapterFactory
adaptNew
in class AdapterFactoryImpl
object
- the notifier to adapt.type
- the key indicating the type of adapter required.AdapterFactoryImpl.createAdapter(Notifier, Object)
,
AdapterFactoryImpl.associate(Adapter, Notifier)
public void dispose()
IDisposable
dispose
in interface IDisposable