From 0d0de7d8baeb0be4c9c4c7304dbc55c23b58d095 Mon Sep 17 00:00:00 2001
From: Martin Fluegge
Date: Fri, 8 Jan 2010 19:45:45 +0000
Subject: [247226] Transparently support legacy models (CDOLegacyAdapter)
https://bugs.eclipse.org/bugs/show_bug.cgi?id=247226
---
.../META-INF/MANIFEST.MF | 3 +-
.../model/model2.legacy-genmodel | 2 +-
.../emf/cdo/tests/legacy/model2/Model2Factory.java | 103 ++
.../emf/cdo/tests/legacy/model2/Model2Package.java | 1342 ++++++++++++++++++++
.../legacy/model2/impl/Model2FactoryImpl.java | 199 +++
.../legacy/model2/impl/Model2PackageImpl.java | 804 ++++++++++++
.../model2/impl/PersistentContainmentImpl.java | 323 +++++
.../model2/impl/SpecialPurchaseOrderImpl.java | 284 +++++
.../legacy/model2/impl/TaskContainerImpl.java | 189 +++
.../emf/cdo/tests/legacy/model2/impl/TaskImpl.java | 354 ++++++
.../legacy/model2/impl/TransientContainerImpl.java | 359 ++++++
.../tests/legacy/model2/impl/Unsettable1Impl.java | 1192 +++++++++++++++++
.../model2/impl/Unsettable2WithDefaultImpl.java | 1205 ++++++++++++++++++
.../legacy/model2/util/Model2AdapterFactory.java | 306 +++++
.../cdo/tests/legacy/model2/util/Model2Switch.java | 324 +++++
15 files changed, 6987 insertions(+), 2 deletions(-)
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Factory.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/Model2Package.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2FactoryImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2PackageImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/PersistentContainmentImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/SpecialPurchaseOrderImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskContainerImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TaskImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/TransientContainerImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable1Impl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Unsettable2WithDefaultImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/util/Model2AdapterFactory.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/util/Model2Switch.java
(limited to 'plugins/org.eclipse.emf.cdo.tests.model2')
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.tests.model2/META-INF/MANIFEST.MF
index 0dec48648d..d81dd303da 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/META-INF/MANIFEST.MF
@@ -11,6 +11,7 @@ Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
org.eclipse.emf.ecore;bundle-version="[2.4.0,3.0.0)";visibility:=reexport,
org.eclipse.emf.cdo;bundle-version="[3.0.0,4.0.0)";visibility:=reexport,
org.eclipse.emf.cdo.tests.model1;bundle-version="[3.0.0,4.0.0)";visibility:=reexport
-Export-Package: org.eclipse.emf.cdo.tests.model2;version="3.0.0",
+Export-Package: org.eclipse.emf.cdo.tests.legacy.model2,
+ org.eclipse.emf.cdo.tests.model2;version="3.0.0",
org.eclipse.emf.cdo.tests.model2.impl;version="3.0.0",
org.eclipse.emf.cdo.tests.model2.util;version="3.0.0"
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy-genmodel b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy-genmodel
index 5024097e3c..d2563f2e75 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy-genmodel
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/model/model2.legacy-genmodel
@@ -5,7 +5,7 @@
modelDirectory="/org.eclipse.emf.cdo.tests.model2/src" editDirectory="" editorDirectory=""
modelPluginID="org.eclipse.emf.cdo.tests.model2" modelName="Model2" updateClasspath="false"
codeFormatting="true" testsDirectory="" importerID="org.eclipse.emf.importer.cdo"
- complianceLevel="5.0" copyrightFields="false" usedGenPackages="../../org.eclipse.emf.cdo.tests.model1/model/model1.legacy.genmodel#//model1">
+ complianceLevel="5.0" copyrightFields="false" usedGenPackages="../../org.eclipse.emf.cdo.tests.model1/model/model1.legacy-genmodel#//model1">
+ * 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.
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Model2Package#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private Model2PackageImpl()
+ {
+ super(eNS_URI, Model2Factory.eINSTANCE);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the Package for this model, and for any others upon which it depends.
+ *
+ * This method is used to initialize {@link Model2Package#eINSTANCE} when that field is accessed. Clients should not
+ * invoke it directly. Instead, they should simply access that field to obtain the package.
+ *
+ *
+ * @see #eNS_URI
+ * @see #createPackageContents()
+ * @see #initializePackageContents()
+ * @generated
+ */
+ public static Model2Package init()
+ {
+ if (isInited)
+ return (Model2Package)EPackage.Registry.INSTANCE.getEPackage(Model2Package.eNS_URI);
+
+ // Obtain or create and register package
+ Model2PackageImpl theModel2Package = (Model2PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model2PackageImpl ? EPackage.Registry.INSTANCE
+ .get(eNS_URI)
+ : new Model2PackageImpl());
+
+ isInited = true;
+
+ // Initialize simple dependencies
+ Model1Package.eINSTANCE.eClass();
+
+ // Create package meta-data objects
+ theModel2Package.createPackageContents();
+
+ // Initialize created meta-data
+ theModel2Package.initializePackageContents();
+
+ // Mark meta-data to indicate it can't be changed
+ theModel2Package.freeze();
+
+ // Update the registry and return the package
+ EPackage.Registry.INSTANCE.put(Model2Package.eNS_URI, theModel2Package);
+ return theModel2Package;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getSpecialPurchaseOrder()
+ {
+ return specialPurchaseOrderEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getSpecialPurchaseOrder_DiscountCode()
+ {
+ return (EAttribute)specialPurchaseOrderEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getSpecialPurchaseOrder_ShippingAddress()
+ {
+ return (EReference)specialPurchaseOrderEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getTaskContainer()
+ {
+ return taskContainerEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getTaskContainer_Tasks()
+ {
+ return (EReference)taskContainerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getTask()
+ {
+ return taskEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getTask_TaskContainer()
+ {
+ return (EReference)taskEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getTask_Description()
+ {
+ return (EAttribute)taskEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getTask_Done()
+ {
+ return (EAttribute)taskEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getUnsettable1()
+ {
+ return unsettable1EClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableBoolean()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableByte()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableChar()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableDate()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableDouble()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableFloat()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableInt()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableLong()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableShort()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableString()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable1_UnsettableVAT()
+ {
+ return (EAttribute)unsettable1EClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getUnsettable2WithDefault()
+ {
+ return unsettable2WithDefaultEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableBoolean()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableByte()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableChar()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableDate()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableDouble()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(4);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableFloat()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(5);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableInt()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(6);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableLong()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(7);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableShort()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(8);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableString()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(9);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getUnsettable2WithDefault_UnsettableVAT()
+ {
+ return (EAttribute)unsettable2WithDefaultEClass.getEStructuralFeatures().get(10);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getPersistentContainment()
+ {
+ return persistentContainmentEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getPersistentContainment_AttrBefore()
+ {
+ return (EAttribute)persistentContainmentEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getPersistentContainment_Children()
+ {
+ return (EReference)persistentContainmentEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getPersistentContainment_AttrAfter()
+ {
+ return (EAttribute)persistentContainmentEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EClass getTransientContainer()
+ {
+ return transientContainerEClass;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getTransientContainer_AttrBefore()
+ {
+ return (EAttribute)transientContainerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EReference getTransientContainer_Parent()
+ {
+ return (EReference)transientContainerEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public EAttribute getTransientContainer_AttrAfter()
+ {
+ return (EAttribute)transientContainerEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Model2Factory getModel2Factory()
+ {
+ return (Model2Factory)getEFactoryInstance();
+ }
+
+ /**
+ *
+ *
+ * @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.
+ *
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated)
+ return;
+ isCreated = true;
+
+ // Create classes and their features
+ specialPurchaseOrderEClass = createEClass(SPECIAL_PURCHASE_ORDER);
+ createEAttribute(specialPurchaseOrderEClass, SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE);
+ createEReference(specialPurchaseOrderEClass, SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS);
+
+ taskContainerEClass = createEClass(TASK_CONTAINER);
+ createEReference(taskContainerEClass, TASK_CONTAINER__TASKS);
+
+ taskEClass = createEClass(TASK);
+ createEReference(taskEClass, TASK__TASK_CONTAINER);
+ createEAttribute(taskEClass, TASK__DESCRIPTION);
+ createEAttribute(taskEClass, TASK__DONE);
+
+ unsettable1EClass = createEClass(UNSETTABLE1);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_BOOLEAN);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_BYTE);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_CHAR);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_DATE);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_DOUBLE);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_FLOAT);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_INT);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_LONG);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_SHORT);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_STRING);
+ createEAttribute(unsettable1EClass, UNSETTABLE1__UNSETTABLE_VAT);
+
+ unsettable2WithDefaultEClass = createEClass(UNSETTABLE2_WITH_DEFAULT);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING);
+ createEAttribute(unsettable2WithDefaultEClass, UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT);
+
+ persistentContainmentEClass = createEClass(PERSISTENT_CONTAINMENT);
+ createEAttribute(persistentContainmentEClass, PERSISTENT_CONTAINMENT__ATTR_BEFORE);
+ createEReference(persistentContainmentEClass, PERSISTENT_CONTAINMENT__CHILDREN);
+ createEAttribute(persistentContainmentEClass, PERSISTENT_CONTAINMENT__ATTR_AFTER);
+
+ transientContainerEClass = createEClass(TRANSIENT_CONTAINER);
+ createEAttribute(transientContainerEClass, TRANSIENT_CONTAINER__ATTR_BEFORE);
+ createEReference(transientContainerEClass, TRANSIENT_CONTAINER__PARENT);
+ createEAttribute(transientContainerEClass, TRANSIENT_CONTAINER__ATTR_AFTER);
+ }
+
+ /**
+ *
+ *
+ * @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.
+ *
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized)
+ return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Obtain other dependent packages
+ Model1Package theModel1Package = (Model1Package)EPackage.Registry.INSTANCE.getEPackage(Model1Package.eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ specialPurchaseOrderEClass.getESuperTypes().add(theModel1Package.getPurchaseOrder());
+
+ // Initialize classes and features; add operations and parameters
+ initEClass(specialPurchaseOrderEClass, SpecialPurchaseOrder.class, "SpecialPurchaseOrder", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getSpecialPurchaseOrder_DiscountCode(), ecorePackage.getEString(), "discountCode", null, 0, 1,
+ SpecialPurchaseOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getSpecialPurchaseOrder_ShippingAddress(), theModel1Package.getAddress(), null, "shippingAddress",
+ null, 0, 1, SpecialPurchaseOrder.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE,
+ !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(taskContainerEClass, TaskContainer.class, "TaskContainer", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getTaskContainer_Tasks(), this.getTask(), this.getTask_TaskContainer(), "tasks", null, 0, -1,
+ TaskContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(taskEClass, Task.class, "Task", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEReference(getTask_TaskContainer(), this.getTaskContainer(), this.getTaskContainer_Tasks(), "taskContainer",
+ null, 0, 1, Task.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES,
+ !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTask_Description(), ecorePackage.getEString(), "description", null, 0, 1, Task.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getTask_Done(), ecorePackage.getEBoolean(), "done", null, 0, 1, Task.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(unsettable1EClass, Unsettable1.class, "Unsettable1", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getUnsettable1_UnsettableBoolean(), ecorePackage.getEBoolean(), "unsettableBoolean", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableByte(), ecorePackage.getEByte(), "unsettableByte", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableChar(), ecorePackage.getEChar(), "unsettableChar", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableDate(), ecorePackage.getEDate(), "unsettableDate", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableDouble(), ecorePackage.getEDouble(), "unsettableDouble", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableFloat(), ecorePackage.getEFloat(), "unsettableFloat", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableInt(), ecorePackage.getEInt(), "unsettableInt", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableLong(), ecorePackage.getELong(), "unsettableLong", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableShort(), ecorePackage.getEShort(), "unsettableShort", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableString(), ecorePackage.getEString(), "unsettableString", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getUnsettable1_UnsettableVAT(), theModel1Package.getVAT(), "unsettableVAT", null, 0, 1,
+ Unsettable1.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+
+ initEClass(unsettable2WithDefaultEClass, Unsettable2WithDefault.class, "Unsettable2WithDefault", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getUnsettable2WithDefault_UnsettableBoolean(), ecorePackage.getEBoolean(), "unsettableBoolean",
+ "true", 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableByte(), ecorePackage.getEByte(), "unsettableByte", "3", 0, 1,
+ Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableChar(), ecorePackage.getEChar(), "unsettableChar", "\'x\'", 0,
+ 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableDate(), ecorePackage.getEDate(), "unsettableDate",
+ "2009-12-21T15:12:59", 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE,
+ IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableDouble(), ecorePackage.getEDouble(), "unsettableDouble", "3.3",
+ 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID,
+ IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableFloat(), ecorePackage.getEFloat(), "unsettableFloat", "4.4", 0,
+ 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableInt(), ecorePackage.getEInt(), "unsettableInt", "5", 0, 1,
+ Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableLong(), ecorePackage.getELong(), "unsettableLong", "6", 0, 1,
+ Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableShort(), ecorePackage.getEShort(), "unsettableShort", "7", 0, 1,
+ Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableString(), ecorePackage.getEString(), "unsettableString",
+ "\"eike\"", 0, 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE,
+ !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+ initEAttribute(getUnsettable2WithDefault_UnsettableVAT(), theModel1Package.getVAT(), "unsettableVAT", "VAT15", 0,
+ 1, Unsettable2WithDefault.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(persistentContainmentEClass, PersistentContainment.class, "PersistentContainment", !IS_ABSTRACT,
+ !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getPersistentContainment_AttrBefore(), ecorePackage.getEString(), "attrBefore", null, 0, 1,
+ PersistentContainment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getPersistentContainment_Children(), this.getTransientContainer(), this
+ .getTransientContainer_Parent(), "children", null, 0, -1, PersistentContainment.class, !IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ !IS_ORDERED);
+ initEAttribute(getPersistentContainment_AttrAfter(), ecorePackage.getEString(), "attrAfter", null, 0, 1,
+ PersistentContainment.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(transientContainerEClass, TransientContainer.class, "TransientContainer", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getTransientContainer_AttrBefore(), ecorePackage.getEString(), "attrBefore", null, 0, 1,
+ TransientContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+ initEReference(getTransientContainer_Parent(), this.getPersistentContainment(), this
+ .getPersistentContainment_Children(), "parent", null, 0, 1, TransientContainer.class, IS_TRANSIENT,
+ !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
+ IS_ORDERED);
+ initEAttribute(getTransientContainer_AttrAfter(), ecorePackage.getEString(), "attrAfter", null, 0, 1,
+ TransientContainer.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} // Model2PackageImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/PersistentContainmentImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/PersistentContainmentImpl.java
new file mode 100644
index 0000000000..744719771a
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/PersistentContainmentImpl.java
@@ -0,0 +1,323 @@
+/**
+ * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ *
+ * $Id: PersistentContainmentImpl.java,v 1.1 2010-01-08 19:43:27 mfluegge Exp $
+ */
+package org.eclipse.emf.cdo.tests.legacy.model2.impl;
+
+import org.eclipse.emf.cdo.tests.model2.Model2Package;
+import org.eclipse.emf.cdo.tests.model2.PersistentContainment;
+import org.eclipse.emf.cdo.tests.model2.TransientContainer;
+
+import org.eclipse.emf.common.notify.Notification;
+import org.eclipse.emf.common.notify.NotificationChain;
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+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.EObjectContainmentWithInverseEList;
+import org.eclipse.emf.ecore.util.InternalEList;
+
+import java.util.Collection;
+
+/**
+ * An implementation of the model object 'Persistent Containment'.
+ *
+ * The following features are implemented:
+ *
+ *
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Model2Factory
+ * @model kind="package"
+ * @generated
+ */
+public interface Model2Package extends org.eclipse.emf.cdo.tests.model2.Model2Package
+{
+ /**
+ * The package name.
+ *
+ * @generated
+ */
+ String eNAME = "model2";
+
+ /**
+ * The package namespace URI.
+ *
+ * @generated NOT
+ */
+ String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/legacy/model2/1.0.0";
+
+ /**
+ * The package namespace name.
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "model2";
+
+ /**
+ * The singleton instance of the package.
+ *
+ * @generated
+ */
+ Model2Package eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.SpecialPurchaseOrderImpl
+ * Special Purchase Order}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.SpecialPurchaseOrderImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getSpecialPurchaseOrder()
+ * @generated
+ */
+ int SPECIAL_PURCHASE_ORDER = 0;
+
+ /**
+ * The feature id for the 'Order Details' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int SPECIAL_PURCHASE_ORDER__ORDER_DETAILS = Model1Package.PURCHASE_ORDER__ORDER_DETAILS;
+
+ /**
+ * The feature id for the 'Date' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int SPECIAL_PURCHASE_ORDER__DATE = Model1Package.PURCHASE_ORDER__DATE;
+
+ /**
+ * The feature id for the 'Supplier' reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int SPECIAL_PURCHASE_ORDER__SUPPLIER = Model1Package.PURCHASE_ORDER__SUPPLIER;
+
+ /**
+ * The feature id for the 'Discount Code' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the 'Shipping Address' containment reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the 'Special Purchase Order' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int SPECIAL_PURCHASE_ORDER_FEATURE_COUNT = Model1Package.PURCHASE_ORDER_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskContainerImpl
+ * Task Container}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskContainerImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getTaskContainer()
+ * @generated
+ */
+ int TASK_CONTAINER = 1;
+
+ /**
+ * The feature id for the 'Tasks' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int TASK_CONTAINER__TASKS = 0;
+
+ /**
+ * The number of structural features of the 'Task Container' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int TASK_CONTAINER_FEATURE_COUNT = 1;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskImpl Task}' class.
+ *
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getTask()
+ * @generated
+ */
+ int TASK = 2;
+
+ /**
+ * The feature id for the 'Task Container' container reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int TASK__TASK_CONTAINER = 0;
+
+ /**
+ * The feature id for the 'Description' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int TASK__DESCRIPTION = 1;
+
+ /**
+ * The feature id for the 'Done' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int TASK__DONE = 2;
+
+ /**
+ * The number of structural features of the 'Task' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int TASK_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl
+ * Unsettable1}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getUnsettable1()
+ * @generated
+ */
+ int UNSETTABLE1 = 3;
+
+ /**
+ * The feature id for the 'Unsettable Boolean' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_BOOLEAN = 0;
+
+ /**
+ * The feature id for the 'Unsettable Byte' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_BYTE = 1;
+
+ /**
+ * The feature id for the 'Unsettable Char' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_CHAR = 2;
+
+ /**
+ * The feature id for the 'Unsettable Date' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_DATE = 3;
+
+ /**
+ * The feature id for the 'Unsettable Double' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_DOUBLE = 4;
+
+ /**
+ * The feature id for the 'Unsettable Float' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_FLOAT = 5;
+
+ /**
+ * The feature id for the 'Unsettable Int' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_INT = 6;
+
+ /**
+ * The feature id for the 'Unsettable Long' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_LONG = 7;
+
+ /**
+ * The feature id for the 'Unsettable Short' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_SHORT = 8;
+
+ /**
+ * The feature id for the 'Unsettable String' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_STRING = 9;
+
+ /**
+ * The feature id for the 'Unsettable VAT' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1__UNSETTABLE_VAT = 10;
+
+ /**
+ * The number of structural features of the 'Unsettable1' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE1_FEATURE_COUNT = 11;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl
+ * Unsettable2 With Default}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getUnsettable2WithDefault()
+ * @generated
+ */
+ int UNSETTABLE2_WITH_DEFAULT = 4;
+
+ /**
+ * The feature id for the 'Unsettable Boolean' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN = 0;
+
+ /**
+ * The feature id for the 'Unsettable Byte' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE = 1;
+
+ /**
+ * The feature id for the 'Unsettable Char' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR = 2;
+
+ /**
+ * The feature id for the 'Unsettable Date' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE = 3;
+
+ /**
+ * The feature id for the 'Unsettable Double' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE = 4;
+
+ /**
+ * The feature id for the 'Unsettable Float' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT = 5;
+
+ /**
+ * The feature id for the 'Unsettable Int' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT = 6;
+
+ /**
+ * The feature id for the 'Unsettable Long' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG = 7;
+
+ /**
+ * The feature id for the 'Unsettable Short' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT = 8;
+
+ /**
+ * The feature id for the 'Unsettable String' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING = 9;
+
+ /**
+ * The feature id for the 'Unsettable VAT' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT = 10;
+
+ /**
+ * The number of structural features of the 'Unsettable2 With Default' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int UNSETTABLE2_WITH_DEFAULT_FEATURE_COUNT = 11;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.PersistentContainmentImpl
+ * Persistent Containment}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.PersistentContainmentImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getPersistentContainment()
+ * @generated
+ */
+ int PERSISTENT_CONTAINMENT = 5;
+
+ /**
+ * The feature id for the 'Attr Before' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int PERSISTENT_CONTAINMENT__ATTR_BEFORE = 0;
+
+ /**
+ * The feature id for the 'Children' containment reference list.
+ *
+ * @generated
+ * @ordered
+ */
+ int PERSISTENT_CONTAINMENT__CHILDREN = 1;
+
+ /**
+ * The feature id for the 'Attr After' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int PERSISTENT_CONTAINMENT__ATTR_AFTER = 2;
+
+ /**
+ * The number of structural features of the 'Persistent Containment' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int PERSISTENT_CONTAINMENT_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TransientContainerImpl
+ * Transient Container}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.TransientContainerImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getTransientContainer()
+ * @generated
+ */
+ int TRANSIENT_CONTAINER = 6;
+
+ /**
+ * The feature id for the 'Attr Before' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int TRANSIENT_CONTAINER__ATTR_BEFORE = 0;
+
+ /**
+ * The feature id for the 'Parent' container reference.
+ *
+ * @generated
+ * @ordered
+ */
+ int TRANSIENT_CONTAINER__PARENT = 1;
+
+ /**
+ * The feature id for the 'Attr After' attribute.
+ *
+ * @generated
+ * @ordered
+ */
+ int TRANSIENT_CONTAINER__ATTR_AFTER = 2;
+
+ /**
+ * The number of structural features of the 'Transient Container' class.
+ *
+ * @generated
+ * @ordered
+ */
+ int TRANSIENT_CONTAINER_FEATURE_COUNT = 3;
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder
+ * Special Purchase Order}'.
+ *
+ * @return the meta object for class 'Special Purchase Order'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder
+ * @generated
+ */
+ EClass getSpecialPurchaseOrder();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getDiscountCode Discount Code}'.
+ *
+ * @return the meta object for the attribute 'Discount Code'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getDiscountCode()
+ * @see #getSpecialPurchaseOrder()
+ * @generated
+ */
+ EAttribute getSpecialPurchaseOrder_DiscountCode();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getShippingAddress Shipping Address}'.
+ *
+ *
+ * @return the meta object for the containment reference 'Shipping Address'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder#getShippingAddress()
+ * @see #getSpecialPurchaseOrder()
+ * @generated
+ */
+ EReference getSpecialPurchaseOrder_ShippingAddress();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer
+ * Task Container}'.
+ *
+ * @return the meta object for class 'Task Container'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer
+ * @generated
+ */
+ EClass getTaskContainer();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer#getTasks Tasks}'.
+ *
+ *
+ * @return the meta object for the containment reference list 'Tasks'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer#getTasks()
+ * @see #getTaskContainer()
+ * @generated
+ */
+ EReference getTaskContainer_Tasks();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.Task Task}'.
+ *
+ * @return the meta object for class 'Task'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Task
+ * @generated
+ */
+ EClass getTask();
+
+ /**
+ * Returns the meta object for the container reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Task#getTaskContainer Task Container}'.
+ *
+ * @return the meta object for the container reference 'Task Container'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Task#getTaskContainer()
+ * @see #getTask()
+ * @generated
+ */
+ EReference getTask_TaskContainer();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.model2.Task#getDescription
+ * Description}'.
+ *
+ * @return the meta object for the attribute 'Description'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Task#getDescription()
+ * @see #getTask()
+ * @generated
+ */
+ EAttribute getTask_Description();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.legacy.model2.Task#isDone
+ * Done}'.
+ *
+ * @return the meta object for the attribute 'Done'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Task#isDone()
+ * @see #getTask()
+ * @generated
+ */
+ EAttribute getTask_Done();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1 Unsettable1}
+ * '.
+ *
+ * @return the meta object for class 'Unsettable1'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1
+ * @generated
+ */
+ EClass getUnsettable1();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#isUnsettableBoolean Unsettable Boolean}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Boolean'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#isUnsettableBoolean()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableBoolean();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableByte Unsettable Byte}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Byte'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableByte()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableByte();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableChar Unsettable Char}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Char'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableChar()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableChar();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDate Unsettable Date}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Date'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDate()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableDate();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDouble Unsettable Double}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Double'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableDouble()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableDouble();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableFloat Unsettable Float}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Float'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableFloat()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableFloat();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableInt Unsettable Int}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Int'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableInt()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableInt();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableLong Unsettable Long}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Long'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableLong()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableLong();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableShort Unsettable Short}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Short'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableShort()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableShort();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableString Unsettable String}'.
+ *
+ * @return the meta object for the attribute 'Unsettable String'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableString()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableString();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableVAT Unsettable VAT}'.
+ *
+ * @return the meta object for the attribute 'Unsettable VAT'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1#getUnsettableVAT()
+ * @see #getUnsettable1()
+ * @generated
+ */
+ EAttribute getUnsettable1_UnsettableVAT();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault
+ * Unsettable2 With Default}'.
+ *
+ * @return the meta object for class 'Unsettable2 With Default'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault
+ * @generated
+ */
+ EClass getUnsettable2WithDefault();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#isUnsettableBoolean
+ * Unsettable Boolean}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Boolean'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#isUnsettableBoolean()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableBoolean();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableByte Unsettable Byte}'.
+ *
+ *
+ * @return the meta object for the attribute 'Unsettable Byte'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableByte()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableByte();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableChar Unsettable Char}'.
+ *
+ *
+ * @return the meta object for the attribute 'Unsettable Char'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableChar()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableChar();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableDate Unsettable Date}'.
+ *
+ *
+ * @return the meta object for the attribute 'Unsettable Date'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableDate()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableDate();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableDouble
+ * Unsettable Double}'.
+ *
+ * @return the meta object for the attribute 'Unsettable Double'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableDouble()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableDouble();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableFloat Unsettable Float}
+ * '.
+ *
+ * @return the meta object for the attribute 'Unsettable Float'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableFloat()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableFloat();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableInt Unsettable Int}'.
+ *
+ *
+ * @return the meta object for the attribute 'Unsettable Int'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableInt()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableInt();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableLong Unsettable Long}'.
+ *
+ *
+ * @return the meta object for the attribute 'Unsettable Long'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableLong()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableLong();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableShort Unsettable Short}
+ * '.
+ *
+ * @return the meta object for the attribute 'Unsettable Short'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableShort()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableShort();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableString
+ * Unsettable String}'.
+ *
+ * @return the meta object for the attribute 'Unsettable String'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableString()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableString();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableVAT Unsettable VAT}'.
+ *
+ *
+ * @return the meta object for the attribute 'Unsettable VAT'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault#getUnsettableVAT()
+ * @see #getUnsettable2WithDefault()
+ * @generated
+ */
+ EAttribute getUnsettable2WithDefault_UnsettableVAT();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment
+ * Persistent Containment}'.
+ *
+ * @return the meta object for class 'Persistent Containment'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment
+ * @generated
+ */
+ EClass getPersistentContainment();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrBefore Attr Before}'.
+ *
+ * @return the meta object for the attribute 'Attr Before'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrBefore()
+ * @see #getPersistentContainment()
+ * @generated
+ */
+ EAttribute getPersistentContainment_AttrBefore();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getChildren Children}'.
+ *
+ * @return the meta object for the containment reference list 'Children'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getChildren()
+ * @see #getPersistentContainment()
+ * @generated
+ */
+ EReference getPersistentContainment_Children();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrAfter Attr After}'.
+ *
+ * @return the meta object for the attribute 'Attr After'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment#getAttrAfter()
+ * @see #getPersistentContainment()
+ * @generated
+ */
+ EAttribute getPersistentContainment_AttrAfter();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer
+ * Transient Container}'.
+ *
+ * @return the meta object for class 'Transient Container'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer
+ * @generated
+ */
+ EClass getTransientContainer();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrBefore Attr Before}'.
+ *
+ * @return the meta object for the attribute 'Attr Before'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrBefore()
+ * @see #getTransientContainer()
+ * @generated
+ */
+ EAttribute getTransientContainer_AttrBefore();
+
+ /**
+ * Returns the meta object for the container reference '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getParent Parent}'.
+ *
+ * @return the meta object for the container reference 'Parent'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getParent()
+ * @see #getTransientContainer()
+ * @generated
+ */
+ EReference getTransientContainer_Parent();
+
+ /**
+ * Returns the meta object for the attribute '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrAfter Attr After}'.
+ *
+ * @return the meta object for the attribute 'Attr After'.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer#getAttrAfter()
+ * @see #getTransientContainer()
+ * @generated
+ */
+ EAttribute getTransientContainer_AttrAfter();
+
+ /**
+ * Returns the factory that creates the instances of the model.
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ Model2Factory getModel2Factory();
+
+ /**
+ * Defines literals for the meta objects that represent
+ *
+ *
+ *
+ *
+ * @generated
+ */
+ interface Literals
+ {
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.SpecialPurchaseOrderImpl
+ * Special Purchase Order}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.SpecialPurchaseOrderImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getSpecialPurchaseOrder()
+ * @generated
+ */
+ EClass SPECIAL_PURCHASE_ORDER = eINSTANCE.getSpecialPurchaseOrder();
+
+ /**
+ * The meta object literal for the 'Discount Code' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute SPECIAL_PURCHASE_ORDER__DISCOUNT_CODE = eINSTANCE.getSpecialPurchaseOrder_DiscountCode();
+
+ /**
+ * The meta object literal for the 'Shipping Address' containment reference feature.
+ *
+ * @generated
+ */
+ EReference SPECIAL_PURCHASE_ORDER__SHIPPING_ADDRESS = eINSTANCE.getSpecialPurchaseOrder_ShippingAddress();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskContainerImpl
+ * Task Container}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskContainerImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getTaskContainer()
+ * @generated
+ */
+ EClass TASK_CONTAINER = eINSTANCE.getTaskContainer();
+
+ /**
+ * The meta object literal for the 'Tasks' containment reference list feature.
+ *
+ * @generated
+ */
+ EReference TASK_CONTAINER__TASKS = eINSTANCE.getTaskContainer_Tasks();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskImpl Task}'
+ * class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.TaskImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getTask()
+ * @generated
+ */
+ EClass TASK = eINSTANCE.getTask();
+
+ /**
+ * The meta object literal for the 'Task Container' container reference feature.
+ *
+ * @generated
+ */
+ EReference TASK__TASK_CONTAINER = eINSTANCE.getTask_TaskContainer();
+
+ /**
+ * The meta object literal for the 'Description' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute TASK__DESCRIPTION = eINSTANCE.getTask_Description();
+
+ /**
+ * The meta object literal for the 'Done' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute TASK__DONE = eINSTANCE.getTask_Done();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl
+ * Unsettable1}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable1Impl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getUnsettable1()
+ * @generated
+ */
+ EClass UNSETTABLE1 = eINSTANCE.getUnsettable1();
+
+ /**
+ * The meta object literal for the 'Unsettable Boolean' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_BOOLEAN = eINSTANCE.getUnsettable1_UnsettableBoolean();
+
+ /**
+ * The meta object literal for the 'Unsettable Byte' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_BYTE = eINSTANCE.getUnsettable1_UnsettableByte();
+
+ /**
+ * The meta object literal for the 'Unsettable Char' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_CHAR = eINSTANCE.getUnsettable1_UnsettableChar();
+
+ /**
+ * The meta object literal for the 'Unsettable Date' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_DATE = eINSTANCE.getUnsettable1_UnsettableDate();
+
+ /**
+ * The meta object literal for the 'Unsettable Double' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_DOUBLE = eINSTANCE.getUnsettable1_UnsettableDouble();
+
+ /**
+ * The meta object literal for the 'Unsettable Float' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_FLOAT = eINSTANCE.getUnsettable1_UnsettableFloat();
+
+ /**
+ * The meta object literal for the 'Unsettable Int' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_INT = eINSTANCE.getUnsettable1_UnsettableInt();
+
+ /**
+ * The meta object literal for the 'Unsettable Long' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_LONG = eINSTANCE.getUnsettable1_UnsettableLong();
+
+ /**
+ * The meta object literal for the 'Unsettable Short' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_SHORT = eINSTANCE.getUnsettable1_UnsettableShort();
+
+ /**
+ * The meta object literal for the 'Unsettable String' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_STRING = eINSTANCE.getUnsettable1_UnsettableString();
+
+ /**
+ * The meta object literal for the 'Unsettable VAT' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE1__UNSETTABLE_VAT = eINSTANCE.getUnsettable1_UnsettableVAT();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl
+ * Unsettable2 With Default}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Unsettable2WithDefaultImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getUnsettable2WithDefault()
+ * @generated
+ */
+ EClass UNSETTABLE2_WITH_DEFAULT = eINSTANCE.getUnsettable2WithDefault();
+
+ /**
+ * The meta object literal for the 'Unsettable Boolean' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BOOLEAN = eINSTANCE.getUnsettable2WithDefault_UnsettableBoolean();
+
+ /**
+ * The meta object literal for the 'Unsettable Byte' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_BYTE = eINSTANCE.getUnsettable2WithDefault_UnsettableByte();
+
+ /**
+ * The meta object literal for the 'Unsettable Char' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_CHAR = eINSTANCE.getUnsettable2WithDefault_UnsettableChar();
+
+ /**
+ * The meta object literal for the 'Unsettable Date' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DATE = eINSTANCE.getUnsettable2WithDefault_UnsettableDate();
+
+ /**
+ * The meta object literal for the 'Unsettable Double' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_DOUBLE = eINSTANCE.getUnsettable2WithDefault_UnsettableDouble();
+
+ /**
+ * The meta object literal for the 'Unsettable Float' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_FLOAT = eINSTANCE.getUnsettable2WithDefault_UnsettableFloat();
+
+ /**
+ * The meta object literal for the 'Unsettable Int' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_INT = eINSTANCE.getUnsettable2WithDefault_UnsettableInt();
+
+ /**
+ * The meta object literal for the 'Unsettable Long' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_LONG = eINSTANCE.getUnsettable2WithDefault_UnsettableLong();
+
+ /**
+ * The meta object literal for the 'Unsettable Short' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_SHORT = eINSTANCE.getUnsettable2WithDefault_UnsettableShort();
+
+ /**
+ * The meta object literal for the 'Unsettable String' attribute feature.
+ *
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_STRING = eINSTANCE.getUnsettable2WithDefault_UnsettableString();
+
+ /**
+ * The meta object literal for the 'Unsettable VAT' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute UNSETTABLE2_WITH_DEFAULT__UNSETTABLE_VAT = eINSTANCE.getUnsettable2WithDefault_UnsettableVAT();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.PersistentContainmentImpl
+ * Persistent Containment}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.PersistentContainmentImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getPersistentContainment()
+ * @generated
+ */
+ EClass PERSISTENT_CONTAINMENT = eINSTANCE.getPersistentContainment();
+
+ /**
+ * The meta object literal for the 'Attr Before' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute PERSISTENT_CONTAINMENT__ATTR_BEFORE = eINSTANCE.getPersistentContainment_AttrBefore();
+
+ /**
+ * The meta object literal for the 'Children' containment reference list feature.
+ *
+ * @generated
+ */
+ EReference PERSISTENT_CONTAINMENT__CHILDREN = eINSTANCE.getPersistentContainment_Children();
+
+ /**
+ * The meta object literal for the 'Attr After' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute PERSISTENT_CONTAINMENT__ATTR_AFTER = eINSTANCE.getPersistentContainment_AttrAfter();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.legacy.model2.impl.TransientContainerImpl
+ * Transient Container}' class.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.TransientContainerImpl
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.impl.Model2PackageImpl#getTransientContainer()
+ * @generated
+ */
+ EClass TRANSIENT_CONTAINER = eINSTANCE.getTransientContainer();
+
+ /**
+ * The meta object literal for the 'Attr Before' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute TRANSIENT_CONTAINER__ATTR_BEFORE = eINSTANCE.getTransientContainer_AttrBefore();
+
+ /**
+ * The meta object literal for the 'Parent' container reference feature.
+ *
+ *
+ * @generated
+ */
+ EReference TRANSIENT_CONTAINER__PARENT = eINSTANCE.getTransientContainer_Parent();
+
+ /**
+ * The meta object literal for the 'Attr After' attribute feature.
+ *
+ * @generated
+ */
+ EAttribute TRANSIENT_CONTAINER__ATTR_AFTER = eINSTANCE.getTransientContainer_AttrAfter();
+
+ }
+
+} // Model2Package
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2FactoryImpl.java
new file mode 100644
index 0000000000..de9744dae9
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2FactoryImpl.java
@@ -0,0 +1,199 @@
+/**
+ * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ *
+ * $Id: Model2FactoryImpl.java,v 1.4 2010-01-08 19:43:28 mfluegge Exp $
+ */
+package org.eclipse.emf.cdo.tests.legacy.model2.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model2.Model2Factory;
+import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package;
+import org.eclipse.emf.cdo.tests.model2.PersistentContainment;
+import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder;
+import org.eclipse.emf.cdo.tests.model2.Task;
+import org.eclipse.emf.cdo.tests.model2.TaskContainer;
+import org.eclipse.emf.cdo.tests.model2.TransientContainer;
+import org.eclipse.emf.cdo.tests.model2.Unsettable1;
+import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.impl.EFactoryImpl;
+import org.eclipse.emf.ecore.plugin.EcorePlugin;
+
+/**
+ * An implementation of the model Factory.
+ *
+ * @generated
+ */
+public class Model2FactoryImpl extends EFactoryImpl implements Model2Factory
+{
+ /**
+ * Creates the default factory implementation.
+ *
+ * @generated NOT
+ */
+ public static Model2Factory init()
+ {
+ try
+ {
+ Model2Factory theModel2Factory = (Model2Factory)EPackage.Registry.INSTANCE
+ .getEFactory("http://www.eclipse.org/emf/CDO/tests/legacy/model2/1.0.0");
+ if (theModel2Factory != null)
+ {
+ return theModel2Factory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new Model2FactoryImpl();
+ }
+
+ /**
+ * Creates an instance of the factory.
+ *
+ * @generated
+ */
+ public Model2FactoryImpl()
+ {
+ super();
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case Model2Package.SPECIAL_PURCHASE_ORDER:
+ return createSpecialPurchaseOrder();
+ case Model2Package.TASK_CONTAINER:
+ return createTaskContainer();
+ case Model2Package.TASK:
+ return createTask();
+ case Model2Package.UNSETTABLE1:
+ return createUnsettable1();
+ case Model2Package.UNSETTABLE2_WITH_DEFAULT:
+ return createUnsettable2WithDefault();
+ case Model2Package.PERSISTENT_CONTAINMENT:
+ return createPersistentContainment();
+ case Model2Package.TRANSIENT_CONTAINER:
+ return createTransientContainer();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public SpecialPurchaseOrder createSpecialPurchaseOrder()
+ {
+ SpecialPurchaseOrderImpl specialPurchaseOrder = new SpecialPurchaseOrderImpl();
+ return specialPurchaseOrder;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public TaskContainer createTaskContainer()
+ {
+ TaskContainerImpl taskContainer = new TaskContainerImpl();
+ return taskContainer;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Task createTask()
+ {
+ TaskImpl task = new TaskImpl();
+ return task;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Unsettable1 createUnsettable1()
+ {
+ Unsettable1Impl unsettable1 = new Unsettable1Impl();
+ return unsettable1;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Unsettable2WithDefault createUnsettable2WithDefault()
+ {
+ Unsettable2WithDefaultImpl unsettable2WithDefault = new Unsettable2WithDefaultImpl();
+ return unsettable2WithDefault;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public PersistentContainment createPersistentContainment()
+ {
+ PersistentContainmentImpl persistentContainment = new PersistentContainmentImpl();
+ return persistentContainment;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public TransientContainer createTransientContainer()
+ {
+ TransientContainerImpl transientContainer = new TransientContainerImpl();
+ return transientContainer;
+ }
+
+ /**
+ *
+ *
+ * @generated
+ */
+ public Model2Package getModel2Package()
+ {
+ return (Model2Package)getEPackage();
+ }
+
+ /**
+ *
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static Model2Package getPackage()
+ {
+ return Model2Package.eINSTANCE;
+ }
+
+} // Model2FactoryImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2PackageImpl.java
new file mode 100644
index 0000000000..e4d352a191
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/impl/Model2PackageImpl.java
@@ -0,0 +1,804 @@
+/**
+ * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ *
+ * $Id: Model2PackageImpl.java,v 1.4 2010-01-08 19:43:27 mfluegge Exp $
+ */
+package org.eclipse.emf.cdo.tests.legacy.model2.impl;
+
+import org.eclipse.emf.cdo.tests.legacy.model1.Model1Package;
+import org.eclipse.emf.cdo.tests.legacy.model2.Model2Factory;
+import org.eclipse.emf.cdo.tests.legacy.model2.Model2Package;
+import org.eclipse.emf.cdo.tests.model2.PersistentContainment;
+import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder;
+import org.eclipse.emf.cdo.tests.model2.Task;
+import org.eclipse.emf.cdo.tests.model2.TaskContainer;
+import org.eclipse.emf.cdo.tests.model2.TransientContainer;
+import org.eclipse.emf.cdo.tests.model2.Unsettable1;
+import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault;
+
+import org.eclipse.emf.ecore.EAttribute;
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EPackage;
+import org.eclipse.emf.ecore.EReference;
+import org.eclipse.emf.ecore.impl.EPackageImpl;
+
+/**
+ * An implementation of the model Package.
+ *
+ * @generated
+ */
+public class Model2PackageImpl extends EPackageImpl implements Model2Package
+{
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass specialPurchaseOrderEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass taskContainerEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass taskEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass unsettable1EClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass unsettable2WithDefaultEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass persistentContainmentEClass = null;
+
+ /**
+ *
+ *
+ * @generated
+ */
+ private EClass transientContainerEClass = null;
+
+ /**
+ * Creates an instance of the model Package, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package package URI value.
+ *
+ *
+ *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
createXXX
+ * method for each class of the model.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Model2Package
+ * @generated
+ */
+public class Model2AdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package.
+ *
+ * @generated
+ */
+ protected static Model2Package modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ * @generated
+ */
+ public Model2AdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = Model2Package.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object. This implementation
+ * returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @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 that delegates to the createXXX
methods.
+ *
+ * @generated
+ */
+ protected Model2Switchtarget
.
+ *
+ * @param target
+ * the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target)
+ {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder
+ * Special Purchase Order}'. 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.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.SpecialPurchaseOrder
+ * @generated
+ */
+ public Adapter createSpecialPurchaseOrderAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer
+ * Task Container}'. 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.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.TaskContainer
+ * @generated
+ */
+ public Adapter createTaskContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model2.Task Task}'.
+ * 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.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Task
+ * @generated
+ */
+ public Adapter createTaskAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1
+ * Unsettable1}'. 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.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable1
+ * @generated
+ */
+ public Adapter createUnsettable1Adapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '
+ * {@link org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault Unsettable2 With Default}'. 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.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Unsettable2WithDefault
+ * @generated
+ */
+ public Adapter createUnsettable2WithDefaultAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment
+ * Persistent Containment}'. 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.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.PersistentContainment
+ * @generated
+ */
+ public Adapter createPersistentContainmentAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer
+ * Transient Container}'. 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.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.TransientContainer
+ * @generated
+ */
+ public Adapter createTransientContainerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.Order Order}
+ * '. 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.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.legacy.model1.Order
+ * @generated
+ */
+ public Adapter createOrderAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder
+ * Purchase Order}'. 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.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.legacy.model1.PurchaseOrder
+ * @generated
+ */
+ public Adapter createPurchaseOrderAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case. This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter()
+ {
+ return null;
+ }
+
+} // Model2AdapterFactory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/util/Model2Switch.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/util/Model2Switch.java
new file mode 100644
index 0000000000..173868a862
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/legacy/model2/util/Model2Switch.java
@@ -0,0 +1,324 @@
+/**
+ * Copyright (c) 2004 - 2009 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ *
+ * $Id: Model2Switch.java,v 1.4 2010-01-08 19:43:26 mfluegge Exp $
+ */
+package org.eclipse.emf.cdo.tests.legacy.model2.util;
+
+import org.eclipse.emf.cdo.tests.model1.Order;
+import org.eclipse.emf.cdo.tests.model1.PurchaseOrder;
+import org.eclipse.emf.cdo.tests.model2.Model2Package;
+import org.eclipse.emf.cdo.tests.model2.PersistentContainment;
+import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder;
+import org.eclipse.emf.cdo.tests.model2.Task;
+import org.eclipse.emf.cdo.tests.model2.TaskContainer;
+import org.eclipse.emf.cdo.tests.model2.TransientContainer;
+import org.eclipse.emf.cdo.tests.model2.Unsettable1;
+import org.eclipse.emf.cdo.tests.model2.Unsettable2WithDefault;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+import java.util.List;
+
+/**
+ * The Switch for the model's inheritance hierarchy. It supports the call
+ * {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX
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.
+ *
+ * @see org.eclipse.emf.cdo.tests.legacy.model2.Model2Package
+ * @generated
+ */
+public class Model2SwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject)
+ {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls caseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject)
+ {
+ if (theEClass.eContainer() == modelPackage)
+ {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else
+ {
+ ListcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject)
+ {
+ switch (classifierID)
+ {
+ case Model2Package.SPECIAL_PURCHASE_ORDER:
+ {
+ SpecialPurchaseOrder specialPurchaseOrder = (SpecialPurchaseOrder)theEObject;
+ T result = caseSpecialPurchaseOrder(specialPurchaseOrder);
+ if (result == null)
+ result = casePurchaseOrder(specialPurchaseOrder);
+ if (result == null)
+ result = caseOrder(specialPurchaseOrder);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model2Package.TASK_CONTAINER:
+ {
+ TaskContainer taskContainer = (TaskContainer)theEObject;
+ T result = caseTaskContainer(taskContainer);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model2Package.TASK:
+ {
+ Task task = (Task)theEObject;
+ T result = caseTask(task);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model2Package.UNSETTABLE1:
+ {
+ Unsettable1 unsettable1 = (Unsettable1)theEObject;
+ T result = caseUnsettable1(unsettable1);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model2Package.UNSETTABLE2_WITH_DEFAULT:
+ {
+ Unsettable2WithDefault unsettable2WithDefault = (Unsettable2WithDefault)theEObject;
+ T result = caseUnsettable2WithDefault(unsettable2WithDefault);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model2Package.PERSISTENT_CONTAINMENT:
+ {
+ PersistentContainment persistentContainment = (PersistentContainment)theEObject;
+ T result = casePersistentContainment(persistentContainment);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model2Package.TRANSIENT_CONTAINER:
+ {
+ TransientContainer transientContainer = (TransientContainer)theEObject;
+ T result = caseTransientContainer(transientContainer);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Special Purchase Order'. This implementation returns null; returning a non-null result will terminate the switch.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Special Purchase Order'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseSpecialPurchaseOrder(SpecialPurchaseOrder object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Task Container'.
+ * This implementation returns null; returning a non-null result will terminate the switch.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Task Container'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTaskContainer(TaskContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Task'. This
+ * implementation returns null; returning a non-null result will terminate the switch.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Task'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTask(Task object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Unsettable1'.
+ * This implementation returns null; returning a non-null result will terminate the switch.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Unsettable1'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseUnsettable1(Unsettable1 object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Unsettable2 With Default'. This implementation returns null; returning a non-null result will terminate the switch.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Unsettable2 With Default'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseUnsettable2WithDefault(Unsettable2WithDefault object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Persistent Containment'. This implementation returns null; returning a non-null result will terminate the switch.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Persistent Containment'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePersistentContainment(PersistentContainment object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Transient Container'. This implementation returns null; returning a non-null result will terminate the switch.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Transient Container'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseTransientContainer(TransientContainer object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Order'. This
+ * implementation returns null; returning a non-null result will terminate the switch.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Order'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseOrder(Order object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Purchase Order'.
+ * This implementation returns null; returning a non-null result will terminate the switch.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Purchase Order'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T casePurchaseOrder(PurchaseOrder object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'. This
+ * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
+ * anyway.
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object)
+ {
+ return null;
+ }
+
+} // Model2Switch
--
cgit v1.2.3