|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.common.notify.impl.AdapterFactoryImpl org.eclipse.emf.mapping.impl.MappingRootImpl.MappedObjectStateAdapterFactory
protected class MappingRootImpl.MappedObjectStateAdapterFactory
This is the factory that creates adapters for the objects being mapped. It must be disposed if the lifetime of the mapped objects is longer than the lifetime of the mapping root.
Field Summary | |
---|---|
protected Disposable |
disposable
|
Constructor Summary | |
---|---|
MappingRootImpl.MappedObjectStateAdapterFactory()
|
Method Summary | |
---|---|
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 . |
Methods inherited from class org.eclipse.emf.common.notify.impl.AdapterFactoryImpl |
---|
adaptAllNew, associate, createAdapter, resolve |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected Disposable disposable
Constructor Detail |
---|
public MappingRootImpl.MappedObjectStateAdapterFactory()
Method Detail |
---|
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.
adapt
in interface AdapterFactory
adapt
in class AdapterFactoryImpl
notifier
- the notifier to adapt.type
- the key indicating the type of adapter required.
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
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |