org.eclipse.gmt.umlx.alien.adapter
Class AlienEObjectAdapter

java.lang.Object
  extended by org.eclipse.gmt.umlx.alien.adapter.AlienEObjectAdapter
All Implemented Interfaces:
org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.EObject, org.eclipse.emf.ecore.InternalEObject
Direct Known Subclasses:
AlienExtensionAdapter, EMOFPropertyAdapter

public class AlienEObjectAdapter
extends java.lang.Object
implements org.eclipse.emf.common.notify.Adapter, org.eclipse.emf.common.notify.Notifier, org.eclipse.emf.ecore.InternalEObject

An AlienEObjectAdapter behaves as an EObject for an element of an alien model adapting an ecore model. The standard reflective interface is provided by eSet and eGet, such that values are obtained from and adapted from the ecore model. The adapting alien model is stateless. Adapted objects are normally created as a consequence of loading, saving or creating a AlienXMIResourceAdapter that defines the adapted model as an adapting resource.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.eclipse.emf.common.notify.Adapter
org.eclipse.emf.common.notify.Adapter.Internal
 
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.InternalEObject
org.eclipse.emf.ecore.InternalEObject.EStore
 
Field Summary
 
Fields inherited from interface org.eclipse.emf.ecore.InternalEObject
EOPPOSITE_FEATURE_BASE
 
Constructor Summary
AlienEObjectAdapter(EClassMap classMap, org.eclipse.emf.ecore.EObject target)
           
 
Method Summary
 org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()
           
 org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> eAllContents()
           
 int eBaseStructuralFeatureID(int derivedFeatureID, java.lang.Class<?> baseClass)
           
 org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainer(org.eclipse.emf.common.notify.NotificationChain notifications)
           
 org.eclipse.emf.common.notify.NotificationChain eBasicSetContainer(org.eclipse.emf.ecore.InternalEObject newContainer, int newContainerFeatureID, org.eclipse.emf.common.notify.NotificationChain notifications)
           
 org.eclipse.emf.ecore.EClass eClass()
           
 org.eclipse.emf.ecore.EObject eContainer()
           
 int eContainerFeatureID()
           
 org.eclipse.emf.ecore.EStructuralFeature eContainingFeature()
           
 org.eclipse.emf.ecore.EReference eContainmentFeature()
           
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eContents()
           
 org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eCrossReferences()
           
 boolean eDeliver()
           
 int eDerivedStructuralFeatureID(int baseFeatureID, java.lang.Class<?> baseClass)
           
 org.eclipse.emf.ecore.resource.Resource.Internal eDirectResource()
           
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature, boolean resolve)
           
 java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature, boolean resolve, boolean coreType)
           
 java.lang.Object eGet(int featureID, boolean resolve, boolean coreType)
           
 org.eclipse.emf.ecore.InternalEObject eInternalContainer()
           
 org.eclipse.emf.ecore.resource.Resource.Internal eInternalResource()
           
 org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class<?> baseClass, org.eclipse.emf.common.notify.NotificationChain notifications)
           
 org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd, int featureID, java.lang.Class<?> baseClass, org.eclipse.emf.common.notify.NotificationChain notifications)
           
 boolean eIsProxy()
           
 boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 boolean eIsSet(int featureID)
           
 boolean eNotificationRequired()
           
 void eNotify(org.eclipse.emf.common.notify.Notification notification)
           
 org.eclipse.emf.ecore.EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
           
 org.eclipse.emf.common.util.URI eProxyURI()
           
 org.eclipse.emf.ecore.EObject eResolveProxy(org.eclipse.emf.ecore.InternalEObject proxy)
           
 org.eclipse.emf.ecore.resource.Resource eResource()
           
 void eSet(org.eclipse.emf.ecore.EStructuralFeature feature, java.lang.Object alienValue)
           
 void eSet(int featureID, java.lang.Object newValue)
           
 void eSetClass(org.eclipse.emf.ecore.EClass class1)
           
 void eSetDeliver(boolean deliver)
           
 void eSetProxyURI(org.eclipse.emf.common.util.URI uri)
           
 org.eclipse.emf.common.notify.NotificationChain eSetResource(org.eclipse.emf.ecore.resource.Resource.Internal resource, org.eclipse.emf.common.notify.NotificationChain notifications)
           
 void eSetStore(org.eclipse.emf.ecore.InternalEObject.EStore store)
           
 org.eclipse.emf.ecore.EStructuralFeature.Setting eSetting(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 org.eclipse.emf.ecore.InternalEObject.EStore eStore()
           
 void eUnset(org.eclipse.emf.ecore.EStructuralFeature feature)
           
 void eUnset(int featureID)
           
 java.lang.String eURIFragmentSegment(org.eclipse.emf.ecore.EStructuralFeature alienFeature, org.eclipse.emf.ecore.EObject object)
           
 MappingMetaData getMappingMetaData()
           
 org.eclipse.emf.ecore.EObject getTarget()
           
 boolean isAdapterForType(java.lang.Object type)
           
 void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
           
 void postLoad()
           
 void preSave()
           
 void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AlienEObjectAdapter

public AlienEObjectAdapter(EClassMap classMap,
                           org.eclipse.emf.ecore.EObject target)
Method Detail

eAdapters

public org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()
Specified by:
eAdapters in interface org.eclipse.emf.common.notify.Notifier

eAllContents

public org.eclipse.emf.common.util.TreeIterator<org.eclipse.emf.ecore.EObject> eAllContents()
Specified by:
eAllContents in interface org.eclipse.emf.ecore.EObject

eBaseStructuralFeatureID

public int eBaseStructuralFeatureID(int derivedFeatureID,
                                    java.lang.Class<?> baseClass)
Specified by:
eBaseStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObject

eBasicRemoveFromContainer

public org.eclipse.emf.common.notify.NotificationChain eBasicRemoveFromContainer(org.eclipse.emf.common.notify.NotificationChain notifications)
Specified by:
eBasicRemoveFromContainer in interface org.eclipse.emf.ecore.InternalEObject

eBasicSetContainer

public org.eclipse.emf.common.notify.NotificationChain eBasicSetContainer(org.eclipse.emf.ecore.InternalEObject newContainer,
                                                                          int newContainerFeatureID,
                                                                          org.eclipse.emf.common.notify.NotificationChain notifications)
Specified by:
eBasicSetContainer in interface org.eclipse.emf.ecore.InternalEObject

eClass

public org.eclipse.emf.ecore.EClass eClass()
Specified by:
eClass in interface org.eclipse.emf.ecore.EObject

eContainer

public org.eclipse.emf.ecore.EObject eContainer()
Specified by:
eContainer in interface org.eclipse.emf.ecore.EObject

eContainingFeature

public org.eclipse.emf.ecore.EStructuralFeature eContainingFeature()
Specified by:
eContainingFeature in interface org.eclipse.emf.ecore.EObject

eContainerFeatureID

public int eContainerFeatureID()
Specified by:
eContainerFeatureID in interface org.eclipse.emf.ecore.InternalEObject

eContainmentFeature

public org.eclipse.emf.ecore.EReference eContainmentFeature()
Specified by:
eContainmentFeature in interface org.eclipse.emf.ecore.EObject

eContents

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eContents()
Specified by:
eContents in interface org.eclipse.emf.ecore.EObject

eCrossReferences

public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> eCrossReferences()
Specified by:
eCrossReferences in interface org.eclipse.emf.ecore.EObject

eDeliver

public boolean eDeliver()
Specified by:
eDeliver in interface org.eclipse.emf.common.notify.Notifier

eDerivedStructuralFeatureID

public int eDerivedStructuralFeatureID(int baseFeatureID,
                                       java.lang.Class<?> baseClass)
Specified by:
eDerivedStructuralFeatureID in interface org.eclipse.emf.ecore.InternalEObject

eDirectResource

public org.eclipse.emf.ecore.resource.Resource.Internal eDirectResource()
Specified by:
eDirectResource in interface org.eclipse.emf.ecore.InternalEObject

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature)
Specified by:
eGet in interface org.eclipse.emf.ecore.EObject

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature,
                             boolean resolve)
Specified by:
eGet in interface org.eclipse.emf.ecore.EObject

eGet

public java.lang.Object eGet(org.eclipse.emf.ecore.EStructuralFeature feature,
                             boolean resolve,
                             boolean coreType)
Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject

eGet

public java.lang.Object eGet(int featureID,
                             boolean resolve,
                             boolean coreType)
Specified by:
eGet in interface org.eclipse.emf.ecore.InternalEObject

eInternalContainer

public org.eclipse.emf.ecore.InternalEObject eInternalContainer()
Specified by:
eInternalContainer in interface org.eclipse.emf.ecore.InternalEObject

eInternalResource

public org.eclipse.emf.ecore.resource.Resource.Internal eInternalResource()
Specified by:
eInternalResource in interface org.eclipse.emf.ecore.InternalEObject

eInverseAdd

public org.eclipse.emf.common.notify.NotificationChain eInverseAdd(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                   int featureID,
                                                                   java.lang.Class<?> baseClass,
                                                                   org.eclipse.emf.common.notify.NotificationChain notifications)
Specified by:
eInverseAdd in interface org.eclipse.emf.ecore.InternalEObject

eInverseRemove

public org.eclipse.emf.common.notify.NotificationChain eInverseRemove(org.eclipse.emf.ecore.InternalEObject otherEnd,
                                                                      int featureID,
                                                                      java.lang.Class<?> baseClass,
                                                                      org.eclipse.emf.common.notify.NotificationChain notifications)
Specified by:
eInverseRemove in interface org.eclipse.emf.ecore.InternalEObject

eIsProxy

public boolean eIsProxy()
Specified by:
eIsProxy in interface org.eclipse.emf.ecore.EObject

eIsSet

public boolean eIsSet(org.eclipse.emf.ecore.EStructuralFeature feature)
Specified by:
eIsSet in interface org.eclipse.emf.ecore.EObject

eIsSet

public boolean eIsSet(int featureID)
Specified by:
eIsSet in interface org.eclipse.emf.ecore.InternalEObject

eNotify

public void eNotify(org.eclipse.emf.common.notify.Notification notification)
Specified by:
eNotify in interface org.eclipse.emf.common.notify.Notifier

eNotificationRequired

public boolean eNotificationRequired()
Specified by:
eNotificationRequired in interface org.eclipse.emf.ecore.InternalEObject

eObjectForURIFragmentSegment

public org.eclipse.emf.ecore.EObject eObjectForURIFragmentSegment(java.lang.String uriFragmentSegment)
Specified by:
eObjectForURIFragmentSegment in interface org.eclipse.emf.ecore.InternalEObject

eProxyURI

public org.eclipse.emf.common.util.URI eProxyURI()
Specified by:
eProxyURI in interface org.eclipse.emf.ecore.InternalEObject

eResolveProxy

public org.eclipse.emf.ecore.EObject eResolveProxy(org.eclipse.emf.ecore.InternalEObject proxy)
Specified by:
eResolveProxy in interface org.eclipse.emf.ecore.InternalEObject

eResource

public org.eclipse.emf.ecore.resource.Resource eResource()
Specified by:
eResource in interface org.eclipse.emf.ecore.EObject

eSet

public void eSet(org.eclipse.emf.ecore.EStructuralFeature feature,
                 java.lang.Object alienValue)
Specified by:
eSet in interface org.eclipse.emf.ecore.EObject

eSet

public void eSet(int featureID,
                 java.lang.Object newValue)
Specified by:
eSet in interface org.eclipse.emf.ecore.InternalEObject

eSetClass

public void eSetClass(org.eclipse.emf.ecore.EClass class1)
Specified by:
eSetClass in interface org.eclipse.emf.ecore.InternalEObject

eSetDeliver

public void eSetDeliver(boolean deliver)
Specified by:
eSetDeliver in interface org.eclipse.emf.common.notify.Notifier

eSetProxyURI

public void eSetProxyURI(org.eclipse.emf.common.util.URI uri)
Specified by:
eSetProxyURI in interface org.eclipse.emf.ecore.InternalEObject

eSetResource

public org.eclipse.emf.common.notify.NotificationChain eSetResource(org.eclipse.emf.ecore.resource.Resource.Internal resource,
                                                                    org.eclipse.emf.common.notify.NotificationChain notifications)
Specified by:
eSetResource in interface org.eclipse.emf.ecore.InternalEObject

eSetStore

public void eSetStore(org.eclipse.emf.ecore.InternalEObject.EStore store)
Specified by:
eSetStore in interface org.eclipse.emf.ecore.InternalEObject

eSetting

public org.eclipse.emf.ecore.EStructuralFeature.Setting eSetting(org.eclipse.emf.ecore.EStructuralFeature feature)
Specified by:
eSetting in interface org.eclipse.emf.ecore.InternalEObject

eStore

public org.eclipse.emf.ecore.InternalEObject.EStore eStore()
Specified by:
eStore in interface org.eclipse.emf.ecore.InternalEObject

eUnset

public void eUnset(org.eclipse.emf.ecore.EStructuralFeature feature)
Specified by:
eUnset in interface org.eclipse.emf.ecore.EObject

eURIFragmentSegment

public java.lang.String eURIFragmentSegment(org.eclipse.emf.ecore.EStructuralFeature alienFeature,
                                            org.eclipse.emf.ecore.EObject object)
Specified by:
eURIFragmentSegment in interface org.eclipse.emf.ecore.InternalEObject

eUnset

public void eUnset(int featureID)
Specified by:
eUnset in interface org.eclipse.emf.ecore.InternalEObject

getMappingMetaData

public MappingMetaData getMappingMetaData()

getTarget

public org.eclipse.emf.ecore.EObject getTarget()
Specified by:
getTarget in interface org.eclipse.emf.common.notify.Adapter

isAdapterForType

public boolean isAdapterForType(java.lang.Object type)
Specified by:
isAdapterForType in interface org.eclipse.emf.common.notify.Adapter

notifyChanged

public void notifyChanged(org.eclipse.emf.common.notify.Notification notification)
Specified by:
notifyChanged in interface org.eclipse.emf.common.notify.Adapter

postLoad

public void postLoad()

preSave

public void preSave()

setTarget

public void setTarget(org.eclipse.emf.common.notify.Notifier newTarget)
Specified by:
setTarget in interface org.eclipse.emf.common.notify.Adapter

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object