directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oer...@apache.org
Subject svn commit: r519399 [3/4] - in /directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent: ./ ecore2ecore.model.ecore/ ecore2ecore.model.ecore/.settings/ ecore2ecore.model.ecore/model/ ecore2ecore.model.ecore/src/ ecore2ecore.model.ecore/src/ma...
Date Sat, 17 Mar 2007 18:27:51 GMT
Added: directory/sandbox/oersoy/rpm.factory.all/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/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.java Sat Mar 17 11:27:44 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

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/DirectionBufferValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/DirectionBufferValidator.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/DirectionBufferValidator.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/DirectionBufferValidator.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,23 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.validation;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+
+import org.eclipse.emf.common.util.EMap;
+
+/**
+ * A sample validator interface for {@link org.apache.tuscany.model.emf.ecore2ecore.DirectionBuffer}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface DirectionBufferValidator {
+	boolean validate();
+
+	boolean validateEPackageNamespace2MappingRootMap(EMap<String, Mapping> value);
+}

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EClass2MappingMapEntryValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EClass2MappingMapEntryValidator.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EClass2MappingMapEntryValidator.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EClass2MappingMapEntryValidator.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,24 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.validation;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * A sample validator interface for {@link java.util.Map.Entry}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface EClass2MappingMapEntryValidator {
+	boolean validate();
+
+	boolean validateTypedKey(EClass value);
+	boolean validateTypedValue(Mapping value);
+}

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EPackageNamespace2MappingRootMapValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EPackageNamespace2MappingRootMapValidator.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EPackageNamespace2MappingRootMapValidator.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EPackageNamespace2MappingRootMapValidator.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,22 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.validation;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+
+/**
+ * A sample validator interface for {@link java.util.Map.Entry}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface EPackageNamespace2MappingRootMapValidator {
+	boolean validate();
+
+	boolean validateTypedKey(String value);
+	boolean validateTypedValue(Mapping value);
+}

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EStructuralFeature2EStructuralFeatureMapEntryValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EStructuralFeature2EStructuralFeatureMapEntryValidator.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EStructuralFeature2EStructuralFeatureMapEntryValidator.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/EStructuralFeature2EStructuralFeatureMapEntryValidator.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,22 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.validation;
+
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+/**
+ * A sample validator interface for {@link java.util.Map.Entry}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface EStructuralFeature2EStructuralFeatureMapEntryValidator {
+	boolean validate();
+
+	boolean validateTypedKey(EStructuralFeature value);
+	boolean validateTypedValue(EStructuralFeature value);
+}

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingRootValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingRootValidator.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingRootValidator.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingRootValidator.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,25 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.validation;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * A sample validator interface for {@link org.apache.tuscany.model.emf.ecore2ecore.MappingRoot}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface MappingRootValidator {
+	boolean validate();
+
+	boolean validateEClass2MappingMap(EMap<EClass, Mapping> value);
+}

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingValidator.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingValidator.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingValidator.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/src/main/java/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingValidator.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,25 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id$
+ */
+package org.apache.tuscany.model.emf.ecore2ecore.validation;
+
+import org.eclipse.emf.common.util.EMap;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+/**
+ * A sample validator interface for {@link org.apache.tuscany.model.emf.ecore2ecore.Mapping}.
+ * This doesn't really do anything, and it's not a real EMF artifact.
+ * It was generated by the org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's code generator can be extended.
+ * This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+ */
+public interface MappingValidator {
+	boolean validate();
+
+	boolean validateTargetEClass(EClass value);
+	boolean validateEStructuralFeature2EStructuralFeatureMap(EMap<EStructuralFeature, EStructuralFeature> value);
+}

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/DirectionBuffer.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/DirectionBuffer.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/DirectionBuffer.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Ecore2EcoreFactory.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Ecore2EcoreFactory.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Ecore2EcoreFactory.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Ecore2EcorePackage$Literals.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Ecore2EcorePackage%24Literals.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Ecore2EcorePackage$Literals.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Ecore2EcorePackage.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Ecore2EcorePackage.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Ecore2EcorePackage.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Mapping.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Mapping.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/Mapping.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/MappingRoot.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/MappingRoot.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/MappingRoot.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/DirectionBufferImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/DirectionBufferImpl.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/DirectionBufferImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/EClass2MappingMapEntryImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/EClass2MappingMapEntryImpl.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/EClass2MappingMapEntryImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/EPackageNamespace2MappingRootMapImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/EPackageNamespace2MappingRootMapImpl.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/EPackageNamespace2MappingRootMapImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/EStructuralFeature2EStructuralFeatureMapEntryImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/EStructuralFeature2EStructuralFeatureMapEntryImpl.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/EStructuralFeature2EStructuralFeatureMapEntryImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcoreFactoryImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcoreFactoryImpl.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcoreFactoryImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcorePackageImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcorePackageImpl.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/Ecore2EcorePackageImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingImpl.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingRootImpl.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingRootImpl.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/impl/MappingRootImpl.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory$1.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory%241.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory$1.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreAdapterFactory.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/util/Ecore2EcoreSwitch.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/DirectionBufferValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/DirectionBufferValidator.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/DirectionBufferValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/EClass2MappingMapEntryValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/EClass2MappingMapEntryValidator.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/EClass2MappingMapEntryValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/EPackageNamespace2MappingRootMapValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/EPackageNamespace2MappingRootMapValidator.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/EPackageNamespace2MappingRootMapValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/EStructuralFeature2EStructuralFeatureMapEntryValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/EStructuralFeature2EStructuralFeatureMapEntryValidator.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/EStructuralFeature2EStructuralFeatureMapEntryValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingRootValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingRootValidator.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingRootValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingValidator.class
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingValidator.class?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/classes/org/apache/tuscany/model/emf/ecore2ecore/validation/MappingValidator.class
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/ecore2ecore.model-1.0-SNAPSHOT.jar
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/ecore2ecore.model-1.0-SNAPSHOT.jar?view=auto&rev=519399
==============================================================================
Binary file - no diff available.

