|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gmf.runtime.common.core.util.Proxy
org.eclipse.gmf.runtime.emf.core.util.EObjectAdapter
public class EObjectAdapter
Wraps an EObject
to adapt it to the IAdaptable
Eclipse
platform API. This is useful for passing EObject
s into
APIs that consume adaptables.
See the getAdapter(Class)
method for the supported adaptations.
Note that this implementation does not consult the Eclipse platform's
adapter factory manager for registered adapters.
Note that this class is not intended to be extended by clients. Clients may instantiate it.
getAdapter(Class)
Constructor Summary | |
---|---|
EObjectAdapter(org.eclipse.emf.ecore.EObject element)
|
Method Summary | |
---|---|
java.lang.Object |
getAdapter(java.lang.Class adapter)
Returns the wrapped EObject as the adapter when possible. |
java.lang.Object |
getProxyClassID()
Obtains the ID (fully-qualified name) of the EClass of the proxy object. |
org.eclipse.emf.ecore.EObject |
resolve()
Resolves the proxy. |
Methods inherited from class org.eclipse.gmf.runtime.common.core.util.Proxy |
---|
equals, getRealObject, handle, hashCode, setRealObject |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EObjectAdapter(org.eclipse.emf.ecore.EObject element)
Method Detail |
---|
public java.lang.Object getAdapter(java.lang.Class adapter)
EObject
as the adapter when possible.
The following adaptations are supported:
EObject
conforms to the
adapter
type, then it is returnedadapter
type, then it is returnednull
returned)
getAdapter
in interface IAdaptable
public final java.lang.Object getProxyClassID()
IProxyEObject
EClass
of the proxy object.
getProxyClassID
in interface IProxyEObject
EClass
ID (must not be null
)ProxyUtil#getProxyClassID(EObject)
public final org.eclipse.emf.ecore.EObject resolve()
IProxyEObject
resolve
in interface IProxyEObject
null
if the proxy could not
be resolvedProxyUtil#resolve(EObject)
|
Runtime | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.