directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oer...@apache.org
Subject svn commit: r519227 [2/4] - in /directory/sandbox/oersoy/ecore2ecore.model.parent: ./ ecore2ecore.model.ecore/ ecore2ecore.model.ecore/.settings/ ecore2ecore.model.ecore/model/ ecore2ecore.model.ecore/src/ ecore2ecore.model.ecore/src/main/ ecore2ecore....
Date Sat, 17 Mar 2007 03:14:27 GMT
Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/DirectionBufferImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/DirectionBufferImpl.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/DirectionBufferImpl.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/DirectionBufferImpl.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,160 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.impl;
+
+import org.apache.tuscany.model.emf.ecore2ecore.DirectionBuffer;
+import org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage;
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Direction Buffer</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.DirectionBufferImpl#getEPackageNamespace2MappingRootMap <em>EPackage Namespace2 Mapping Root Map</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class DirectionBufferImpl extends EObjectImpl implements DirectionBuffer {
+	/**
+     * The cached value of the '{@link #getEPackageNamespace2MappingRootMap() <em>EPackage Namespace2 Mapping Root Map</em>}' map.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getEPackageNamespace2MappingRootMap()
+     * @generated
+     * @ordered
+     */
+	protected EMap<String, Mapping> ePackageNamespace2MappingRootMap;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected DirectionBufferImpl() {
+        super();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	protected EClass eStaticClass() {
+        return Ecore2EcorePackage.Literals.DIRECTION_BUFFER;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EMap<String, Mapping> getEPackageNamespace2MappingRootMap() {
+        if (ePackageNamespace2MappingRootMap == null)
+        {
+            ePackageNamespace2MappingRootMap = new EcoreEMap<String,Mapping>(Ecore2EcorePackage.Literals.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP, EPackageNamespace2MappingRootMapImpl.class, this, Ecore2EcorePackage.DIRECTION_BUFFER__EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP);
+        }
+        return ePackageNamespace2MappingRootMap;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.DIRECTION_BUFFER__EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP:
+                return ((InternalEList<?>)getEPackageNamespace2MappingRootMap()).basicRemove(otherEnd, msgs);
+        }
+        return super.eInverseRemove(otherEnd, featureID, msgs);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.DIRECTION_BUFFER__EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP:
+                if (coreType) return getEPackageNamespace2MappingRootMap();
+                else return getEPackageNamespace2MappingRootMap().map();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eSet(int featureID, Object newValue) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.DIRECTION_BUFFER__EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP:
+                ((EStructuralFeature.Setting)getEPackageNamespace2MappingRootMap()).set(newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eUnset(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.DIRECTION_BUFFER__EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP:
+                getEPackageNamespace2MappingRootMap().clear();
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public boolean eIsSet(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.DIRECTION_BUFFER__EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP:
+                return ePackageNamespace2MappingRootMap != null && !ePackageNamespace2MappingRootMap.isEmpty();
+        }
+        return super.eIsSet(featureID);
+    }
+
+} //DirectionBufferImpl

Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EClass2MappingMapEntryImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EClass2MappingMapEntryImpl.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EClass2MappingMapEntryImpl.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EClass2MappingMapEntryImpl.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,311 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.impl;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage;
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.BasicEMap;
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>EClass2 Mapping Map Entry</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.EClass2MappingMapEntryImpl#getTypedKey <em>Key</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.EClass2MappingMapEntryImpl#getTypedValue <em>Value</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EClass2MappingMapEntryImpl extends EObjectImpl implements BasicEMap.Entry<EClass,Mapping> {
+	/**
+     * The cached value of the '{@link #getTypedKey() <em>Key</em>}' reference.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getTypedKey()
+     * @generated
+     * @ordered
+     */
+	protected EClass key;
+
+	/**
+     * The cached value of the '{@link #getTypedValue() <em>Value</em>}' reference.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getTypedValue()
+     * @generated
+     * @ordered
+     */
+	protected Mapping value;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected EClass2MappingMapEntryImpl() {
+        super();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	protected EClass eStaticClass() {
+        return Ecore2EcorePackage.Literals.ECLASS2_MAPPING_MAP_ENTRY;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass getTypedKey() {
+        if (key != null && key.eIsProxy())
+        {
+            InternalEObject oldKey = (InternalEObject)key;
+            key = (EClass)eResolveProxy(oldKey);
+            if (key != oldKey)
+            {
+                if (eNotificationRequired())
+                    eNotify(new ENotificationImpl(this, Notification.RESOLVE, Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__KEY, oldKey, key));
+            }
+        }
+        return key;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass basicGetTypedKey() {
+        return key;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setTypedKey(EClass newKey) {
+        EClass oldKey = key;
+        key = newKey;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__KEY, oldKey, key));
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Mapping getTypedValue() {
+        if (value != null && value.eIsProxy())
+        {
+            InternalEObject oldValue = (InternalEObject)value;
+            value = (Mapping)eResolveProxy(oldValue);
+            if (value != oldValue)
+            {
+                if (eNotificationRequired())
+                    eNotify(new ENotificationImpl(this, Notification.RESOLVE, Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__VALUE, oldValue, value));
+            }
+        }
+        return value;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Mapping basicGetTypedValue() {
+        return value;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setTypedValue(Mapping newValue) {
+        Mapping oldValue = value;
+        value = newValue;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__VALUE, oldValue, value));
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__KEY:
+                if (resolve) return getTypedKey();
+                return basicGetTypedKey();
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__VALUE:
+                if (resolve) return getTypedValue();
+                return basicGetTypedValue();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eSet(int featureID, Object newValue) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__KEY:
+                setTypedKey((EClass)newValue);
+                return;
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__VALUE:
+                setTypedValue((Mapping)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eUnset(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__KEY:
+                setTypedKey((EClass)null);
+                return;
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__VALUE:
+                setTypedValue((Mapping)null);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public boolean eIsSet(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__KEY:
+                return key != null;
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY__VALUE:
+                return value != null;
+        }
+        return super.eIsSet(featureID);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected int hash = -1;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public int getHash() {
+        if (hash == -1)
+        {
+            Object theKey = getKey();
+            hash = (theKey == null ? 0 : theKey.hashCode());
+        }
+        return hash;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setHash(int hash) {
+        this.hash = hash;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass getKey() {
+        return getTypedKey();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setKey(EClass key) {
+        setTypedKey(key);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Mapping getValue() {
+        return getTypedValue();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Mapping setValue(Mapping value) {
+        Mapping oldValue = getValue();
+        setTypedValue(value);
+        return oldValue;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@SuppressWarnings("unchecked")
+	public EMap<EClass, Mapping> getEMap() {
+        EObject container = eContainer();
+        return container == null ? null : (EMap<EClass, Mapping>)container.eGet(eContainmentFeature());
+    }
+
+} //EClass2MappingMapEntryImpl

Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EPackageNamespace2MappingRootMapImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EPackageNamespace2MappingRootMapImpl.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EPackageNamespace2MappingRootMapImpl.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EPackageNamespace2MappingRootMapImpl.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,317 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.impl;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage;
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.BasicEMap;
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>EPackage Namespace2 Mapping Root Map</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.EPackageNamespace2MappingRootMapImpl#getTypedKey <em>Key</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.EPackageNamespace2MappingRootMapImpl#getTypedValue <em>Value</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EPackageNamespace2MappingRootMapImpl extends EObjectImpl implements BasicEMap.Entry<String,Mapping> {
+	/**
+     * The default value of the '{@link #getTypedKey() <em>Key</em>}' attribute.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getTypedKey()
+     * @generated
+     * @ordered
+     */
+	protected static final String KEY_EDEFAULT = null;
+
+	/**
+     * The cached value of the '{@link #getTypedKey() <em>Key</em>}' attribute.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getTypedKey()
+     * @generated
+     * @ordered
+     */
+	protected String key = KEY_EDEFAULT;
+
+	/**
+     * The cached value of the '{@link #getTypedValue() <em>Value</em>}' reference.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getTypedValue()
+     * @generated
+     * @ordered
+     */
+	protected Mapping value;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected EPackageNamespace2MappingRootMapImpl() {
+        super();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	protected EClass eStaticClass() {
+        return Ecore2EcorePackage.Literals.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public String getTypedKey() {
+        return key;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setTypedKey(String newKey) {
+        String oldKey = key;
+        key = newKey;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__KEY, oldKey, key));
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Mapping getTypedValue() {
+        if (value != null && value.eIsProxy())
+        {
+            InternalEObject oldValue = (InternalEObject)value;
+            value = (Mapping)eResolveProxy(oldValue);
+            if (value != oldValue)
+            {
+                if (eNotificationRequired())
+                    eNotify(new ENotificationImpl(this, Notification.RESOLVE, Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__VALUE, oldValue, value));
+            }
+        }
+        return value;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Mapping basicGetTypedValue() {
+        return value;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setTypedValue(Mapping newValue) {
+        Mapping oldValue = value;
+        value = newValue;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__VALUE, oldValue, value));
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__KEY:
+                return getTypedKey();
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__VALUE:
+                if (resolve) return getTypedValue();
+                return basicGetTypedValue();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eSet(int featureID, Object newValue) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__KEY:
+                setTypedKey((String)newValue);
+                return;
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__VALUE:
+                setTypedValue((Mapping)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eUnset(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__KEY:
+                setTypedKey(KEY_EDEFAULT);
+                return;
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__VALUE:
+                setTypedValue((Mapping)null);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public boolean eIsSet(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__KEY:
+                return KEY_EDEFAULT == null ? key != null : !KEY_EDEFAULT.equals(key);
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__VALUE:
+                return value != null;
+        }
+        return super.eIsSet(featureID);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public String toString() {
+        if (eIsProxy()) return super.toString();
+
+        StringBuffer result = new StringBuffer(super.toString());
+        result.append(" (key: ");
+        result.append(key);
+        result.append(')');
+        return result.toString();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected int hash = -1;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public int getHash() {
+        if (hash == -1)
+        {
+            Object theKey = getKey();
+            hash = (theKey == null ? 0 : theKey.hashCode());
+        }
+        return hash;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setHash(int hash) {
+        this.hash = hash;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public String getKey() {
+        return getTypedKey();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setKey(String key) {
+        setTypedKey(key);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Mapping getValue() {
+        return getTypedValue();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Mapping setValue(Mapping value) {
+        Mapping oldValue = getValue();
+        setTypedValue(value);
+        return oldValue;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@SuppressWarnings("unchecked")
+	public EMap<String, Mapping> getEMap() {
+        EObject container = eContainer();
+        return container == null ? null : (EMap<String, Mapping>)container.eGet(eContainmentFeature());
+    }
+
+} //EPackageNamespace2MappingRootMapImpl

Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EStructuralFeature2EStructuralFeatureMapEntryImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EStructuralFeature2EStructuralFeatureMapEntryImpl.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EStructuralFeature2EStructuralFeatureMapEntryImpl.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/EStructuralFeature2EStructuralFeatureMapEntryImpl.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,311 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.impl;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage;
+
+import org.eclipse.emf.common.notify.Notification;
+
+import org.eclipse.emf.common.util.BasicEMap;
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>EStructural Feature2 EStructural Feature Map Entry</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.EStructuralFeature2EStructuralFeatureMapEntryImpl#getTypedKey <em>Key</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.EStructuralFeature2EStructuralFeatureMapEntryImpl#getTypedValue <em>Value</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class EStructuralFeature2EStructuralFeatureMapEntryImpl extends EObjectImpl implements BasicEMap.Entry<EStructuralFeature,EStructuralFeature> {
+	/**
+     * The cached value of the '{@link #getTypedKey() <em>Key</em>}' reference.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getTypedKey()
+     * @generated
+     * @ordered
+     */
+	protected EStructuralFeature key;
+
+	/**
+     * The cached value of the '{@link #getTypedValue() <em>Value</em>}' reference.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getTypedValue()
+     * @generated
+     * @ordered
+     */
+	protected EStructuralFeature value;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected EStructuralFeature2EStructuralFeatureMapEntryImpl() {
+        super();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	protected EClass eStaticClass() {
+        return Ecore2EcorePackage.Literals.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EStructuralFeature getTypedKey() {
+        if (key != null && key.eIsProxy())
+        {
+            InternalEObject oldKey = (InternalEObject)key;
+            key = (EStructuralFeature)eResolveProxy(oldKey);
+            if (key != oldKey)
+            {
+                if (eNotificationRequired())
+                    eNotify(new ENotificationImpl(this, Notification.RESOLVE, Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__KEY, oldKey, key));
+            }
+        }
+        return key;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EStructuralFeature basicGetTypedKey() {
+        return key;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setTypedKey(EStructuralFeature newKey) {
+        EStructuralFeature oldKey = key;
+        key = newKey;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__KEY, oldKey, key));
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EStructuralFeature getTypedValue() {
+        if (value != null && value.eIsProxy())
+        {
+            InternalEObject oldValue = (InternalEObject)value;
+            value = (EStructuralFeature)eResolveProxy(oldValue);
+            if (value != oldValue)
+            {
+                if (eNotificationRequired())
+                    eNotify(new ENotificationImpl(this, Notification.RESOLVE, Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__VALUE, oldValue, value));
+            }
+        }
+        return value;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EStructuralFeature basicGetTypedValue() {
+        return value;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setTypedValue(EStructuralFeature newValue) {
+        EStructuralFeature oldValue = value;
+        value = newValue;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__VALUE, oldValue, value));
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__KEY:
+                if (resolve) return getTypedKey();
+                return basicGetTypedKey();
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__VALUE:
+                if (resolve) return getTypedValue();
+                return basicGetTypedValue();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eSet(int featureID, Object newValue) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__KEY:
+                setTypedKey((EStructuralFeature)newValue);
+                return;
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__VALUE:
+                setTypedValue((EStructuralFeature)newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eUnset(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__KEY:
+                setTypedKey((EStructuralFeature)null);
+                return;
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__VALUE:
+                setTypedValue((EStructuralFeature)null);
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public boolean eIsSet(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__KEY:
+                return key != null;
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__VALUE:
+                return value != null;
+        }
+        return super.eIsSet(featureID);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected int hash = -1;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public int getHash() {
+        if (hash == -1)
+        {
+            Object theKey = getKey();
+            hash = (theKey == null ? 0 : theKey.hashCode());
+        }
+        return hash;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setHash(int hash) {
+        this.hash = hash;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EStructuralFeature getKey() {
+        return getTypedKey();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setKey(EStructuralFeature key) {
+        setTypedKey(key);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EStructuralFeature getValue() {
+        return getTypedValue();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EStructuralFeature setValue(EStructuralFeature value) {
+        EStructuralFeature oldValue = getValue();
+        setTypedValue(value);
+        return oldValue;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@SuppressWarnings("unchecked")
+	public EMap<EStructuralFeature, EStructuralFeature> getEMap() {
+        EObject container = eContainer();
+        return container == null ? null : (EMap<EStructuralFeature, EStructuralFeature>)container.eGet(eContainmentFeature());
+    }
+
+} //EStructuralFeature2EStructuralFeatureMapEntryImpl

Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcoreFactoryImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcoreFactoryImpl.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcoreFactoryImpl.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcoreFactoryImpl.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,161 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.impl;
+
+import java.util.Map;
+
+import org.apache.tuscany.model.emf.ecore2ecore.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Factory</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class Ecore2EcoreFactoryImpl extends EFactoryImpl implements Ecore2EcoreFactory {
+	/**
+     * Creates the default factory implementation.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public static Ecore2EcoreFactory init() {
+        try
+        {
+            Ecore2EcoreFactory theEcore2EcoreFactory = (Ecore2EcoreFactory)EPackage.Registry.INSTANCE.getEFactory("http://www.apache.org/maven.model.ecore2ecore"); 
+            if (theEcore2EcoreFactory != null)
+            {
+                return theEcore2EcoreFactory;
+            }
+        }
+        catch (Exception exception)
+        {
+            EcorePlugin.INSTANCE.log(exception);
+        }
+        return new Ecore2EcoreFactoryImpl();
+    }
+
+	/**
+     * Creates an instance of the factory.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Ecore2EcoreFactoryImpl() {
+        super();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public EObject create(EClass eClass) {
+        switch (eClass.getClassifierID())
+        {
+            case Ecore2EcorePackage.MAPPING: return createMapping();
+            case Ecore2EcorePackage.MAPPING_ROOT: return createMappingRoot();
+            case Ecore2EcorePackage.DIRECTION_BUFFER: return createDirectionBuffer();
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY: return (EObject)createEStructuralFeature2EStructuralFeatureMapEntry();
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY: return (EObject)createEClass2MappingMapEntry();
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP: return (EObject)createEPackageNamespace2MappingRootMap();
+            default:
+                throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+        }
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Mapping createMapping() {
+        MappingImpl mapping = new MappingImpl();
+        return mapping;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public MappingRoot createMappingRoot() {
+        MappingRootImpl mappingRoot = new MappingRootImpl();
+        return mappingRoot;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public DirectionBuffer createDirectionBuffer() {
+        DirectionBufferImpl directionBuffer = new DirectionBufferImpl();
+        return directionBuffer;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Map.Entry<EStructuralFeature, EStructuralFeature> createEStructuralFeature2EStructuralFeatureMapEntry() {
+        EStructuralFeature2EStructuralFeatureMapEntryImpl eStructuralFeature2EStructuralFeatureMapEntry = new EStructuralFeature2EStructuralFeatureMapEntryImpl();
+        return eStructuralFeature2EStructuralFeatureMapEntry;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Map.Entry<EClass, Mapping> createEClass2MappingMapEntry() {
+        EClass2MappingMapEntryImpl eClass2MappingMapEntry = new EClass2MappingMapEntryImpl();
+        return eClass2MappingMapEntry;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Map.Entry<String, Mapping> createEPackageNamespace2MappingRootMap() {
+        EPackageNamespace2MappingRootMapImpl ePackageNamespace2MappingRootMap = new EPackageNamespace2MappingRootMapImpl();
+        return ePackageNamespace2MappingRootMap;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Ecore2EcorePackage getEcore2EcorePackage() {
+        return (Ecore2EcorePackage)getEPackage();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @deprecated
+     * @generated
+     */
+	@Deprecated
+	public static Ecore2EcorePackage getPackage() {
+        return Ecore2EcorePackage.eINSTANCE;
+    }
+
+} //Ecore2EcoreFactoryImpl

Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcorePackageImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcorePackageImpl.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcorePackageImpl.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcorePackageImpl.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,403 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.impl;
+
+import java.util.Map;
+
+import org.apache.tuscany.model.emf.ecore2ecore.DirectionBuffer;
+import org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcoreFactory;
+import org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage;
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+import org.apache.tuscany.model.emf.ecore2ecore.MappingRoot;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EOperation;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EcorePackage;
+
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model <b>Package</b>.
+ * <!-- end-user-doc -->
+ * @generated
+ */
+public class Ecore2EcorePackageImpl extends EPackageImpl implements Ecore2EcorePackage {
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	private EClass mappingEClass = null;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	private EClass mappingRootEClass = null;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	private EClass directionBufferEClass = null;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	private EClass eStructuralFeature2EStructuralFeatureMapEntryEClass = null;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	private EClass eClass2MappingMapEntryEClass = null;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	private EClass ePackageNamespace2MappingRootMapEClass = null;
+
+	/**
+     * Creates an instance of the model <b>Package</b>, registered with
+     * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
+     * package URI value.
+     * <p>Note: the correct way to create the package is via the static
+     * factory method {@link #init init()}, which also performs
+     * initialization of the package, or returns the registered package,
+     * if one already exists.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see org.eclipse.emf.ecore.EPackage.Registry
+     * @see org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage#eNS_URI
+     * @see #init()
+     * @generated
+     */
+	private Ecore2EcorePackageImpl() {
+        super(eNS_URI, Ecore2EcoreFactory.eINSTANCE);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	private static boolean isInited = false;
+
+	/**
+     * Creates, registers, and initializes the <b>Package</b> for this
+     * model, and for any others upon which it depends.  Simple
+     * dependencies are satisfied by calling this method on all
+     * dependent packages before doing anything else.  This method drives
+     * initialization for interdependent packages directly, in parallel
+     * with this package, itself.
+     * <p>Of this package and its interdependencies, all packages which
+     * have not yet been registered by their URI values are first created
+     * and registered.  The packages are then initialized in two steps:
+     * meta-model objects for all of the packages are created before any
+     * are initialized, since one package's meta-model objects may refer to
+     * those of another.
+     * <p>Invocation of this method will not affect any packages that have
+     * already been initialized.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #eNS_URI
+     * @see #createPackageContents()
+     * @see #initializePackageContents()
+     * @generated
+     */
+	public static Ecore2EcorePackage init() {
+        if (isInited) return (Ecore2EcorePackage)EPackage.Registry.INSTANCE.getEPackage(Ecore2EcorePackage.eNS_URI);
+
+        // Obtain or create and register package
+        Ecore2EcorePackageImpl theEcore2EcorePackage = (Ecore2EcorePackageImpl)(EPackage.Registry.INSTANCE.getEPackage(eNS_URI) instanceof Ecore2EcorePackageImpl ? EPackage.Registry.INSTANCE.getEPackage(eNS_URI) : new Ecore2EcorePackageImpl());
+
+        isInited = true;
+
+        // Initialize simple dependencies
+        EcorePackage.eINSTANCE.eClass();
+
+        // Create package meta-data objects
+        theEcore2EcorePackage.createPackageContents();
+
+        // Initialize created meta-data
+        theEcore2EcorePackage.initializePackageContents();
+
+        // Mark meta-data to indicate it can't be changed
+        theEcore2EcorePackage.freeze();
+
+        return theEcore2EcorePackage;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass getMapping() {
+        return mappingEClass;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EReference getMapping_TargetEClass() {
+        return (EReference)mappingEClass.getEStructuralFeatures().get(0);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EReference getMapping_EStructuralFeature2EStructuralFeatureMap() {
+        return (EReference)mappingEClass.getEStructuralFeatures().get(1);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass getMappingRoot() {
+        return mappingRootEClass;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EReference getMappingRoot_EClass2MappingMap() {
+        return (EReference)mappingRootEClass.getEStructuralFeatures().get(0);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass getDirectionBuffer() {
+        return directionBufferEClass;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EReference getDirectionBuffer_EPackageNamespace2MappingRootMap() {
+        return (EReference)directionBufferEClass.getEStructuralFeatures().get(0);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass getEStructuralFeature2EStructuralFeatureMapEntry() {
+        return eStructuralFeature2EStructuralFeatureMapEntryEClass;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EReference getEStructuralFeature2EStructuralFeatureMapEntry_Key() {
+        return (EReference)eStructuralFeature2EStructuralFeatureMapEntryEClass.getEStructuralFeatures().get(0);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EReference getEStructuralFeature2EStructuralFeatureMapEntry_Value() {
+        return (EReference)eStructuralFeature2EStructuralFeatureMapEntryEClass.getEStructuralFeatures().get(1);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass getEClass2MappingMapEntry() {
+        return eClass2MappingMapEntryEClass;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EReference getEClass2MappingMapEntry_Key() {
+        return (EReference)eClass2MappingMapEntryEClass.getEStructuralFeatures().get(0);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EReference getEClass2MappingMapEntry_Value() {
+        return (EReference)eClass2MappingMapEntryEClass.getEStructuralFeatures().get(1);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass getEPackageNamespace2MappingRootMap() {
+        return ePackageNamespace2MappingRootMapEClass;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EAttribute getEPackageNamespace2MappingRootMap_Key() {
+        return (EAttribute)ePackageNamespace2MappingRootMapEClass.getEStructuralFeatures().get(0);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EReference getEPackageNamespace2MappingRootMap_Value() {
+        return (EReference)ePackageNamespace2MappingRootMapEClass.getEStructuralFeatures().get(1);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Ecore2EcoreFactory getEcore2EcoreFactory() {
+        return (Ecore2EcoreFactory)getEFactoryInstance();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	private boolean isCreated = false;
+
+	/**
+     * Creates the meta-model objects for the package.  This method is
+     * guarded to have no affect on any invocation but its first.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void createPackageContents() {
+        if (isCreated) return;
+        isCreated = true;
+
+        // Create classes and their features
+        mappingEClass = createEClass(MAPPING);
+        createEReference(mappingEClass, MAPPING__TARGET_ECLASS);
+        createEReference(mappingEClass, MAPPING__ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP);
+
+        mappingRootEClass = createEClass(MAPPING_ROOT);
+        createEReference(mappingRootEClass, MAPPING_ROOT__ECLASS2_MAPPING_MAP);
+
+        directionBufferEClass = createEClass(DIRECTION_BUFFER);
+        createEReference(directionBufferEClass, DIRECTION_BUFFER__EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP);
+
+        eStructuralFeature2EStructuralFeatureMapEntryEClass = createEClass(ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY);
+        createEReference(eStructuralFeature2EStructuralFeatureMapEntryEClass, ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__KEY);
+        createEReference(eStructuralFeature2EStructuralFeatureMapEntryEClass, ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY__VALUE);
+
+        eClass2MappingMapEntryEClass = createEClass(ECLASS2_MAPPING_MAP_ENTRY);
+        createEReference(eClass2MappingMapEntryEClass, ECLASS2_MAPPING_MAP_ENTRY__KEY);
+        createEReference(eClass2MappingMapEntryEClass, ECLASS2_MAPPING_MAP_ENTRY__VALUE);
+
+        ePackageNamespace2MappingRootMapEClass = createEClass(EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP);
+        createEAttribute(ePackageNamespace2MappingRootMapEClass, EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__KEY);
+        createEReference(ePackageNamespace2MappingRootMapEClass, EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP__VALUE);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	private boolean isInitialized = false;
+
+	/**
+     * Complete the initialization of the package and its meta-model.  This
+     * method is guarded to have no affect on any invocation but its first.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void initializePackageContents() {
+        if (isInitialized) return;
+        isInitialized = true;
+
+        // Initialize package
+        setName(eNAME);
+        setNsPrefix(eNS_PREFIX);
+        setNsURI(eNS_URI);
+
+        // Obtain other dependent packages
+        EcorePackage theEcorePackage = (EcorePackage)EPackage.Registry.INSTANCE.getEPackage(EcorePackage.eNS_URI);
+
+        // Create type parameters
+
+        // Set bounds for type parameters
+
+        // Add supertypes to classes
+
+        // Initialize classes and features; add operations and parameters
+        initEClass(mappingEClass, Mapping.class, "Mapping", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEReference(getMapping_TargetEClass(), ecorePackage.getEClass(), null, "targetEClass", null, 0, 1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getMapping_EStructuralFeature2EStructuralFeatureMap(), this.getEStructuralFeature2EStructuralFeatureMapEntry(), null, "eStructuralFeature2EStructuralFeatureMap", null, 1, -1, Mapping.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(mappingRootEClass, MappingRoot.class, "MappingRoot", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEReference(getMappingRoot_EClass2MappingMap(), this.getEClass2MappingMapEntry(), null, "eClass2MappingMap", null, 1, -1, MappingRoot.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        EOperation op = addEOperation(mappingRootEClass, this.getMapping(), "getTargetMapping", 0, 1);
+        addEParameter(op, ecorePackage.getEObject(), "sourceEObject", 0, 1);
+
+        initEClass(directionBufferEClass, DirectionBuffer.class, "DirectionBuffer", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+        initEReference(getDirectionBuffer_EPackageNamespace2MappingRootMap(), this.getEPackageNamespace2MappingRootMap(), null, "ePackageNamespace2MappingRootMap", null, 1, -1, DirectionBuffer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(eStructuralFeature2EStructuralFeatureMapEntryEClass, Map.Entry.class, "EStructuralFeature2EStructuralFeatureMapEntry", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
+        initEReference(getEStructuralFeature2EStructuralFeatureMapEntry_Key(), theEcorePackage.getEStructuralFeature(), null, "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getEStructuralFeature2EStructuralFeatureMapEntry_Value(), theEcorePackage.getEStructuralFeature(), null, "value", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(eClass2MappingMapEntryEClass, Map.Entry.class, "EClass2MappingMapEntry", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
+        initEReference(getEClass2MappingMapEntry_Key(), theEcorePackage.getEClass(), null, "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getEClass2MappingMapEntry_Value(), this.getMapping(), null, "value", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        initEClass(ePackageNamespace2MappingRootMapEClass, Map.Entry.class, "EPackageNamespace2MappingRootMap", !IS_ABSTRACT, !IS_INTERFACE, !IS_GENERATED_INSTANCE_CLASS);
+        initEAttribute(getEPackageNamespace2MappingRootMap_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+        initEReference(getEPackageNamespace2MappingRootMap_Value(), this.getMapping(), null, "value", null, 0, 1, Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+        // Create resource
+        createResource(eNS_URI);
+    }
+
+} //Ecore2EcorePackageImpl

Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingImpl.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingImpl.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingImpl.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,223 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.impl;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage;
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.ENotificationImpl;
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Mapping</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.MappingImpl#getTargetEClass <em>Target EClass</em>}</li>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.MappingImpl#getEStructuralFeature2EStructuralFeatureMap <em>EStructural Feature2 EStructural Feature Map</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MappingImpl extends EObjectImpl implements Mapping {
+	/**
+     * The cached value of the '{@link #getTargetEClass() <em>Target EClass</em>}' reference.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getTargetEClass()
+     * @generated
+     * @ordered
+     */
+	protected EClass targetEClass;
+
+	/**
+     * The cached value of the '{@link #getEStructuralFeature2EStructuralFeatureMap() <em>EStructural Feature2 EStructural Feature Map</em>}' map.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getEStructuralFeature2EStructuralFeatureMap()
+     * @generated
+     * @ordered
+     */
+	protected EMap<EStructuralFeature, EStructuralFeature> eStructuralFeature2EStructuralFeatureMap;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected MappingImpl() {
+        super();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	protected EClass eStaticClass() {
+        return Ecore2EcorePackage.Literals.MAPPING;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass getTargetEClass() {
+        if (targetEClass != null && targetEClass.eIsProxy())
+        {
+            InternalEObject oldTargetEClass = (InternalEObject)targetEClass;
+            targetEClass = (EClass)eResolveProxy(oldTargetEClass);
+            if (targetEClass != oldTargetEClass)
+            {
+                if (eNotificationRequired())
+                    eNotify(new ENotificationImpl(this, Notification.RESOLVE, Ecore2EcorePackage.MAPPING__TARGET_ECLASS, oldTargetEClass, targetEClass));
+            }
+        }
+        return targetEClass;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EClass basicGetTargetEClass() {
+        return targetEClass;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public void setTargetEClass(EClass newTargetEClass) {
+        EClass oldTargetEClass = targetEClass;
+        targetEClass = newTargetEClass;
+        if (eNotificationRequired())
+            eNotify(new ENotificationImpl(this, Notification.SET, Ecore2EcorePackage.MAPPING__TARGET_ECLASS, oldTargetEClass, targetEClass));
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EMap<EStructuralFeature, EStructuralFeature> getEStructuralFeature2EStructuralFeatureMap() {
+        if (eStructuralFeature2EStructuralFeatureMap == null)
+        {
+            eStructuralFeature2EStructuralFeatureMap = new EcoreEMap<EStructuralFeature,EStructuralFeature>(Ecore2EcorePackage.Literals.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY, EStructuralFeature2EStructuralFeatureMapEntryImpl.class, this, Ecore2EcorePackage.MAPPING__ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP);
+        }
+        return eStructuralFeature2EStructuralFeatureMap;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING__ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP:
+                return ((InternalEList<?>)getEStructuralFeature2EStructuralFeatureMap()).basicRemove(otherEnd, msgs);
+        }
+        return super.eInverseRemove(otherEnd, featureID, msgs);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING__TARGET_ECLASS:
+                if (resolve) return getTargetEClass();
+                return basicGetTargetEClass();
+            case Ecore2EcorePackage.MAPPING__ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP:
+                if (coreType) return getEStructuralFeature2EStructuralFeatureMap();
+                else return getEStructuralFeature2EStructuralFeatureMap().map();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eSet(int featureID, Object newValue) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING__TARGET_ECLASS:
+                setTargetEClass((EClass)newValue);
+                return;
+            case Ecore2EcorePackage.MAPPING__ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP:
+                ((EStructuralFeature.Setting)getEStructuralFeature2EStructuralFeatureMap()).set(newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eUnset(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING__TARGET_ECLASS:
+                setTargetEClass((EClass)null);
+                return;
+            case Ecore2EcorePackage.MAPPING__ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP:
+                getEStructuralFeature2EStructuralFeatureMap().clear();
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public boolean eIsSet(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING__TARGET_ECLASS:
+                return targetEClass != null;
+            case Ecore2EcorePackage.MAPPING__ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP:
+                return eStructuralFeature2EStructuralFeatureMap != null && !eStructuralFeature2EStructuralFeatureMap.isEmpty();
+        }
+        return super.eIsSet(featureID);
+    }
+
+} //MappingImpl

Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingRootImpl.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingRootImpl.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingRootImpl.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingRootImpl.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,171 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.impl;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage;
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+import org.apache.tuscany.model.emf.ecore2ecore.MappingRoot;
+
+import org.eclipse.emf.common.notify.NotificationChain;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+import org.eclipse.emf.ecore.InternalEObject;
+
+import org.eclipse.emf.ecore.impl.EObjectImpl;
+
+import org.eclipse.emf.ecore.util.EcoreEMap;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+/**
+ * <!-- begin-user-doc -->
+ * An implementation of the model object '<em><b>Mapping Root</b></em>'.
+ * <!-- end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ *   <li>{@link org.apache.tuscany.model.emf.ecore2ecore.impl.MappingRootImpl#getEClass2MappingMap <em>EClass2 Mapping Map</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class MappingRootImpl extends EObjectImpl implements MappingRoot {
+	/**
+     * The cached value of the '{@link #getEClass2MappingMap() <em>EClass2 Mapping Map</em>}' map.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @see #getEClass2MappingMap()
+     * @generated
+     * @ordered
+     */
+	protected EMap<EClass, Mapping> eClass2MappingMap;
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected MappingRootImpl() {
+        super();
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	protected EClass eStaticClass() {
+        return Ecore2EcorePackage.Literals.MAPPING_ROOT;
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public EMap<EClass, Mapping> getEClass2MappingMap() {
+        if (eClass2MappingMap == null)
+        {
+            eClass2MappingMap = new EcoreEMap<EClass,Mapping>(Ecore2EcorePackage.Literals.ECLASS2_MAPPING_MAP_ENTRY, EClass2MappingMapEntryImpl.class, this, Ecore2EcorePackage.MAPPING_ROOT__ECLASS2_MAPPING_MAP);
+        }
+        return eClass2MappingMap;
+    }
+
+	/**
+	* <!-- begin-user-doc -->
+	* <!-- end-user-doc -->
+	* @generated NOT
+	*/
+	public Mapping getTargetMapping(EObject sourceEObject) {
+		EClass sourceEClass = sourceEObject.eClass();
+		return getEClass2MappingMap().get(sourceEClass);
+	}
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING_ROOT__ECLASS2_MAPPING_MAP:
+                return ((InternalEList<?>)getEClass2MappingMap()).basicRemove(otherEnd, msgs);
+        }
+        return super.eInverseRemove(otherEnd, featureID, msgs);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public Object eGet(int featureID, boolean resolve, boolean coreType) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING_ROOT__ECLASS2_MAPPING_MAP:
+                if (coreType) return getEClass2MappingMap();
+                else return getEClass2MappingMap().map();
+        }
+        return super.eGet(featureID, resolve, coreType);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eSet(int featureID, Object newValue) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING_ROOT__ECLASS2_MAPPING_MAP:
+                ((EStructuralFeature.Setting)getEClass2MappingMap()).set(newValue);
+                return;
+        }
+        super.eSet(featureID, newValue);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public void eUnset(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING_ROOT__ECLASS2_MAPPING_MAP:
+                getEClass2MappingMap().clear();
+                return;
+        }
+        super.eUnset(featureID);
+    }
+
+	/**
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	@Override
+	public boolean eIsSet(int featureID) {
+        switch (featureID)
+        {
+            case Ecore2EcorePackage.MAPPING_ROOT__ECLASS2_MAPPING_MAP:
+                return eClass2MappingMap != null && !eClass2MappingMap.isEmpty();
+        }
+        return super.eIsSet(featureID);
+    }
+
+} //MappingRootImpl

Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,229 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.util;
+
+import java.util.Map;
+
+import org.apache.tuscany.model.emf.ecore2ecore.*;
+
+import org.eclipse.emf.common.notify.Adapter;
+import org.eclipse.emf.common.notify.Notifier;
+
+import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Adapter Factory</b> for the model.
+ * It provides an adapter <code>createXXX</code> method for each class of the model.
+ * <!-- end-user-doc -->
+ * @see org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage
+ * @generated
+ */
+public class Ecore2EcoreAdapterFactory extends AdapterFactoryImpl {
+	/**
+     * The cached model package.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected static Ecore2EcorePackage modelPackage;
+
+	/**
+     * Creates an instance of the adapter factory.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Ecore2EcoreAdapterFactory() {
+        if (modelPackage == null)
+        {
+            modelPackage = Ecore2EcorePackage.eINSTANCE;
+        }
+    }
+
+	/**
+     * Returns whether this factory is applicable for the type of the object.
+     * <!-- begin-user-doc -->
+	 * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
+	 * <!-- end-user-doc -->
+     * @return whether this factory is applicable for the type of the object.
+     * @generated
+     */
+	@Override
+	public boolean isFactoryForType(Object object) {
+        if (object == modelPackage)
+        {
+            return true;
+        }
+        if (object instanceof EObject)
+        {
+            return ((EObject)object).eClass().getEPackage() == modelPackage;
+        }
+        return false;
+    }
+
+	/**
+     * The switch the delegates to the <code>createXXX</code> methods.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected Ecore2EcoreSwitch<Adapter> modelSwitch =
+		new Ecore2EcoreSwitch<Adapter>()
+        {
+            @Override
+            public Adapter caseMapping(Mapping object)
+            {
+                return createMappingAdapter();
+            }
+            @Override
+            public Adapter caseMappingRoot(MappingRoot object)
+            {
+                return createMappingRootAdapter();
+            }
+            @Override
+            public Adapter caseDirectionBuffer(DirectionBuffer object)
+            {
+                return createDirectionBufferAdapter();
+            }
+            @Override
+            public Adapter caseEStructuralFeature2EStructuralFeatureMapEntry(Map.Entry<EStructuralFeature, EStructuralFeature> object)
+            {
+                return createEStructuralFeature2EStructuralFeatureMapEntryAdapter();
+            }
+            @Override
+            public Adapter caseEClass2MappingMapEntry(Map.Entry<EClass, Mapping> object)
+            {
+                return createEClass2MappingMapEntryAdapter();
+            }
+            @Override
+            public Adapter caseEPackageNamespace2MappingRootMap(Map.Entry<String, Mapping> object)
+            {
+                return createEPackageNamespace2MappingRootMapAdapter();
+            }
+            @Override
+            public Adapter defaultCase(EObject object)
+            {
+                return createEObjectAdapter();
+            }
+        };
+
+	/**
+     * Creates an adapter for the <code>target</code>.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @param target the object to adapt.
+     * @return the adapter for the <code>target</code>.
+     * @generated
+     */
+	@Override
+	public Adapter createAdapter(Notifier target) {
+        return modelSwitch.doSwitch((EObject)target);
+    }
+
+
+	/**
+     * Creates a new adapter for an object of class '{@link org.apache.tuscany.model.emf.ecore2ecore.Mapping <em>Mapping</em>}'.
+     * <!-- begin-user-doc -->
+	 * This default implementation returns null so that we can easily ignore cases;
+	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
+	 * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.tuscany.model.emf.ecore2ecore.Mapping
+     * @generated
+     */
+	public Adapter createMappingAdapter() {
+        return null;
+    }
+
+	/**
+     * Creates a new adapter for an object of class '{@link org.apache.tuscany.model.emf.ecore2ecore.MappingRoot <em>Mapping Root</em>}'.
+     * <!-- begin-user-doc -->
+	 * This default implementation returns null so that we can easily ignore cases;
+	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
+	 * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.tuscany.model.emf.ecore2ecore.MappingRoot
+     * @generated
+     */
+	public Adapter createMappingRootAdapter() {
+        return null;
+    }
+
+	/**
+     * Creates a new adapter for an object of class '{@link org.apache.tuscany.model.emf.ecore2ecore.DirectionBuffer <em>Direction Buffer</em>}'.
+     * <!-- begin-user-doc -->
+	 * This default implementation returns null so that we can easily ignore cases;
+	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
+	 * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see org.apache.tuscany.model.emf.ecore2ecore.DirectionBuffer
+     * @generated
+     */
+	public Adapter createDirectionBufferAdapter() {
+        return null;
+    }
+
+	/**
+     * Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>EStructural Feature2 EStructural Feature Map Entry</em>}'.
+     * <!-- begin-user-doc -->
+	 * This default implementation returns null so that we can easily ignore cases;
+	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
+	 * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see java.util.Map.Entry
+     * @generated
+     */
+	public Adapter createEStructuralFeature2EStructuralFeatureMapEntryAdapter() {
+        return null;
+    }
+
+	/**
+     * Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>EClass2 Mapping Map Entry</em>}'.
+     * <!-- begin-user-doc -->
+	 * This default implementation returns null so that we can easily ignore cases;
+	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
+	 * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see java.util.Map.Entry
+     * @generated
+     */
+	public Adapter createEClass2MappingMapEntryAdapter() {
+        return null;
+    }
+
+	/**
+     * Creates a new adapter for an object of class '{@link java.util.Map.Entry <em>EPackage Namespace2 Mapping Root Map</em>}'.
+     * <!-- begin-user-doc -->
+	 * This default implementation returns null so that we can easily ignore cases;
+	 * it's useful to ignore a case when inheritance will catch all the cases anyway.
+	 * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @see java.util.Map.Entry
+     * @generated
+     */
+	public Adapter createEPackageNamespace2MappingRootMapAdapter() {
+        return null;
+    }
+
+	/**
+     * Creates a new adapter for the default case.
+     * <!-- begin-user-doc -->
+	 * This default implementation returns null.
+	 * <!-- end-user-doc -->
+     * @return the new adapter.
+     * @generated
+     */
+	public Adapter createEObjectAdapter() {
+        return null;
+    }
+
+} //Ecore2EcoreAdapterFactory

Added: directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.java?view=auto&rev=519227
==============================================================================
--- directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.java (added)
+++ directory/sandbox/oersoy/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.java Fri Mar 16 20:14:22 2007
@@ -0,0 +1,247 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.util;
+
+import java.util.List;
+import java.util.Map;
+
+import org.apache.tuscany.model.emf.ecore2ecore.*;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+/**
+ * <!-- begin-user-doc -->
+ * The <b>Switch</b> for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ * <!-- end-user-doc -->
+ * @see org.apache.tuscany.model.emf.ecore2ecore.Ecore2EcorePackage
+ * @generated
+ */
+public class Ecore2EcoreSwitch<T> {
+	/**
+     * The cached model package
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	protected static Ecore2EcorePackage modelPackage;
+
+	/**
+     * Creates an instance of the switch.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @generated
+     */
+	public Ecore2EcoreSwitch() {
+        if (modelPackage == null)
+        {
+            modelPackage = Ecore2EcorePackage.eINSTANCE;
+        }
+    }
+
+	/**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+	public T doSwitch(EObject theEObject) {
+        return doSwitch(theEObject.eClass(), theEObject);
+    }
+
+	/**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+	protected T doSwitch(EClass theEClass, EObject theEObject) {
+        if (theEClass.eContainer() == modelPackage)
+        {
+            return doSwitch(theEClass.getClassifierID(), theEObject);
+        }
+        else
+        {
+            List<EClass> eSuperTypes = theEClass.getESuperTypes();
+            return
+                eSuperTypes.isEmpty() ?
+                    defaultCase(theEObject) :
+                    doSwitch(eSuperTypes.get(0), theEObject);
+        }
+    }
+
+	/**
+     * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+     * <!-- begin-user-doc -->
+	 * <!-- end-user-doc -->
+     * @return the first non-null result returned by a <code>caseXXX</code> call.
+     * @generated
+     */
+	protected T doSwitch(int classifierID, EObject theEObject) {
+        switch (classifierID)
+        {
+            case Ecore2EcorePackage.MAPPING:
+            {
+                Mapping mapping = (Mapping)theEObject;
+                T result = caseMapping(mapping);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case Ecore2EcorePackage.MAPPING_ROOT:
+            {
+                MappingRoot mappingRoot = (MappingRoot)theEObject;
+                T result = caseMappingRoot(mappingRoot);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case Ecore2EcorePackage.DIRECTION_BUFFER:
+            {
+                DirectionBuffer directionBuffer = (DirectionBuffer)theEObject;
+                T result = caseDirectionBuffer(directionBuffer);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case Ecore2EcorePackage.ESTRUCTURAL_FEATURE2_ESTRUCTURAL_FEATURE_MAP_ENTRY:
+            {
+                @SuppressWarnings("unchecked") Map.Entry<EStructuralFeature, EStructuralFeature> eStructuralFeature2EStructuralFeatureMapEntry = (Map.Entry<EStructuralFeature, EStructuralFeature>)theEObject;
+                T result = caseEStructuralFeature2EStructuralFeatureMapEntry(eStructuralFeature2EStructuralFeatureMapEntry);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case Ecore2EcorePackage.ECLASS2_MAPPING_MAP_ENTRY:
+            {
+                @SuppressWarnings("unchecked") Map.Entry<EClass, Mapping> eClass2MappingMapEntry = (Map.Entry<EClass, Mapping>)theEObject;
+                T result = caseEClass2MappingMapEntry(eClass2MappingMapEntry);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            case Ecore2EcorePackage.EPACKAGE_NAMESPACE2_MAPPING_ROOT_MAP:
+            {
+                @SuppressWarnings("unchecked") Map.Entry<String, Mapping> ePackageNamespace2MappingRootMap = (Map.Entry<String, Mapping>)theEObject;
+                T result = caseEPackageNamespace2MappingRootMap(ePackageNamespace2MappingRootMap);
+                if (result == null) result = defaultCase(theEObject);
+                return result;
+            }
+            default: return defaultCase(theEObject);
+        }
+    }
+
+	/**
+     * Returns the result of interpretting the object as an instance of '<em>Mapping</em>'.
+     * <!-- begin-user-doc -->
+	 * This implementation returns null;
+	 * returning a non-null result will terminate the switch.
+	 * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Mapping</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+	public T caseMapping(Mapping object) {
+        return null;
+    }
+
+	/**
+     * Returns the result of interpretting the object as an instance of '<em>Mapping Root</em>'.
+     * <!-- begin-user-doc -->
+	 * This implementation returns null;
+	 * returning a non-null result will terminate the switch.
+	 * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Mapping Root</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+	public T caseMappingRoot(MappingRoot object) {
+        return null;
+    }
+
+	/**
+     * Returns the result of interpretting the object as an instance of '<em>Direction Buffer</em>'.
+     * <!-- begin-user-doc -->
+	 * This implementation returns null;
+	 * returning a non-null result will terminate the switch.
+	 * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>Direction Buffer</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+	public T caseDirectionBuffer(DirectionBuffer object) {
+        return null;
+    }
+
+	/**
+     * Returns the result of interpretting the object as an instance of '<em>EStructural Feature2 EStructural Feature Map Entry</em>'.
+     * <!-- begin-user-doc -->
+	 * This implementation returns null;
+	 * returning a non-null result will terminate the switch.
+	 * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>EStructural Feature2 EStructural Feature Map Entry</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+	public T caseEStructuralFeature2EStructuralFeatureMapEntry(Map.Entry<EStructuralFeature, EStructuralFeature> object) {
+        return null;
+    }
+
+	/**
+     * Returns the result of interpretting the object as an instance of '<em>EClass2 Mapping Map Entry</em>'.
+     * <!-- begin-user-doc -->
+	 * This implementation returns null;
+	 * returning a non-null result will terminate the switch.
+	 * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>EClass2 Mapping Map Entry</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+	public T caseEClass2MappingMapEntry(Map.Entry<EClass, Mapping> object) {
+        return null;
+    }
+
+	/**
+     * Returns the result of interpretting the object as an instance of '<em>EPackage Namespace2 Mapping Root Map</em>'.
+     * <!-- begin-user-doc -->
+	 * This implementation returns null;
+	 * returning a non-null result will terminate the switch.
+	 * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>EPackage Namespace2 Mapping Root Map</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+     * @generated
+     */
+	public T caseEPackageNamespace2MappingRootMap(Map.Entry<String, Mapping> object) {
+        return null;
+    }
+
+	/**
+     * Returns the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * <!-- begin-user-doc -->
+	 * This implementation returns null;
+	 * returning a non-null result will terminate the switch, but this is the last case anyway.
+	 * <!-- end-user-doc -->
+     * @param object the target of the switch.
+     * @return the result of interpretting the object as an instance of '<em>EObject</em>'.
+     * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+     * @generated
+     */
+	public T defaultCase(EObject object) {
+        return null;
+    }
+
+} //Ecore2EcoreSwitch



Mime
View raw message