Propchange: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/target/ecore2ecore.model-1.0-SNAPSHOT.jar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/text/description.txt
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/text/description.txt?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/text/description.txt (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.model/text/description.txt Sat Mar 17 11:27:44 2007
@@ -0,0 +1,31 @@
+Model Ecore2ecore
+
+This model description is not a real EMF artifact. It was generated by the
+org.eclipse.emf.examples.generator.validator plug-in to illustrate how EMF's
+code generator can be extended.
+This can be disabled with -vmargs -Dorg.eclipse.emf.examples.generator.validator=false.
+
+Package ecore2ecore <http://www.apache.org/maven.model.ecore2ecore>
+
+  Class Mapping
+    Reference targetEClass : EClass
+    Reference eStructuralFeature2EStructuralFeatureMap : EStructuralFeature2EStructuralFeatureMapEntry<<1..*>>
+
+  Class MappingRoot
+    Reference eClass2MappingMap : EClass2MappingMapEntry<<1..*>>
+    Operation getTargetMapping(EObject) : Mapping
+
+  Class DirectionBuffer
+    Reference ePackageNamespace2MappingRootMap : EPackageNamespace2MappingRootMap<<1..*>>
+
+  Class EStructuralFeature2EStructuralFeatureMapEntry
+    Reference key : EStructuralFeature
+    Reference value : EStructuralFeature
+
+  Class EClass2MappingMapEntry
+    Reference key : EClass
+    Reference value : Mapping
+
+  Class EPackageNamespace2MappingRootMap
+    Attribute key : EString
+    Reference value : Mapping

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.classpath
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.classpath?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.classpath (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.classpath Sat Mar 17 11:27:44 2007
@@ -0,0 +1,44 @@
+<classpath>
+  <classpathentry kind="src" path="src/main/java"/>
+  <classpathentry kind="src" path="src/test/java" output="target/test-classes"/>
+  <classpathentry kind="output" path="target/classes"/>
+  <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ecore2xml-ui/2.3.0-M4/mapping-ecore2xml-ui-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/importer/2.3.0-M4/importer-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-edit/2.3.0-M4/ecore-edit-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-xsd2ecore-editor/2.3.0-M4/mapping-xsd2ecore-editor-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/codegen/2.3.0-M4/codegen-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore/2.3.0-M4/ecore-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/junit/junit/3.8.1/junit-3.8.1.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/codegen-ecore-ui/2.3.0-M4/codegen-ecore-ui-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/importer-ecore/2.3.0-M4/importer-ecore-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/converter/2.3.0-M4/converter-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ecore2xml/2.3.0-M4/mapping-ecore2xml-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/importer-java/2.3.0-M4/importer-java-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/edit-ui/2.3.0-M4/edit-ui-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ui/2.3.0-M4/mapping-ui-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-xsd2ecore/2.3.0-M4/mapping-xsd2ecore-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ant/2.3.0-M4/ant-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-sdo/2.3.0-M4/ecore-sdo-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/exporter/2.3.0-M4/exporter-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/xsd/ecore-exporter/2.3.0-M4/ecore-exporter-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-sdo-edit/2.3.0-M4/ecore-sdo-edit-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/commonj-sdo/2.3.0-M4/commonj-sdo-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ecore2ecore-editor/2.3.0-M4/mapping-ecore2ecore-editor-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/common-ui/2.3.0-M4/common-ui-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-change/2.3.0-M4/ecore-change-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping/2.3.0-M4/mapping-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-xmi/2.3.0-M4/ecore-xmi-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/ecore-change-edit/2.3.0-M4/ecore-change-edit-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/xsd/edit/2.3.0-M4/edit-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/apache/maven/emf/ecore2ecore.model/1.0-SNAPSHOT/ecore2ecore.model-1.0-SNAPSHOT.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/common/2.3.0-M4/common-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/edit/2.3.0-M4/edit-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/emf/2.3.0-M4/emf-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/xsd/xsd/2.3.0-M4/xsd-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/mapping-ecore2ecore/2.3.0-M4/mapping-ecore2ecore-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/xsd/ecore-importer/2.3.0-M4/ecore-importer-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/importer-rose/2.3.0-M4/importer-rose-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/codegen-ui/2.3.0-M4/codegen-ui-2.3.0-M4.jar"/>
+  <classpathentry kind="var" path="M2_REPO/org/eclipse/emf/codegen-ecore/2.3.0-M4/codegen-ecore-2.3.0-M4.jar"/>
+</classpath>
\ No newline at end of file

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.project
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.project?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.project (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.project Sat Mar 17 11:27:44 2007
@@ -0,0 +1,14 @@
+<projectDescription>
+  <name>ecore2ecore.processor</name>
+  <comment/>
+  <projects/>
+  <buildSpec>
+    <buildCommand>
+      <name>org.eclipse.jdt.core.javabuilder</name>
+      <arguments/>
+    </buildCommand>
+  </buildSpec>
+  <natures>
+    <nature>org.eclipse.jdt.core.javanature</nature>
+  </natures>
+</projectDescription>
\ No newline at end of file

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.settings/org.eclipse.jdt.core.prefs
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.settings/org.eclipse.jdt.core.prefs?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.settings/org.eclipse.jdt.core.prefs (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/.settings/org.eclipse.jdt.core.prefs Sat Mar 17 11:27:44 2007
@@ -0,0 +1,5 @@
+#Thu Feb 01 19:18:15 CST 2007
+org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
+eclipse.preferences.version=1
+org.eclipse.jdt.core.compiler.source=1.5
+org.eclipse.jdt.core.compiler.compliance=1.5

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/pom.xml
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/pom.xml?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/pom.xml (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/pom.xml Sat Mar 17 11:27:44 2007
@@ -0,0 +1,182 @@
+<?xml version="1.0"?>
+<project>
+   <parent>
+      <artifactId>ecore2ecore.model.parent</artifactId>
+      <groupId>org.apache.tuscany.emf</groupId>
+      <version>1.0-SNAPSHOT</version>
+   </parent>
+   <modelVersion>4.0.0</modelVersion>
+   <groupId>org.apache.tuscany.emf</groupId>
+   <artifactId>ecore2ecore.processor</artifactId>
+   <name></name>
+   <version>1.0-SNAPSHOT</version>
+   <url>http://pyramidetechnologies.com/model/archetype</url>
+   <build>
+      <plugins>
+         <plugin>
+            <artifactId>maven-compiler-plugin</artifactId>
+            <configuration>
+               <source>1.5</source>
+               <target>1.5</target>
+            </configuration>
+         </plugin>
+      </plugins>
+   </build>
+   <dependencies>
+
+      <dependency>
+         <groupId>org.apache.maven.emf</groupId>
+         <artifactId>ecore2ecore.model</artifactId>
+         <version>1.0-SNAPSHOT</version>
+      </dependency>
+
+      <dependency>
+         <groupId>junit</groupId>
+         <artifactId>junit</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>ant</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>codegen</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>codegen-ecore</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>codegen-ecore-ui</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>codegen-ui</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>common</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>commonj-sdo</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>common-ui</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>converter</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>ecore</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>ecore-change</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>ecore-change-edit</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>ecore-edit</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>ecore-sdo</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>ecore-sdo-edit</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>ecore-xmi</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>edit</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>edit-ui</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>emf</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>exporter</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>importer</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>importer-ecore</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>importer-java</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>importer-rose</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>mapping</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>mapping-ecore2ecore</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>mapping-ecore2ecore-editor</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>mapping-ecore2xml</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>mapping-ecore2xml-ui</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>mapping-ui</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>mapping-xsd2ecore</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.emf</groupId>
+         <artifactId>mapping-xsd2ecore-editor</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.xsd</groupId>
+         <artifactId>ecore-exporter</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.xsd</groupId>
+         <artifactId>ecore-importer</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.xsd</groupId>
+         <artifactId>edit</artifactId>
+      </dependency>
+      <dependency>
+         <groupId>org.eclipse.xsd</groupId>
+         <artifactId>xsd</artifactId>
+      </dependency>
+   </dependencies>
+</project>
\ No newline at end of file

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/main/java/org/apache/tuscany/model/emf/processor/ecore2ecore/helpers/impl/Ecore2EcoreProcessorHelper.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/main/java/org/apache/tuscany/model/emf/processor/ecore2ecore/helpers/impl/Ecore2EcoreProcessorHelper.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/main/java/org/apache/tuscany/model/emf/processor/ecore2ecore/helpers/impl/Ecore2EcoreProcessorHelper.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/main/java/org/apache/tuscany/model/emf/processor/ecore2ecore/helpers/impl/Ecore2EcoreProcessorHelper.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,202 @@
+package org.apache.tuscany.model.emf.processor.ecore2ecore.helpers.impl;
+
+import java.util.Iterator;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+import org.apache.tuscany.model.emf.ecore2ecore.MappingRoot;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.common.util.EMap;
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+/**
+ * <p>Contains helper methods for creating another model instance
+ * using a source model instance and an Ecore2Ecore MappingRoot.</p>
+ */
+
+public class Ecore2EcoreProcessorHelper {
+
+    /**
+     * <p>Sets the targetEAttribute on the targetEObject
+     * to the value contained in the sourceEAttribute on the sourceEObject.</p>
+     * 
+     * @param sourceEObject the object containing the value of the sourceEAttribute.
+     * @param eFeature2EFeatureMap a map containing the target EAttributes for the corresponding source EAttributes.
+     * @param targetEObject the object containing targetEAttribute to be set.
+     * @param sourceEAttribute the targetEAttribute.
+     */
+	public static void setTargetEAttribute(
+			EMap<EStructuralFeature, EStructuralFeature> eFeature2EFeatureMap,
+			EAttribute targetEAttribute,
+			EObject sourceEObject,
+			EObject targetEObject)
+	{
+        EAttribute sourceEAttribute			= 
+            (EAttribute) eFeature2EFeatureMap.get(targetEAttribute);
+        
+		if (sourceEAttribute != null)
+		{	
+			Object sourceEAttributeValue	= sourceEObject.eGet(sourceEAttribute);
+			targetEObject.eSet(targetEAttribute, sourceEAttributeValue);
+		}
+	}
+
+    /**
+     * <p>Sets targetEAttributes on the targetEObject
+     * to values contained by sourceEAttributes on the sourceEObject</p>.
+     * 
+     * @param sourceEObject the object containing the value of the sourceEAttribute
+     * @param eFeature2EFeatureMap a map containing the target EAttributes for the corresponding source EAttributes
+     * @param targetEObject the object containing the targetEAttributes that the sourceEAttribute values are being mapped to.
+     */
+	public static void setTargetEAttributes(
+			EMap<EStructuralFeature, EStructuralFeature> eFeature2EFeatureMap, 
+			EObject sourceEObject,
+			EObject targetEObject)
+	{
+		
+		EList<EAttribute> targetEAttributes 			= 
+			targetEObject.eClass().getEAllAttributes();
+        
+		Iterator<EAttribute> targetEAttributesIterator	= 
+			targetEAttributes.iterator();
+		
+		while(targetEAttributesIterator.hasNext())
+		{
+			EAttribute targetEAttribute			= targetEAttributesIterator.next();
+			
+			setTargetEAttribute(
+					eFeature2EFeatureMap,
+					targetEAttribute,
+					sourceEObject,
+					targetEObject);
+		}
+	}
+   
+    /**
+     * Sets the target EReferences.
+     * 
+     * @param sourceEObject the source E object
+     * @param mappingRoot the mapping root
+     * @param targetEObject the target E object
+     */
+    public static void setTargetEReferences(
+        MappingRoot mappingRoot,
+        EObject sourceEObject,
+        EObject targetEObject)
+    {
+        EList<EReference> targetEReferences             = 
+            targetEObject.eClass().getEAllReferences();
+        
+        Iterator<EReference> targetEReferenceIterator   = 
+            targetEReferences.iterator();
+        
+        Mapping mapping = mappingRoot.getTargetMapping( sourceEObject );
+
+        EMap<EStructuralFeature, EStructuralFeature> eFeature2FeatureMap = 
+            mapping.getEStructuralFeature2EStructuralFeatureMap();
+        
+        while (targetEReferenceIterator.hasNext())
+        {
+            EReference targetEReference = targetEReferenceIterator.next();
+            
+            EReference sourceEReference = 
+                (EReference) eFeature2FeatureMap.get( targetEReference );
+            
+            if (sourceEReference != null)
+            {
+                if (!sourceEReference.isMany())
+                {
+                    setTargetEReferencesHelper(
+                        mappingRoot,
+                        sourceEObject,
+                        targetEObject,
+                        sourceEReference,
+                        targetEReference);
+                }
+                else
+                {
+                    EList<EObject> sourceEReferenceInstances = 
+                        (EList<EObject>) sourceEObject.eGet(sourceEReference);
+                    
+                    Iterator<EObject> sourceEReferenceInstanceIterator = 
+                        sourceEReferenceInstances.iterator();
+                    
+                    while (sourceEReferenceInstanceIterator.hasNext())
+                    {
+                        EObject sourceEReferenceInstance = 
+                            sourceEReferenceInstanceIterator.next();
+
+                        if (sourceEReferenceInstance != null)
+                        {
+                            setTargetEReferencesHelper(
+                                mappingRoot,
+                                sourceEObject,
+                                targetEObject,
+                                sourceEReference,
+                                targetEReference);
+                         }
+                    }
+                }
+            }
+         }
+    }
+
+    /**
+     * Sets the target E references helper.
+     * 
+     * @param sourceEObject the source E object
+     * @param mappingRoot the mapping root
+     * @param sourceEReferenceInstance the source E reference instance
+     * @param targetEObject the target E object
+     */
+    public static void setTargetEReferencesHelper(
+        MappingRoot mappingRoot,
+        EObject sourceEObject,
+        EObject targetEObject,
+        EReference sourceEReference,
+        EReference targetEReference)
+
+    {
+        EObject sourceEReferenceInstance = 
+            (EObject) sourceEObject.eGet( sourceEReference );
+
+        if (sourceEReferenceInstance != null)
+        {
+            Mapping mapping = 
+                mappingRoot.getTargetMapping(sourceEReferenceInstance);
+            
+            EClass targetEReferenceEType =  
+                (EClass) mapping.getTargetEClass();
+        
+            EPackage targetEPackage = targetEReferenceEType.getEPackage();
+            EFactory targetEFactory = targetEPackage.getEFactoryInstance();
+            
+            EObject targetEReferenceInstance = 
+                targetEFactory.create(targetEReferenceEType);
+            
+            
+            EMap<EStructuralFeature, EStructuralFeature> eFeature2FeatureMap = 
+                mapping.getEStructuralFeature2EStructuralFeatureMap();
+
+            setTargetEAttributes(
+                    eFeature2FeatureMap,
+                    sourceEReferenceInstance, 
+                    targetEReferenceInstance);
+            
+            targetEObject.eSet(targetEReference, targetEReferenceInstance);
+            
+            setTargetEReferences(
+                    mappingRoot,
+                    sourceEReferenceInstance,
+                    targetEReferenceInstance);
+        }
+    }
+}
+
+    
\ No newline at end of file

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/main/java/org/apache/tuscany/model/emf/processor/ecore2ecore/impl/Ecore2EcoreProcessor.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/main/java/org/apache/tuscany/model/emf/processor/ecore2ecore/impl/Ecore2EcoreProcessor.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/main/java/org/apache/tuscany/model/emf/processor/ecore2ecore/impl/Ecore2EcoreProcessor.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/main/java/org/apache/tuscany/model/emf/processor/ecore2ecore/impl/Ecore2EcoreProcessor.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,63 @@
+package org.apache.tuscany.model.emf.processor.ecore2ecore.impl;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+import org.apache.tuscany.model.emf.ecore2ecore.MappingRoot;
+import org.apache.tuscany.model.emf.processor.ecore2ecore.helpers.impl.Ecore2EcoreProcessorHelper;
+import org.eclipse.emf.common.util.EMap;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EFactory;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EStructuralFeature;
+
+/**
+ * <p>
+ * Creates a target EObject based on a source EObject
+ * and a MappingRoot.
+ * </p>
+ */
+public class Ecore2EcoreProcessor {
+
+    /**
+     * <p>
+     * Sets the targetEAttribute on the targetEObject
+     * to the value contained in the sourceEAttribute on the sourceEObject.
+     * </p>
+     *
+     * @param MappingRoot contains the mapping information for creating the target model
+     * @param sourceEObject the object containing the value of the sourceEAttribute.
+     * 
+     * TODO //Add capability to look up already created EObjects.
+     * This is needed when mapping 2 or more sourceEObjects to 1 targetEObject
+     * 
+     * TODO Add ability to select an eObject from a list on a multiplicity many source feature
+     * and map features of the selected EObject to the targetEObject 
+     */
+	public static EObject execute(EObject sourceEObject, MappingRoot mappingRoot)
+	{
+		Mapping mapping = mappingRoot.getTargetMapping(sourceEObject);
+		
+		EMap<EStructuralFeature, EStructuralFeature> eFeature2EFeatureMap =
+			mapping.getEStructuralFeature2EStructuralFeatureMap();
+	
+		EClass targetEClass		= mapping.getTargetEClass();
+		
+		EPackage targetEPackage = targetEClass.getEPackage();
+		
+		EFactory targetEFactory	= targetEPackage.getEFactoryInstance();
+		
+		EObject targetEObject	= targetEFactory.create(targetEClass);
+		
+		Ecore2EcoreProcessorHelper.setTargetEAttributes(
+				eFeature2EFeatureMap,
+				sourceEObject,
+				targetEObject);
+		
+		Ecore2EcoreProcessorHelper.setTargetEReferences(
+				mappingRoot,
+				sourceEObject,
+				targetEObject);
+
+		return targetEObject;
+	}
+}

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/test/java/org/apache/tuscany/model/emf/processor/ecore2ecore/tests/Ecore2EcoreProcessorHelperTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/test/java/org/apache/tuscany/model/emf/processor/ecore2ecore/tests/Ecore2EcoreProcessorHelperTest.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/test/java/org/apache/tuscany/model/emf/processor/ecore2ecore/tests/Ecore2EcoreProcessorHelperTest.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/test/java/org/apache/tuscany/model/emf/processor/ecore2ecore/tests/Ecore2EcoreProcessorHelperTest.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,163 @@
+package org.apache.tuscany.model.emf.processor.ecore2ecore.tests;
+
+import org.apache.tuscany.model.emf.ecore2ecore.Mapping;
+import org.apache.tuscany.model.emf.ecore2ecore.MappingRoot;
+import org.apache.tuscany.model.emf.processor.ecore2ecore.helpers.impl.Ecore2EcoreProcessorHelper;
+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 junit.framework.TestCase;
+
+public class Ecore2EcoreProcessorHelperTest 
+extends TestCase 
+implements TestHelperConstants 
+	
+{
+	private EClass car2EClass		= null;
+	
+	private EObject car1Instance	= null;
+	private EObject car2Instance	= null;
+	
+	private	MappingRoot mappingRoot = null; 
+
+	private TestHelper testHelper = null;
+	
+	protected void setUp() throws Exception 
+	{
+		testHelper = new TestHelper();
+		
+		car2EClass = testHelper.getCar2EClass();
+
+		car1Instance = 
+			testHelper.getCar1Instance();
+		
+		car2Instance = 
+			testHelper.getManufacturer2EFactory().create(car2EClass);
+		
+		mappingRoot = 
+			testHelper.getManufacturer1ToManufacturer2MappingRoot();
+	}
+    
+	public void testSetEAttribute()
+	{
+		Mapping mapping = mappingRoot.getTargetMapping(car1Instance);
+		
+		EMap<EStructuralFeature, EStructuralFeature> eFeature2EFeatureMap =
+			mapping.getEStructuralFeature2EStructuralFeatureMap();
+		
+		assertTrue(car2Instance.eGet(testHelper.getCar2NameEAttribute()) == null);
+		assertTrue(car2Instance.eGet(testHelper.getCar2MakeEAttribute()) == null);
+		
+		Ecore2EcoreProcessorHelper.setTargetEAttribute(
+				eFeature2EFeatureMap,
+				testHelper.getCar2NameEAttribute(),
+				car1Instance, 
+				car2Instance);
+        
+        	
+		assertTrue(car2Instance.eGet(
+				testHelper.getCar2NameEAttribute()) 
+				== 
+					CAR1_NAME_EATTRIBUTE_VALUE);
+
+        Ecore2EcoreProcessorHelper.setTargetEAttribute(
+				eFeature2EFeatureMap,
+				testHelper.getCar2MakeEAttribute(),
+				car1Instance, 
+				car2Instance);
+
+		assertTrue(car2Instance.eGet(
+				testHelper.getCar2MakeEAttribute()) 
+				== 
+					CAR1_MAKE_EATTRIBUTE_VALUE); 
+	}
+
+    public void testSetEAttributes()
+	{
+		Mapping mapping = mappingRoot.getTargetMapping(car1Instance);
+		
+		EMap<EStructuralFeature, EStructuralFeature> eFeature2EFeatureMap =
+			mapping.getEStructuralFeature2EStructuralFeatureMap();
+	
+		assertTrue(car2Instance.eGet(testHelper.getCar2NameEAttribute()) == null);
+		assertTrue(car2Instance.eGet(testHelper.getCar2MakeEAttribute()) == null);
+		
+		Ecore2EcoreProcessorHelper.setTargetEAttributes(
+				eFeature2EFeatureMap, 
+				car1Instance, 
+				car2Instance);
+		
+		assertTrue(car2Instance.eGet(
+				testHelper.getCar2NameEAttribute()) 
+				== 
+					CAR1_NAME_EATTRIBUTE_VALUE);
+		assertTrue(car2Instance.eGet(
+				testHelper.getCar2MakeEAttribute()) 
+				== 
+					CAR1_MAKE_EATTRIBUTE_VALUE);
+	}
+	
+	/*
+	 * Note that this is just an example of what is done in the processor
+	 * 
+	 * Initializing attributes on
+	 * manufacturer2Instance is not necessary,
+	 * because it does not have any EAttributes 
+	 */
+    
+	public void testSetEReferences()
+	{
+		EObject manufacturer1Instance	= 
+			testHelper.getManufacturer1Instance();
+		
+		EClass manufacturer2EClass		= 
+			testHelper.getManufacturer2EClass();
+		
+		EObject manufacturer2Instance	= 
+			testHelper.
+			getManufacturer2EFactory().
+			create(manufacturer2EClass);
+		
+		//Note just for show - see top comment
+		Mapping mapping = mappingRoot.getTargetMapping(manufacturer1Instance);
+		
+		EMap<EStructuralFeature, EStructuralFeature> eFeature2EFeatureMap =
+			mapping.getEStructuralFeature2EStructuralFeatureMap();
+
+		Ecore2EcoreProcessorHelper.setTargetEAttributes(
+				eFeature2EFeatureMap, 
+				manufacturer1Instance, 
+				manufacturer2Instance);
+		//Show's over.
+
+		assertTrue(manufacturer2Instance.eGet(
+				testHelper.getDealer2EReference())==null);
+
+		Ecore2EcoreProcessorHelper.setTargetEReferences(
+				mappingRoot, 
+				manufacturer1Instance, 
+				manufacturer2Instance);
+
+		EObject dealer2Instance = 
+			(EObject) manufacturer2Instance.eGet(testHelper.getDealer2EReference());
+		
+		assertTrue(dealer2Instance.eClass() == testHelper.getDealer2EClass());
+		
+		EObject car2Instance = 
+			(EObject) dealer2Instance.eGet(testHelper.getCar2EReference());
+		
+		assertTrue(car2Instance.eClass() == testHelper.getCar2EClass());
+		
+		Object carName = car2Instance.eGet(testHelper.getCar2NameEAttribute());
+		Object carMake = car2Instance.eGet(testHelper.getCar2MakeEAttribute());
+		
+		assertTrue(carName.toString() == CAR1_NAME_EATTRIBUTE_VALUE);
+		assertTrue(carMake.toString() == CAR1_MAKE_EATTRIBUTE_VALUE);
+	}
+
+    protected void tearDown() throws Exception {
+		super.tearDown();
+	}
+}

Added: directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/test/java/org/apache/tuscany/model/emf/processor/ecore2ecore/tests/Ecore2EcoreProcessorTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/test/java/org/apache/tuscany/model/emf/processor/ecore2ecore/tests/Ecore2EcoreProcessorTest.java?view=auto&rev=519399
==============================================================================
--- directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/test/java/org/apache/tuscany/model/emf/processor/ecore2ecore/tests/Ecore2EcoreProcessorTest.java (added)
+++ directory/sandbox/oersoy/rpm.factory.all/ecore2ecore.model.parent/ecore2ecore.processor/src/test/java/org/apache/tuscany/model/emf/processor/ecore2ecore/tests/Ecore2EcoreProcessorTest.java Sat Mar 17 11:27:44 2007
@@ -0,0 +1,74 @@
+package org.apache.tuscany.model.emf.processor.ecore2ecore.tests;
+
+import org.apache.tuscany.model.emf.ecore2ecore.MappingRoot;
+import org.apache.tuscany.model.emf.processor.ecore2ecore.impl.Ecore2EcoreProcessor;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import junit.framework.TestCase;
+
+public class Ecore2EcoreProcessorTest 
+extends TestCase 
+implements TestHelperConstants{
+
+	private EClass car1EClass		= null;
+	
+	private EObject car1Instance	= null;
+	
+	private	MappingRoot mappingRoot = null; 
+
+	private TestHelper testHelper = null;
+
+	protected void setUp() throws Exception 
+	{
+		testHelper = new TestHelper();
+		
+		car1EClass = testHelper.getCar1EClass();
+
+		car1Instance = 
+			testHelper.getManufacturer1EFactory().create(car1EClass);
+		
+		car1Instance.eSet(
+				testHelper.getCar1NameEAttribute(), 
+				CAR1_NAME_EATTRIBUTE_VALUE);
+		
+		car1Instance.eSet(
+				testHelper.getCar1MakeEAttribute(), 
+				CAR1_MAKE_EATTRIBUTE_VALUE);
+		
+		mappingRoot = 
+			testHelper.getManufacturer1ToManufacturer2MappingRoot();
+	}
+
+	public void testExecute()
+	{
+	
+		EObject manufacturer1Instance	= 
+			testHelper.getManufacturer1Instance();
+
+		EObject manufacturer2Instance = 
+			Ecore2EcoreProcessor.execute(
+				manufacturer1Instance, 
+				mappingRoot);
+
+		EObject dealer2Instance = 
+			(EObject) manufacturer2Instance.eGet(testHelper.getDealer2EReference());
+		
+		assertTrue(dealer2Instance.eClass() == testHelper.getDealer2EClass());
+		
+		EObject car2Instance = 
+			(EObject) dealer2Instance.eGet(testHelper.getCar2EReference());
+		
+		assertTrue(car2Instance.eClass() == testHelper.getCar2EClass());
+		
+		Object carName = car2Instance.eGet(testHelper.getCar2NameEAttribute());
+		Object carMake = car2Instance.eGet(testHelper.getCar2MakeEAttribute());
+		
+		assertTrue(carName.toString() == CAR1_NAME_EATTRIBUTE_VALUE);
+		assertTrue(carMake.toString() == CAR1_MAKE_EATTRIBUTE_VALUE);
+	}
+
+	protected void tearDown() throws Exception {
+		super.tearDown();
+	}
+}



Mime
View raw message