From 2db962353ac9c595a26722704e3295a37c3d07e2 Mon Sep 17 00:00:00 2001
From: Eike Stepper
Date: Sun, 6 Jan 2013 12:16:10 +0100
Subject: dfgdfg
---
.../model/model6.legacy.genmodel | 6 +-
.../emf/cdo/tests/legacy/model6/Model6Factory.java | 2 +-
.../emf/cdo/tests/legacy/model6/Model6Package.java | 2 +-
.../emf/cdo/tests/legacy/model6/impl/AImpl.java | 199 ----
.../emf/cdo/tests/legacy/model6/impl/BImpl.java | 226 ----
.../tests/legacy/model6/impl/BaseObjectImpl.java | 273 -----
.../emf/cdo/tests/legacy/model6/impl/CImpl.java | 47 -
.../legacy/model6/impl/ContainmentObjectImpl.java | 272 -----
.../emf/cdo/tests/legacy/model6/impl/DImpl.java | 193 ----
.../emf/cdo/tests/legacy/model6/impl/EImpl.java | 161 ---
.../emf/cdo/tests/legacy/model6/impl/FImpl.java | 161 ---
.../emf/cdo/tests/legacy/model6/impl/GImpl.java | 386 -------
.../model6/impl/HasNillableAttributeImpl.java | 217 ----
.../cdo/tests/legacy/model6/impl/HoldableImpl.java | 176 ---
.../cdo/tests/legacy/model6/impl/HolderImpl.java | 199 ----
.../legacy/model6/impl/Model6FactoryImpl.java | 451 --------
.../legacy/model6/impl/Model6PackageImpl.java | 1133 --------------------
.../tests/legacy/model6/impl/MyEnumListImpl.java | 170 ---
.../model6/impl/MyEnumListUnsettableImpl.java | 193 ----
.../legacy/model6/impl/PropertiesMapEntryImpl.java | 401 -------
.../model6/impl/PropertiesMapEntryValueImpl.java | 185 ----
.../legacy/model6/impl/PropertiesMapImpl.java | 287 -----
.../legacy/model6/impl/ReferenceObjectImpl.java | 216 ----
.../emf/cdo/tests/legacy/model6/impl/RootImpl.java | 272 -----
.../cdo/tests/legacy/model6/impl/ThingImpl.java | 42 -
.../legacy/model6/impl/UnorderedListImpl.java | 198 ----
.../emf/cdo/tests/model6/Model6Factory.java | 2 +-
.../emf/cdo/tests/model6/Model6Package.java | 602 +----------
.../emf/cdo/tests/model6/impl/legacy/AImpl.java | 199 ++++
.../emf/cdo/tests/model6/impl/legacy/BImpl.java | 226 ++++
.../tests/model6/impl/legacy/BaseObjectImpl.java | 273 +++++
.../emf/cdo/tests/model6/impl/legacy/CImpl.java | 47 +
.../model6/impl/legacy/ContainmentObjectImpl.java | 272 +++++
.../emf/cdo/tests/model6/impl/legacy/DImpl.java | 193 ++++
.../emf/cdo/tests/model6/impl/legacy/EImpl.java | 161 +++
.../emf/cdo/tests/model6/impl/legacy/FImpl.java | 161 +++
.../emf/cdo/tests/model6/impl/legacy/GImpl.java | 386 +++++++
.../impl/legacy/HasNillableAttributeImpl.java | 217 ++++
.../cdo/tests/model6/impl/legacy/HoldableImpl.java | 176 +++
.../cdo/tests/model6/impl/legacy/HolderImpl.java | 199 ++++
.../model6/impl/legacy/Model6FactoryImpl.java | 451 ++++++++
.../model6/impl/legacy/Model6PackageImpl.java | 1133 ++++++++++++++++++++
.../tests/model6/impl/legacy/MyEnumListImpl.java | 170 +++
.../impl/legacy/MyEnumListUnsettableImpl.java | 193 ++++
.../model6/impl/legacy/PropertiesMapEntryImpl.java | 401 +++++++
.../impl/legacy/PropertiesMapEntryValueImpl.java | 185 ++++
.../model6/impl/legacy/PropertiesMapImpl.java | 287 +++++
.../model6/impl/legacy/ReferenceObjectImpl.java | 216 ++++
.../emf/cdo/tests/model6/impl/legacy/RootImpl.java | 272 +++++
.../cdo/tests/model6/impl/legacy/ThingImpl.java | 42 +
.../model6/impl/legacy/UnorderedListImpl.java | 198 ++++
51 files changed, 6109 insertions(+), 6621 deletions(-)
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/AImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/CImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ContainmentObjectImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/DImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/EImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/FImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/GImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HasNillableAttributeImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HoldableImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/HolderImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListUnsettableImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapEntryValueImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/PropertiesMapImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ThingImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/UnorderedListImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/AImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/BaseObjectImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/CImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/DImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/EImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/FImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/GImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HasNillableAttributeImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HoldableImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/HolderImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6FactoryImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/Model6PackageImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListUnsettableImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapEntryValueImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/PropertiesMapImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ReferenceObjectImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/RootImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ThingImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel b/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel
index 1171ead18d..08e8764ce3 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel
@@ -6,9 +6,9 @@
containmentProxies="true" complianceLevel="5.0" providerRootExtendsClass="" runtimeVersion="2.6">
- * The following features are implemented:
- *
- *
- *
- * The following features are implemented: - *
- * The following features are implemented: - *
- *
- * - * @generated - */ -public class CImpl extends EObjectImpl implements C -{ - /** - * - * @generated - */ - protected CImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getC(); - } - -} // CImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ContainmentObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ContainmentObjectImpl.java deleted file mode 100644 index ff86fcde1b..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ContainmentObjectImpl.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 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 - */ -package org.eclipse.emf.cdo.tests.legacy.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.ContainmentObject; - -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.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Containment Object'. - *- * 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: - *
- * The following features are implemented: - *
- * The following features are implemented: - *
- * 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.model6.Model6Package#eNS_URI - * @see #init() - * @generated - */ - private Model6PackageImpl() - { - super(eNS_URI, Model6Factory.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 Model6Package#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 Model6Package init() - { - if (isInited) - { - return (Model6Package)EPackage.Registry.INSTANCE.getEPackage(Model6Package.eNS_URI); - } - - // Obtain or create and register package - Model6PackageImpl theModel6Package = (Model6PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model6PackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new Model6PackageImpl()); - - isInited = true; - - // Create package meta-data objects - theModel6Package.createPackageContents(); - - // Initialize created meta-data - theModel6Package.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theModel6Package.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(Model6Package.eNS_URI, theModel6Package); - return theModel6Package; - } - - /** - * - * @generated - */ - public EClass getRoot() - { - return rootEClass; - } - - /** - * - * @generated - */ - public EReference getRoot_ListA() - { - return (EReference)rootEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getRoot_ListB() - { - return (EReference)rootEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EReference getRoot_ListC() - { - return (EReference)rootEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EReference getRoot_ListD() - { - return (EReference)rootEClass.getEStructuralFeatures().get(3); - } - - /** - * - * @generated - */ - public EClass getBaseObject() - { - return baseObjectEClass; - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeOptional() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeRequired() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeList() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EClass getReferenceObject() - { - return referenceObjectEClass; - } - - /** - * - * @generated - */ - public EReference getReferenceObject_ReferenceOptional() - { - return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getReferenceObject_ReferenceList() - { - return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getContainmentObject() - { - return containmentObjectEClass; - } - - /** - * - * @generated - */ - public EReference getContainmentObject_ContainmentOptional() - { - return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getContainmentObject_ContainmentList() - { - return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getUnorderedList() - { - return unorderedListEClass; - } - - /** - * - * @generated - */ - public EReference getUnorderedList_Contained() - { - return (EReference)unorderedListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getUnorderedList_Referenced() - { - return (EReference)unorderedListEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMap() - { - return propertiesMapEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMap_Label() - { - return (EAttribute)propertiesMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMap_PersistentMap() - { - return (EReference)propertiesMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMap_TransientMap() - { - return (EReference)propertiesMapEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMapEntry() - { - return propertiesMapEntryEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMapEntry_Key() - { - return (EAttribute)propertiesMapEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMapEntry_Value() - { - return (EReference)propertiesMapEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMapEntryValue() - { - return propertiesMapEntryValueEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMapEntryValue_Label() - { - return (EAttribute)propertiesMapEntryValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getA() - { - return aEClass; - } - - /** - * - * @generated - */ - public EReference getA_OwnedDs() - { - return (EReference)aEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getA_OwnedBs() - { - return (EReference)aEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getB() - { - return bEClass; - } - - /** - * - * @generated - */ - public EReference getB_OwnedC() - { - return (EReference)bEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getC() - { - return cEClass; - } - - /** - * - * @generated - */ - public EClass getD() - { - return dEClass; - } - - /** - * - * @generated - */ - public EReference getD_Data() - { - return (EReference)dEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getE() - { - return eEClass; - } - - /** - * - * @generated - */ - public EReference getE_OwnedAs() - { - return (EReference)eEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getF() - { - return fEClass; - } - - /** - * - * @generated - */ - public EReference getF_OwnedEs() - { - return (EReference)fEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getG() - { - return gEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getG_Dummy() - { - return (EAttribute)gEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getG_Reference() - { - return (EReference)gEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getG_List() - { - return (EReference)gEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getMyEnumList() - { - return myEnumListEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMyEnumList_MyEnum() - { - return (EAttribute)myEnumListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getMyEnumListUnsettable() - { - return myEnumListUnsettableEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMyEnumListUnsettable_MyEnum() - { - return (EAttribute)myEnumListUnsettableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getHolder() - { - return holderEClass; - } - - /** - * - * - * @generated - */ - public EReference getHolder_Held() - { - return (EReference)holderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getHolder_Owned() - { - return (EReference)holderEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getThing() - { - return thingEClass; - } - - /** - * - * - * @generated - */ - public EClass getHoldable() - { - return holdableEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHoldable_Name() - { - return (EAttribute)holdableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getHasNillableAttribute() - { - return hasNillableAttributeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHasNillableAttribute_Nillable() - { - return (EAttribute)hasNillableAttributeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EEnum getMyEnum() - { - return myEnumEEnum; - } - - /** - * - * - * @generated - */ - public EDataType getMyString() - { - return myStringEDataType; - } - - /** - * - * @generated - */ - public Model6Factory getModel6Factory() - { - return (Model6Factory)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 - rootEClass = createEClass(ROOT); - createEReference(rootEClass, ROOT__LIST_A); - createEReference(rootEClass, ROOT__LIST_B); - createEReference(rootEClass, ROOT__LIST_C); - createEReference(rootEClass, ROOT__LIST_D); - - baseObjectEClass = createEClass(BASE_OBJECT); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_OPTIONAL); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_REQUIRED); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_LIST); - - referenceObjectEClass = createEClass(REFERENCE_OBJECT); - createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_OPTIONAL); - createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_LIST); - - containmentObjectEClass = createEClass(CONTAINMENT_OBJECT); - createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL); - createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_LIST); - - unorderedListEClass = createEClass(UNORDERED_LIST); - createEReference(unorderedListEClass, UNORDERED_LIST__CONTAINED); - createEReference(unorderedListEClass, UNORDERED_LIST__REFERENCED); - - propertiesMapEClass = createEClass(PROPERTIES_MAP); - createEAttribute(propertiesMapEClass, PROPERTIES_MAP__LABEL); - createEReference(propertiesMapEClass, PROPERTIES_MAP__PERSISTENT_MAP); - createEReference(propertiesMapEClass, PROPERTIES_MAP__TRANSIENT_MAP); - - propertiesMapEntryEClass = createEClass(PROPERTIES_MAP_ENTRY); - createEAttribute(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__KEY); - createEReference(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__VALUE); - - propertiesMapEntryValueEClass = createEClass(PROPERTIES_MAP_ENTRY_VALUE); - createEAttribute(propertiesMapEntryValueEClass, PROPERTIES_MAP_ENTRY_VALUE__LABEL); - - aEClass = createEClass(A); - createEReference(aEClass, A__OWNED_DS); - createEReference(aEClass, A__OWNED_BS); - - bEClass = createEClass(B); - createEReference(bEClass, B__OWNED_C); - - cEClass = createEClass(C); - - dEClass = createEClass(D); - createEReference(dEClass, D__DATA); - - eEClass = createEClass(E); - createEReference(eEClass, E__OWNED_AS); - - fEClass = createEClass(F); - createEReference(fEClass, F__OWNED_ES); - - gEClass = createEClass(G); - createEAttribute(gEClass, G__DUMMY); - createEReference(gEClass, G__REFERENCE); - createEReference(gEClass, G__LIST); - - myEnumListEClass = createEClass(MY_ENUM_LIST); - createEAttribute(myEnumListEClass, MY_ENUM_LIST__MY_ENUM); - - myEnumListUnsettableEClass = createEClass(MY_ENUM_LIST_UNSETTABLE); - createEAttribute(myEnumListUnsettableEClass, MY_ENUM_LIST_UNSETTABLE__MY_ENUM); - - holderEClass = createEClass(HOLDER); - createEReference(holderEClass, HOLDER__HELD); - createEReference(holderEClass, HOLDER__OWNED); - - thingEClass = createEClass(THING); - - holdableEClass = createEClass(HOLDABLE); - createEAttribute(holdableEClass, HOLDABLE__NAME); - - hasNillableAttributeEClass = createEClass(HAS_NILLABLE_ATTRIBUTE); - createEAttribute(hasNillableAttributeEClass, HAS_NILLABLE_ATTRIBUTE__NILLABLE); - - // Create enums - myEnumEEnum = createEEnum(MY_ENUM); - - // Create data types - myStringEDataType = createEDataType(MY_STRING); - } - - /** - * - * @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); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - referenceObjectEClass.getESuperTypes().add(getBaseObject()); - containmentObjectEClass.getESuperTypes().add(getBaseObject()); - holderEClass.getESuperTypes().add(getHoldable()); - thingEClass.getESuperTypes().add(getHoldable()); - - // Initialize classes and features; add operations and parameters - initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRoot_ListA(), getBaseObject(), null, "listA", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListB(), getBaseObject(), null, "listB", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListC(), getBaseObject(), null, "listC", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListD(), getBaseObject(), null, "listD", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(baseObjectEClass, BaseObject.class, "BaseObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getBaseObject_AttributeOptional(), ecorePackage.getEString(), "attributeOptional", null, 0, 1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getBaseObject_AttributeRequired(), ecorePackage.getEString(), "attributeRequired", null, 1, 1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getBaseObject_AttributeList(), ecorePackage.getEString(), "attributeList", null, 0, -1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(referenceObjectEClass, ReferenceObject.class, "ReferenceObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getReferenceObject_ReferenceOptional(), getBaseObject(), null, "referenceOptional", null, 0, 1, - ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getReferenceObject_ReferenceList(), getBaseObject(), null, "referenceList", null, 0, -1, - ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(containmentObjectEClass, ContainmentObject.class, "ContainmentObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getContainmentObject_ContainmentOptional(), getBaseObject(), null, "containmentOptional", null, 0, - 1, ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainmentObject_ContainmentList(), getBaseObject(), null, "containmentList", null, 0, -1, - ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(unorderedListEClass, UnorderedList.class, "UnorderedList", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getUnorderedList_Contained(), getUnorderedList(), null, "contained", null, 0, -1, - UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getUnorderedList_Referenced(), getUnorderedList(), null, "referenced", null, 0, -1, - UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(propertiesMapEClass, PropertiesMap.class, "PropertiesMap", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMap_Label(), ecorePackage.getEString(), "label", null, 0, 1, PropertiesMap.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMap_PersistentMap(), getPropertiesMapEntry(), null, "persistentMap", null, 0, -1, - PropertiesMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMap_TransientMap(), getPropertiesMapEntry(), null, "transientMap", null, 0, -1, - PropertiesMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(propertiesMapEntryEClass, Map.Entry.class, "PropertiesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMapEntry_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMapEntry_Value(), getPropertiesMapEntryValue(), null, "value", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(propertiesMapEntryValueEClass, PropertiesMapEntryValue.class, "PropertiesMapEntryValue", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMapEntryValue_Label(), ecorePackage.getEString(), "label", null, 0, 1, - PropertiesMapEntryValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(aEClass, A.class, "A", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getA_OwnedDs(), getD(), null, "ownedDs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getA_OwnedBs(), getB(), null, "ownedBs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(bEClass, B.class, "B", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getB_OwnedC(), getC(), null, "ownedC", null, 0, 1, B.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cEClass, C.class, "C", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(dEClass, D.class, "D", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getD_Data(), ecorePackage.getEObject(), null, "data", null, 0, 1, D.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(eEClass, E.class, "E", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getE_OwnedAs(), getA(), null, "ownedAs", null, 0, -1, E.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(fEClass, F.class, "F", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getF_OwnedEs(), getE(), null, "ownedEs", null, 0, -1, F.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(gEClass, G.class, "G", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getG_Dummy(), ecorePackage.getEString(), "dummy", null, 1, 1, G.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getG_Reference(), getBaseObject(), null, "reference", null, 1, 1, G.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getG_List(), getBaseObject(), null, "list", null, 0, -1, G.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isAttributeModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isReferenceModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isListModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - initEClass(myEnumListEClass, MyEnumList.class, "MyEnumList", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMyEnumList_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumList.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(myEnumListUnsettableEClass, MyEnumListUnsettable.class, "MyEnumListUnsettable", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMyEnumListUnsettable_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumListUnsettable.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(holderEClass, Holder.class, "Holder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getHolder_Held(), getHoldable(), null, "held", null, 0, -1, Holder.class, IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, - IS_ORDERED); - initEReference(getHolder_Owned(), getHoldable(), null, "owned", null, 0, -1, Holder.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(thingEClass, Thing.class, "Thing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(holdableEClass, Holdable.class, "Holdable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHoldable_Name(), ecorePackage.getEString(), "name", null, 1, 1, Holdable.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(hasNillableAttributeEClass, HasNillableAttribute.class, "HasNillableAttribute", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHasNillableAttribute_Nillable(), getMyString(), "nillable", null, 0, 1, - HasNillableAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(myEnumEEnum, MyEnum.class, "MyEnum"); - addEEnumLiteral(myEnumEEnum, MyEnum.ZERO); - addEEnumLiteral(myEnumEEnum, MyEnum.ONE); - addEEnumLiteral(myEnumEEnum, MyEnum.TWO); - addEEnumLiteral(myEnumEEnum, MyEnum.THREE); - - // Initialize data types - initEDataType(myStringEDataType, String.class, "MyString", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http://www.eclipse.org/emf/CDO - createCDOAnnotations(); - } - - /** - * Initializes the annotations for http://www.eclipse.org/emf/CDO. - * - * - * @generated - */ - protected void createCDOAnnotations() - { - String source = "http://www.eclipse.org/emf/CDO"; - addAnnotation(getHolder_Held(), source, new String[] { "persistent", "true", "filter", "owned" }); - } - -} // Model6PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListImpl.java deleted file mode 100644 index e5954cc328..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/MyEnumListImpl.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 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 - */ -package org.eclipse.emf.cdo.tests.legacy.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumList; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; - -import java.util.Collection; - -/** - * - * An implementation of the model object 'My Enum List'. - * - *
- * 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: - *
- * The following features are implemented: - *
- *
- * - * @generated - */ -public class ThingImpl extends HoldableImpl implements Thing -{ - /** - * - * - * @generated - */ - protected ThingImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getThing(); - } - -} // ThingImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/UnorderedListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/UnorderedListImpl.java deleted file mode 100644 index a5f33917d2..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/UnorderedListImpl.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 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 - */ -package org.eclipse.emf.cdo.tests.legacy.model6.impl; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.UnorderedList; - -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.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'Unordered List'. - *- * The following features are implemented: - *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public class CImpl extends EObjectImpl implements C +{ + /** + * + * @generated + */ + protected CImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getC(); + } + +} // CImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java new file mode 100644 index 0000000000..c545cd9b95 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java @@ -0,0 +1,272 @@ +/* + * Copyright (c) 2004 - 2012 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 + */ +package org.eclipse.emf.cdo.tests.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.ContainmentObject; + +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Containment Object'. + *+ * 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: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * 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.model6.Model6Package#eNS_URI + * @see #init() + * @generated + */ + private Model6PackageImpl() + { + super(eNS_URI, Model6Factory.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 Model6Package#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 Model6Package init() + { + if (isInited) + { + return (Model6Package)EPackage.Registry.INSTANCE.getEPackage(Model6Package.eNS_URI); + } + + // Obtain or create and register package + Model6PackageImpl theModel6Package = (Model6PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model6PackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) : new Model6PackageImpl()); + + isInited = true; + + // Create package meta-data objects + theModel6Package.createPackageContents(); + + // Initialize created meta-data + theModel6Package.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theModel6Package.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(Model6Package.eNS_URI, theModel6Package); + return theModel6Package; + } + + /** + * + * @generated + */ + public EClass getRoot() + { + return rootEClass; + } + + /** + * + * @generated + */ + public EReference getRoot_ListA() + { + return (EReference)rootEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getRoot_ListB() + { + return (EReference)rootEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EReference getRoot_ListC() + { + return (EReference)rootEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EReference getRoot_ListD() + { + return (EReference)rootEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EClass getBaseObject() + { + return baseObjectEClass; + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeOptional() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeRequired() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeList() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EClass getReferenceObject() + { + return referenceObjectEClass; + } + + /** + * + * @generated + */ + public EReference getReferenceObject_ReferenceOptional() + { + return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getReferenceObject_ReferenceList() + { + return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getContainmentObject() + { + return containmentObjectEClass; + } + + /** + * + * @generated + */ + public EReference getContainmentObject_ContainmentOptional() + { + return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getContainmentObject_ContainmentList() + { + return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getUnorderedList() + { + return unorderedListEClass; + } + + /** + * + * @generated + */ + public EReference getUnorderedList_Contained() + { + return (EReference)unorderedListEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getUnorderedList_Referenced() + { + return (EReference)unorderedListEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMap() + { + return propertiesMapEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMap_Label() + { + return (EAttribute)propertiesMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMap_PersistentMap() + { + return (EReference)propertiesMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMap_TransientMap() + { + return (EReference)propertiesMapEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMapEntry() + { + return propertiesMapEntryEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMapEntry_Key() + { + return (EAttribute)propertiesMapEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMapEntry_Value() + { + return (EReference)propertiesMapEntryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMapEntryValue() + { + return propertiesMapEntryValueEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMapEntryValue_Label() + { + return (EAttribute)propertiesMapEntryValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getA() + { + return aEClass; + } + + /** + * + * @generated + */ + public EReference getA_OwnedDs() + { + return (EReference)aEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getA_OwnedBs() + { + return (EReference)aEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getB() + { + return bEClass; + } + + /** + * + * @generated + */ + public EReference getB_OwnedC() + { + return (EReference)bEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getC() + { + return cEClass; + } + + /** + * + * @generated + */ + public EClass getD() + { + return dEClass; + } + + /** + * + * @generated + */ + public EReference getD_Data() + { + return (EReference)dEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getE() + { + return eEClass; + } + + /** + * + * @generated + */ + public EReference getE_OwnedAs() + { + return (EReference)eEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getF() + { + return fEClass; + } + + /** + * + * @generated + */ + public EReference getF_OwnedEs() + { + return (EReference)fEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getG() + { + return gEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getG_Dummy() + { + return (EAttribute)gEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getG_Reference() + { + return (EReference)gEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getG_List() + { + return (EReference)gEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getMyEnumList() + { + return myEnumListEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMyEnumList_MyEnum() + { + return (EAttribute)myEnumListEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMyEnumListUnsettable() + { + return myEnumListUnsettableEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMyEnumListUnsettable_MyEnum() + { + return (EAttribute)myEnumListUnsettableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHolder() + { + return holderEClass; + } + + /** + * + * + * @generated + */ + public EReference getHolder_Held() + { + return (EReference)holderEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getHolder_Owned() + { + return (EReference)holderEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getThing() + { + return thingEClass; + } + + /** + * + * + * @generated + */ + public EClass getHoldable() + { + return holdableEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHoldable_Name() + { + return (EAttribute)holdableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHasNillableAttribute() + { + return hasNillableAttributeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHasNillableAttribute_Nillable() + { + return (EAttribute)hasNillableAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EEnum getMyEnum() + { + return myEnumEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getMyString() + { + return myStringEDataType; + } + + /** + * + * @generated + */ + public Model6Factory getModel6Factory() + { + return (Model6Factory)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 + rootEClass = createEClass(ROOT); + createEReference(rootEClass, ROOT__LIST_A); + createEReference(rootEClass, ROOT__LIST_B); + createEReference(rootEClass, ROOT__LIST_C); + createEReference(rootEClass, ROOT__LIST_D); + + baseObjectEClass = createEClass(BASE_OBJECT); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_OPTIONAL); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_REQUIRED); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_LIST); + + referenceObjectEClass = createEClass(REFERENCE_OBJECT); + createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_OPTIONAL); + createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_LIST); + + containmentObjectEClass = createEClass(CONTAINMENT_OBJECT); + createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL); + createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_LIST); + + unorderedListEClass = createEClass(UNORDERED_LIST); + createEReference(unorderedListEClass, UNORDERED_LIST__CONTAINED); + createEReference(unorderedListEClass, UNORDERED_LIST__REFERENCED); + + propertiesMapEClass = createEClass(PROPERTIES_MAP); + createEAttribute(propertiesMapEClass, PROPERTIES_MAP__LABEL); + createEReference(propertiesMapEClass, PROPERTIES_MAP__PERSISTENT_MAP); + createEReference(propertiesMapEClass, PROPERTIES_MAP__TRANSIENT_MAP); + + propertiesMapEntryEClass = createEClass(PROPERTIES_MAP_ENTRY); + createEAttribute(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__KEY); + createEReference(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__VALUE); + + propertiesMapEntryValueEClass = createEClass(PROPERTIES_MAP_ENTRY_VALUE); + createEAttribute(propertiesMapEntryValueEClass, PROPERTIES_MAP_ENTRY_VALUE__LABEL); + + aEClass = createEClass(A); + createEReference(aEClass, A__OWNED_DS); + createEReference(aEClass, A__OWNED_BS); + + bEClass = createEClass(B); + createEReference(bEClass, B__OWNED_C); + + cEClass = createEClass(C); + + dEClass = createEClass(D); + createEReference(dEClass, D__DATA); + + eEClass = createEClass(E); + createEReference(eEClass, E__OWNED_AS); + + fEClass = createEClass(F); + createEReference(fEClass, F__OWNED_ES); + + gEClass = createEClass(G); + createEAttribute(gEClass, G__DUMMY); + createEReference(gEClass, G__REFERENCE); + createEReference(gEClass, G__LIST); + + myEnumListEClass = createEClass(MY_ENUM_LIST); + createEAttribute(myEnumListEClass, MY_ENUM_LIST__MY_ENUM); + + myEnumListUnsettableEClass = createEClass(MY_ENUM_LIST_UNSETTABLE); + createEAttribute(myEnumListUnsettableEClass, MY_ENUM_LIST_UNSETTABLE__MY_ENUM); + + holderEClass = createEClass(HOLDER); + createEReference(holderEClass, HOLDER__HELD); + createEReference(holderEClass, HOLDER__OWNED); + + thingEClass = createEClass(THING); + + holdableEClass = createEClass(HOLDABLE); + createEAttribute(holdableEClass, HOLDABLE__NAME); + + hasNillableAttributeEClass = createEClass(HAS_NILLABLE_ATTRIBUTE); + createEAttribute(hasNillableAttributeEClass, HAS_NILLABLE_ATTRIBUTE__NILLABLE); + + // Create enums + myEnumEEnum = createEEnum(MY_ENUM); + + // Create data types + myStringEDataType = createEDataType(MY_STRING); + } + + /** + * + * @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); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + referenceObjectEClass.getESuperTypes().add(getBaseObject()); + containmentObjectEClass.getESuperTypes().add(getBaseObject()); + holderEClass.getESuperTypes().add(getHoldable()); + thingEClass.getESuperTypes().add(getHoldable()); + + // Initialize classes and features; add operations and parameters + initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRoot_ListA(), getBaseObject(), null, "listA", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListB(), getBaseObject(), null, "listB", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListC(), getBaseObject(), null, "listC", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListD(), getBaseObject(), null, "listD", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(baseObjectEClass, BaseObject.class, "BaseObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBaseObject_AttributeOptional(), ecorePackage.getEString(), "attributeOptional", null, 0, 1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getBaseObject_AttributeRequired(), ecorePackage.getEString(), "attributeRequired", null, 1, 1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getBaseObject_AttributeList(), ecorePackage.getEString(), "attributeList", null, 0, -1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(referenceObjectEClass, ReferenceObject.class, "ReferenceObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getReferenceObject_ReferenceOptional(), getBaseObject(), null, "referenceOptional", null, 0, 1, + ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getReferenceObject_ReferenceList(), getBaseObject(), null, "referenceList", null, 0, -1, + ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containmentObjectEClass, ContainmentObject.class, "ContainmentObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getContainmentObject_ContainmentOptional(), getBaseObject(), null, "containmentOptional", null, 0, + 1, ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContainmentObject_ContainmentList(), getBaseObject(), null, "containmentList", null, 0, -1, + ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(unorderedListEClass, UnorderedList.class, "UnorderedList", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getUnorderedList_Contained(), getUnorderedList(), null, "contained", null, 0, -1, + UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getUnorderedList_Referenced(), getUnorderedList(), null, "referenced", null, 0, -1, + UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(propertiesMapEClass, PropertiesMap.class, "PropertiesMap", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMap_Label(), ecorePackage.getEString(), "label", null, 0, 1, PropertiesMap.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMap_PersistentMap(), getPropertiesMapEntry(), null, "persistentMap", null, 0, -1, + PropertiesMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMap_TransientMap(), getPropertiesMapEntry(), null, "transientMap", null, 0, -1, + PropertiesMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(propertiesMapEntryEClass, Map.Entry.class, "PropertiesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, + !IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMapEntry_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMapEntry_Value(), getPropertiesMapEntryValue(), null, "value", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(propertiesMapEntryValueEClass, PropertiesMapEntryValue.class, "PropertiesMapEntryValue", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMapEntryValue_Label(), ecorePackage.getEString(), "label", null, 0, 1, + PropertiesMapEntryValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(aEClass, A.class, "A", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getA_OwnedDs(), getD(), null, "ownedDs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getA_OwnedBs(), getB(), null, "ownedBs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(bEClass, B.class, "B", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getB_OwnedC(), getC(), null, "ownedC", null, 0, 1, B.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(cEClass, C.class, "C", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(dEClass, D.class, "D", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getD_Data(), ecorePackage.getEObject(), null, "data", null, 0, 1, D.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(eEClass, E.class, "E", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getE_OwnedAs(), getA(), null, "ownedAs", null, 0, -1, E.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(fEClass, F.class, "F", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getF_OwnedEs(), getE(), null, "ownedEs", null, 0, -1, F.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(gEClass, G.class, "G", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getG_Dummy(), ecorePackage.getEString(), "dummy", null, 1, 1, G.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getG_Reference(), getBaseObject(), null, "reference", null, 1, 1, G.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getG_List(), getBaseObject(), null, "list", null, 0, -1, G.class, !IS_TRANSIENT, !IS_VOLATILE, + IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isAttributeModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isReferenceModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isListModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(myEnumListEClass, MyEnumList.class, "MyEnumList", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMyEnumList_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumList.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(myEnumListUnsettableEClass, MyEnumListUnsettable.class, "MyEnumListUnsettable", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMyEnumListUnsettable_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumListUnsettable.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(holderEClass, Holder.class, "Holder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHolder_Held(), getHoldable(), null, "held", null, 0, -1, Holder.class, IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, + IS_ORDERED); + initEReference(getHolder_Owned(), getHoldable(), null, "owned", null, 0, -1, Holder.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(thingEClass, Thing.class, "Thing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(holdableEClass, Holdable.class, "Holdable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHoldable_Name(), ecorePackage.getEString(), "name", null, 1, 1, Holdable.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hasNillableAttributeEClass, HasNillableAttribute.class, "HasNillableAttribute", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHasNillableAttribute_Nillable(), getMyString(), "nillable", null, 0, 1, + HasNillableAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(myEnumEEnum, MyEnum.class, "MyEnum"); + addEEnumLiteral(myEnumEEnum, MyEnum.ZERO); + addEEnumLiteral(myEnumEEnum, MyEnum.ONE); + addEEnumLiteral(myEnumEEnum, MyEnum.TWO); + addEEnumLiteral(myEnumEEnum, MyEnum.THREE); + + // Initialize data types + initEDataType(myStringEDataType, String.class, "MyString", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/CDO + createCDOAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/CDO. + * + * + * @generated + */ + protected void createCDOAnnotations() + { + String source = "http://www.eclipse.org/emf/CDO"; + addAnnotation(getHolder_Held(), source, new String[] { "persistent", "true", "filter", "owned" }); + } + +} // Model6PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java new file mode 100644 index 0000000000..b618782c20 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java @@ -0,0 +1,170 @@ +/* + * Copyright (c) 2004 - 2012 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 + */ +package org.eclipse.emf.cdo.tests.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumList; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import java.util.Collection; + +/** + * + * An implementation of the model object 'My Enum List'. + * + *
+ * 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: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public class ThingImpl extends HoldableImpl implements Thing +{ + /** + * + * + * @generated + */ + protected ThingImpl() + { + super(); + } + + /** + * + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getThing(); + } + +} // ThingImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java new file mode 100644 index 0000000000..f22f45d22a --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java @@ -0,0 +1,198 @@ +/* + * Copyright (c) 2004 - 2012 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 + */ +package org.eclipse.emf.cdo.tests.model6.impl.legacy; + +import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; +import org.eclipse.emf.cdo.tests.model6.UnorderedList; + +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.EObjectImpl; +import org.eclipse.emf.ecore.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.EObjectResolvingEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object 'Unordered List'. + *+ * The following features are implemented: + *
- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are implemented: - *
- *
- * - * @generated - */ -public class CImpl extends EObjectImpl implements C -{ - /** - * - * @generated - */ - protected CImpl() - { - super(); - } - - /** - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getC(); - } - -} // CImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java deleted file mode 100644 index c545cd9b95..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/ContainmentObjectImpl.java +++ /dev/null @@ -1,272 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 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 - */ -package org.eclipse.emf.cdo.tests.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.BaseObject; -import org.eclipse.emf.cdo.tests.model6.ContainmentObject; - -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.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object ' Containment Object'. - *- * 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: - *
- * The following features are implemented: - *
- * The following features are implemented: - *
- * 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.model6.Model6Package#eNS_URI - * @see #init() - * @generated - */ - private Model6PackageImpl() - { - super(eNS_URI, Model6Factory.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 Model6Package#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 Model6Package init() - { - if (isInited) - { - return (Model6Package)EPackage.Registry.INSTANCE.getEPackage(Model6Package.eNS_URI); - } - - // Obtain or create and register package - Model6PackageImpl theModel6Package = (Model6PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model6PackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new Model6PackageImpl()); - - isInited = true; - - // Create package meta-data objects - theModel6Package.createPackageContents(); - - // Initialize created meta-data - theModel6Package.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theModel6Package.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(Model6Package.eNS_URI, theModel6Package); - return theModel6Package; - } - - /** - * - * @generated - */ - public EClass getRoot() - { - return rootEClass; - } - - /** - * - * @generated - */ - public EReference getRoot_ListA() - { - return (EReference)rootEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getRoot_ListB() - { - return (EReference)rootEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EReference getRoot_ListC() - { - return (EReference)rootEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EReference getRoot_ListD() - { - return (EReference)rootEClass.getEStructuralFeatures().get(3); - } - - /** - * - * @generated - */ - public EClass getBaseObject() - { - return baseObjectEClass; - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeOptional() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeRequired() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EAttribute getBaseObject_AttributeList() - { - return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2); - } - - /** - * - * @generated - */ - public EClass getReferenceObject() - { - return referenceObjectEClass; - } - - /** - * - * @generated - */ - public EReference getReferenceObject_ReferenceOptional() - { - return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getReferenceObject_ReferenceList() - { - return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getContainmentObject() - { - return containmentObjectEClass; - } - - /** - * - * @generated - */ - public EReference getContainmentObject_ContainmentOptional() - { - return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getContainmentObject_ContainmentList() - { - return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getUnorderedList() - { - return unorderedListEClass; - } - - /** - * - * @generated - */ - public EReference getUnorderedList_Contained() - { - return (EReference)unorderedListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getUnorderedList_Referenced() - { - return (EReference)unorderedListEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMap() - { - return propertiesMapEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMap_Label() - { - return (EAttribute)propertiesMapEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMap_PersistentMap() - { - return (EReference)propertiesMapEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMap_TransientMap() - { - return (EReference)propertiesMapEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMapEntry() - { - return propertiesMapEntryEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMapEntry_Key() - { - return (EAttribute)propertiesMapEntryEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getPropertiesMapEntry_Value() - { - return (EReference)propertiesMapEntryEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getPropertiesMapEntryValue() - { - return propertiesMapEntryValueEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getPropertiesMapEntryValue_Label() - { - return (EAttribute)propertiesMapEntryValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getA() - { - return aEClass; - } - - /** - * - * @generated - */ - public EReference getA_OwnedDs() - { - return (EReference)aEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EReference getA_OwnedBs() - { - return (EReference)aEClass.getEStructuralFeatures().get(1); - } - - /** - * - * @generated - */ - public EClass getB() - { - return bEClass; - } - - /** - * - * @generated - */ - public EReference getB_OwnedC() - { - return (EReference)bEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getC() - { - return cEClass; - } - - /** - * - * @generated - */ - public EClass getD() - { - return dEClass; - } - - /** - * - * @generated - */ - public EReference getD_Data() - { - return (EReference)dEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getE() - { - return eEClass; - } - - /** - * - * @generated - */ - public EReference getE_OwnedAs() - { - return (EReference)eEClass.getEStructuralFeatures().get(0); - } - - /** - * - * @generated - */ - public EClass getF() - { - return fEClass; - } - - /** - * - * @generated - */ - public EReference getF_OwnedEs() - { - return (EReference)fEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getG() - { - return gEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getG_Dummy() - { - return (EAttribute)gEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getG_Reference() - { - return (EReference)gEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EReference getG_List() - { - return (EReference)gEClass.getEStructuralFeatures().get(2); - } - - /** - * - * - * @generated - */ - public EClass getMyEnumList() - { - return myEnumListEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMyEnumList_MyEnum() - { - return (EAttribute)myEnumListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getMyEnumListUnsettable() - { - return myEnumListUnsettableEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMyEnumListUnsettable_MyEnum() - { - return (EAttribute)myEnumListUnsettableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getHolder() - { - return holderEClass; - } - - /** - * - * - * @generated - */ - public EReference getHolder_Held() - { - return (EReference)holderEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getHolder_Owned() - { - return (EReference)holderEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getThing() - { - return thingEClass; - } - - /** - * - * - * @generated - */ - public EClass getHoldable() - { - return holdableEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHoldable_Name() - { - return (EAttribute)holdableEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getHasNillableAttribute() - { - return hasNillableAttributeEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getHasNillableAttribute_Nillable() - { - return (EAttribute)hasNillableAttributeEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EEnum getMyEnum() - { - return myEnumEEnum; - } - - /** - * - * - * @generated - */ - public EDataType getMyString() - { - return myStringEDataType; - } - - /** - * - * @generated - */ - public Model6Factory getModel6Factory() - { - return (Model6Factory)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 - rootEClass = createEClass(ROOT); - createEReference(rootEClass, ROOT__LIST_A); - createEReference(rootEClass, ROOT__LIST_B); - createEReference(rootEClass, ROOT__LIST_C); - createEReference(rootEClass, ROOT__LIST_D); - - baseObjectEClass = createEClass(BASE_OBJECT); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_OPTIONAL); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_REQUIRED); - createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_LIST); - - referenceObjectEClass = createEClass(REFERENCE_OBJECT); - createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_OPTIONAL); - createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_LIST); - - containmentObjectEClass = createEClass(CONTAINMENT_OBJECT); - createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL); - createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_LIST); - - unorderedListEClass = createEClass(UNORDERED_LIST); - createEReference(unorderedListEClass, UNORDERED_LIST__CONTAINED); - createEReference(unorderedListEClass, UNORDERED_LIST__REFERENCED); - - propertiesMapEClass = createEClass(PROPERTIES_MAP); - createEAttribute(propertiesMapEClass, PROPERTIES_MAP__LABEL); - createEReference(propertiesMapEClass, PROPERTIES_MAP__PERSISTENT_MAP); - createEReference(propertiesMapEClass, PROPERTIES_MAP__TRANSIENT_MAP); - - propertiesMapEntryEClass = createEClass(PROPERTIES_MAP_ENTRY); - createEAttribute(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__KEY); - createEReference(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__VALUE); - - propertiesMapEntryValueEClass = createEClass(PROPERTIES_MAP_ENTRY_VALUE); - createEAttribute(propertiesMapEntryValueEClass, PROPERTIES_MAP_ENTRY_VALUE__LABEL); - - aEClass = createEClass(A); - createEReference(aEClass, A__OWNED_DS); - createEReference(aEClass, A__OWNED_BS); - - bEClass = createEClass(B); - createEReference(bEClass, B__OWNED_C); - - cEClass = createEClass(C); - - dEClass = createEClass(D); - createEReference(dEClass, D__DATA); - - eEClass = createEClass(E); - createEReference(eEClass, E__OWNED_AS); - - fEClass = createEClass(F); - createEReference(fEClass, F__OWNED_ES); - - gEClass = createEClass(G); - createEAttribute(gEClass, G__DUMMY); - createEReference(gEClass, G__REFERENCE); - createEReference(gEClass, G__LIST); - - myEnumListEClass = createEClass(MY_ENUM_LIST); - createEAttribute(myEnumListEClass, MY_ENUM_LIST__MY_ENUM); - - myEnumListUnsettableEClass = createEClass(MY_ENUM_LIST_UNSETTABLE); - createEAttribute(myEnumListUnsettableEClass, MY_ENUM_LIST_UNSETTABLE__MY_ENUM); - - holderEClass = createEClass(HOLDER); - createEReference(holderEClass, HOLDER__HELD); - createEReference(holderEClass, HOLDER__OWNED); - - thingEClass = createEClass(THING); - - holdableEClass = createEClass(HOLDABLE); - createEAttribute(holdableEClass, HOLDABLE__NAME); - - hasNillableAttributeEClass = createEClass(HAS_NILLABLE_ATTRIBUTE); - createEAttribute(hasNillableAttributeEClass, HAS_NILLABLE_ATTRIBUTE__NILLABLE); - - // Create enums - myEnumEEnum = createEEnum(MY_ENUM); - - // Create data types - myStringEDataType = createEDataType(MY_STRING); - } - - /** - * - * @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); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - referenceObjectEClass.getESuperTypes().add(getBaseObject()); - containmentObjectEClass.getESuperTypes().add(getBaseObject()); - holderEClass.getESuperTypes().add(getHoldable()); - thingEClass.getESuperTypes().add(getHoldable()); - - // Initialize classes and features; add operations and parameters - initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getRoot_ListA(), getBaseObject(), null, "listA", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListB(), getBaseObject(), null, "listB", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListC(), getBaseObject(), null, "listC", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getRoot_ListD(), getBaseObject(), null, "listD", null, 0, -1, Root.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(baseObjectEClass, BaseObject.class, "BaseObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getBaseObject_AttributeOptional(), ecorePackage.getEString(), "attributeOptional", null, 0, 1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getBaseObject_AttributeRequired(), ecorePackage.getEString(), "attributeRequired", null, 1, 1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEAttribute(getBaseObject_AttributeList(), ecorePackage.getEString(), "attributeList", null, 0, -1, - BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(referenceObjectEClass, ReferenceObject.class, "ReferenceObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getReferenceObject_ReferenceOptional(), getBaseObject(), null, "referenceOptional", null, 0, 1, - ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getReferenceObject_ReferenceList(), getBaseObject(), null, "referenceList", null, 0, -1, - ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(containmentObjectEClass, ContainmentObject.class, "ContainmentObject", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getContainmentObject_ContainmentOptional(), getBaseObject(), null, "containmentOptional", null, 0, - 1, ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getContainmentObject_ContainmentList(), getBaseObject(), null, "containmentList", null, 0, -1, - ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(unorderedListEClass, UnorderedList.class, "UnorderedList", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEReference(getUnorderedList_Contained(), getUnorderedList(), null, "contained", null, 0, -1, - UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - initEReference(getUnorderedList_Referenced(), getUnorderedList(), null, "referenced", null, 0, -1, - UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); - - initEClass(propertiesMapEClass, PropertiesMap.class, "PropertiesMap", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMap_Label(), ecorePackage.getEString(), "label", null, 0, 1, PropertiesMap.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMap_PersistentMap(), getPropertiesMapEntry(), null, "persistentMap", null, 0, -1, - PropertiesMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMap_TransientMap(), getPropertiesMapEntry(), null, "transientMap", null, 0, -1, - PropertiesMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, - !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(propertiesMapEntryEClass, Map.Entry.class, "PropertiesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, - !IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMapEntry_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getPropertiesMapEntry_Value(), getPropertiesMapEntryValue(), null, "value", null, 0, 1, - Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, - IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(propertiesMapEntryValueEClass, PropertiesMapEntryValue.class, "PropertiesMapEntryValue", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getPropertiesMapEntryValue_Label(), ecorePackage.getEString(), "label", null, 0, 1, - PropertiesMapEntryValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(aEClass, A.class, "A", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getA_OwnedDs(), getD(), null, "ownedDs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getA_OwnedBs(), getB(), null, "ownedBs", null, 0, -1, A.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(bEClass, B.class, "B", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getB_OwnedC(), getC(), null, "ownedC", null, 0, 1, B.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(cEClass, C.class, "C", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(dEClass, D.class, "D", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getD_Data(), ecorePackage.getEObject(), null, "data", null, 0, 1, D.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(eEClass, E.class, "E", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getE_OwnedAs(), getA(), null, "ownedAs", null, 0, -1, E.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(fEClass, F.class, "F", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getF_OwnedEs(), getE(), null, "ownedEs", null, 0, -1, F.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(gEClass, G.class, "G", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getG_Dummy(), ecorePackage.getEString(), "dummy", null, 1, 1, G.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getG_Reference(), getBaseObject(), null, "reference", null, 1, 1, G.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - initEReference(getG_List(), getBaseObject(), null, "list", null, 0, -1, G.class, !IS_TRANSIENT, !IS_VOLATILE, - IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isAttributeModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isReferenceModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - addEOperation(gEClass, ecorePackage.getEBoolean(), "isListModified", 1, 1, IS_UNIQUE, IS_ORDERED); - - initEClass(myEnumListEClass, MyEnumList.class, "MyEnumList", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMyEnumList_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumList.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(myEnumListUnsettableEClass, MyEnumListUnsettable.class, "MyEnumListUnsettable", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMyEnumListUnsettable_MyEnum(), getMyEnum(), "myEnum", null, 0, -1, MyEnumListUnsettable.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(holderEClass, Holder.class, "Holder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEReference(getHolder_Held(), getHoldable(), null, "held", null, 0, -1, Holder.class, IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, - IS_ORDERED); - initEReference(getHolder_Owned(), getHoldable(), null, "owned", null, 0, -1, Holder.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, - IS_ORDERED); - - initEClass(thingEClass, Thing.class, "Thing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - - initEClass(holdableEClass, Holdable.class, "Holdable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHoldable_Name(), ecorePackage.getEString(), "name", null, 1, 1, Holdable.class, !IS_TRANSIENT, - !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(hasNillableAttributeEClass, HasNillableAttribute.class, "HasNillableAttribute", !IS_ABSTRACT, - !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getHasNillableAttribute_Nillable(), getMyString(), "nillable", null, 0, 1, - HasNillableAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(myEnumEEnum, MyEnum.class, "MyEnum"); - addEEnumLiteral(myEnumEEnum, MyEnum.ZERO); - addEEnumLiteral(myEnumEEnum, MyEnum.ONE); - addEEnumLiteral(myEnumEEnum, MyEnum.TWO); - addEEnumLiteral(myEnumEEnum, MyEnum.THREE); - - // Initialize data types - initEDataType(myStringEDataType, String.class, "MyString", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); - - // Create resource - createResource(eNS_URI); - - // Create annotations - // http://www.eclipse.org/emf/CDO - createCDOAnnotations(); - } - - /** - * Initializes the annotations for http://www.eclipse.org/emf/CDO. - * - * - * @generated - */ - protected void createCDOAnnotations() - { - String source = "http://www.eclipse.org/emf/CDO"; - addAnnotation(getHolder_Held(), source, new String[] { "persistent", "true", "filter", "owned" }); - } - -} // Model6PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java deleted file mode 100644 index b618782c20..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/MyEnumListImpl.java +++ /dev/null @@ -1,170 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 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 - */ -package org.eclipse.emf.cdo.tests.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.MyEnum; -import org.eclipse.emf.cdo.tests.model6.MyEnumList; - -import org.eclipse.emf.common.util.EList; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.EObjectImpl; -import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; - -import java.util.Collection; - -/** - * - * An implementation of the model object 'My Enum List'. - * - *
- * 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: - *
- * The following features are implemented: - *
- *
- * - * @generated - */ -public class ThingImpl extends HoldableImpl implements Thing -{ - /** - * - * - * @generated - */ - protected ThingImpl() - { - super(); - } - - /** - * - * - * @generated - */ - @Override - protected EClass eStaticClass() - { - return Model6Package.eINSTANCE.getThing(); - } - -} // ThingImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java deleted file mode 100644 index f22f45d22a..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/legacy/UnorderedListImpl.java +++ /dev/null @@ -1,198 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 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 - */ -package org.eclipse.emf.cdo.tests.model6.impl.legacy; - -import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package; -import org.eclipse.emf.cdo.tests.model6.UnorderedList; - -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.EObjectImpl; -import org.eclipse.emf.ecore.util.EObjectContainmentEList; -import org.eclipse.emf.ecore.util.EObjectResolvingEList; -import org.eclipse.emf.ecore.util.InternalEList; - -import java.util.Collection; - -/** - * An implementation of the model object 'Unordered List'. - *- * The following features are implemented: - *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ *
+ * + * @generated + */ +public class CImpl extends EObjectImpl implements C +{ + /** + * + * @generated + */ + protected CImpl() + { + super(); + } + + /** + * + * @generated + */ + @Override + protected EClass eStaticClass() + { + return Model6Package.eINSTANCE.getC(); + } + +} // CImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ContainmentObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ContainmentObjectImpl.java new file mode 100644 index 0000000000..5dccb0df94 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/ContainmentObjectImpl.java @@ -0,0 +1,272 @@ +/* + * Copyright (c) 2004 - 2012 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 + */ +package org.eclipse.emf.cdo.tests.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.BaseObject; +import org.eclipse.emf.cdo.tests.model6.ContainmentObject; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +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.util.EObjectContainmentEList; +import org.eclipse.emf.ecore.util.InternalEList; + +import java.util.Collection; + +/** + * An implementation of the model object ' Containment Object'. + *+ * 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: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * 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.model6.Model6Package#eNS_URI + * @see #init() + * @generated + */ + private Model6PackageImpl() + { + super(eNS_URI, Model6Factory.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 Model6Package#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 Model6Package init() + { + if (isInited) + return (Model6Package)EPackage.Registry.INSTANCE.getEPackage(Model6Package.eNS_URI); + + // Obtain or create and register package + Model6PackageImpl theModel6Package = (Model6PackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof Model6PackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) : new Model6PackageImpl()); + + isInited = true; + + // Create package meta-data objects + theModel6Package.createPackageContents(); + + // Initialize created meta-data + theModel6Package.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theModel6Package.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(Model6Package.eNS_URI, theModel6Package); + return theModel6Package; + } + + /** + * + * @generated + */ + public EClass getRoot() + { + return rootEClass; + } + + /** + * + * @generated + */ + public EReference getRoot_ListA() + { + return (EReference)rootEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getRoot_ListB() + { + return (EReference)rootEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EReference getRoot_ListC() + { + return (EReference)rootEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EReference getRoot_ListD() + { + return (EReference)rootEClass.getEStructuralFeatures().get(3); + } + + /** + * + * @generated + */ + public EClass getBaseObject() + { + return baseObjectEClass; + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeOptional() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeRequired() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EAttribute getBaseObject_AttributeList() + { + return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2); + } + + /** + * + * @generated + */ + public EClass getReferenceObject() + { + return referenceObjectEClass; + } + + /** + * + * @generated + */ + public EReference getReferenceObject_ReferenceOptional() + { + return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getReferenceObject_ReferenceList() + { + return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getContainmentObject() + { + return containmentObjectEClass; + } + + /** + * + * @generated + */ + public EReference getContainmentObject_ContainmentOptional() + { + return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getContainmentObject_ContainmentList() + { + return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getUnorderedList() + { + return unorderedListEClass; + } + + /** + * + * @generated + */ + public EReference getUnorderedList_Contained() + { + return (EReference)unorderedListEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getUnorderedList_Referenced() + { + return (EReference)unorderedListEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMap() + { + return propertiesMapEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMap_Label() + { + return (EAttribute)propertiesMapEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMap_PersistentMap() + { + return (EReference)propertiesMapEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMap_TransientMap() + { + return (EReference)propertiesMapEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMapEntry() + { + return propertiesMapEntryEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMapEntry_Key() + { + return (EAttribute)propertiesMapEntryEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getPropertiesMapEntry_Value() + { + return (EReference)propertiesMapEntryEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getPropertiesMapEntryValue() + { + return propertiesMapEntryValueEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getPropertiesMapEntryValue_Label() + { + return (EAttribute)propertiesMapEntryValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getA() + { + return aEClass; + } + + /** + * + * @generated + */ + public EReference getA_OwnedDs() + { + return (EReference)aEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getA_OwnedBs() + { + return (EReference)aEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getB() + { + return bEClass; + } + + /** + * + * @generated + */ + public EReference getB_OwnedC() + { + return (EReference)bEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getC() + { + return cEClass; + } + + /** + * + * @generated + */ + public EClass getD() + { + return dEClass; + } + + /** + * + * @generated + */ + public EReference getD_Data() + { + return (EReference)dEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getE() + { + return eEClass; + } + + /** + * + * @generated + */ + public EReference getE_OwnedAs() + { + return (EReference)eEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getF() + { + return fEClass; + } + + /** + * + * @generated + */ + public EReference getF_OwnedEs() + { + return (EReference)fEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getG() + { + return gEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getG_Dummy() + { + return (EAttribute)gEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getG_Reference() + { + return (EReference)gEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EReference getG_List() + { + return (EReference)gEClass.getEStructuralFeatures().get(2); + } + + /** + * + * + * @generated + */ + public EClass getMyEnumList() + { + return myEnumListEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMyEnumList_MyEnum() + { + return (EAttribute)myEnumListEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getMyEnumListUnsettable() + { + return myEnumListUnsettableEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getMyEnumListUnsettable_MyEnum() + { + return (EAttribute)myEnumListUnsettableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHolder() + { + return holderEClass; + } + + /** + * + * + * @generated + */ + public EReference getHolder_Held() + { + return (EReference)holderEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EReference getHolder_Owned() + { + return (EReference)holderEClass.getEStructuralFeatures().get(1); + } + + /** + * + * + * @generated + */ + public EClass getThing() + { + return thingEClass; + } + + /** + * + * + * @generated + */ + public EClass getHoldable() + { + return holdableEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHoldable_Name() + { + return (EAttribute)holdableEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EClass getHasNillableAttribute() + { + return hasNillableAttributeEClass; + } + + /** + * + * + * @generated + */ + public EAttribute getHasNillableAttribute_Nillable() + { + return (EAttribute)hasNillableAttributeEClass.getEStructuralFeatures().get(0); + } + + /** + * + * + * @generated + */ + public EEnum getMyEnum() + { + return myEnumEEnum; + } + + /** + * + * + * @generated + */ + public EDataType getMyString() + { + return myStringEDataType; + } + + /** + * + * @generated + */ + public Model6Factory getModel6Factory() + { + return (Model6Factory)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 + rootEClass = createEClass(ROOT); + createEReference(rootEClass, ROOT__LIST_A); + createEReference(rootEClass, ROOT__LIST_B); + createEReference(rootEClass, ROOT__LIST_C); + createEReference(rootEClass, ROOT__LIST_D); + + baseObjectEClass = createEClass(BASE_OBJECT); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_OPTIONAL); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_REQUIRED); + createEAttribute(baseObjectEClass, BASE_OBJECT__ATTRIBUTE_LIST); + + referenceObjectEClass = createEClass(REFERENCE_OBJECT); + createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_OPTIONAL); + createEReference(referenceObjectEClass, REFERENCE_OBJECT__REFERENCE_LIST); + + containmentObjectEClass = createEClass(CONTAINMENT_OBJECT); + createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL); + createEReference(containmentObjectEClass, CONTAINMENT_OBJECT__CONTAINMENT_LIST); + + unorderedListEClass = createEClass(UNORDERED_LIST); + createEReference(unorderedListEClass, UNORDERED_LIST__CONTAINED); + createEReference(unorderedListEClass, UNORDERED_LIST__REFERENCED); + + propertiesMapEClass = createEClass(PROPERTIES_MAP); + createEAttribute(propertiesMapEClass, PROPERTIES_MAP__LABEL); + createEReference(propertiesMapEClass, PROPERTIES_MAP__PERSISTENT_MAP); + createEReference(propertiesMapEClass, PROPERTIES_MAP__TRANSIENT_MAP); + + propertiesMapEntryEClass = createEClass(PROPERTIES_MAP_ENTRY); + createEAttribute(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__KEY); + createEReference(propertiesMapEntryEClass, PROPERTIES_MAP_ENTRY__VALUE); + + propertiesMapEntryValueEClass = createEClass(PROPERTIES_MAP_ENTRY_VALUE); + createEAttribute(propertiesMapEntryValueEClass, PROPERTIES_MAP_ENTRY_VALUE__LABEL); + + aEClass = createEClass(A); + createEReference(aEClass, A__OWNED_DS); + createEReference(aEClass, A__OWNED_BS); + + bEClass = createEClass(B); + createEReference(bEClass, B__OWNED_C); + + cEClass = createEClass(C); + + dEClass = createEClass(D); + createEReference(dEClass, D__DATA); + + eEClass = createEClass(E); + createEReference(eEClass, E__OWNED_AS); + + fEClass = createEClass(F); + createEReference(fEClass, F__OWNED_ES); + + gEClass = createEClass(G); + createEAttribute(gEClass, G__DUMMY); + createEReference(gEClass, G__REFERENCE); + createEReference(gEClass, G__LIST); + + myEnumListEClass = createEClass(MY_ENUM_LIST); + createEAttribute(myEnumListEClass, MY_ENUM_LIST__MY_ENUM); + + myEnumListUnsettableEClass = createEClass(MY_ENUM_LIST_UNSETTABLE); + createEAttribute(myEnumListUnsettableEClass, MY_ENUM_LIST_UNSETTABLE__MY_ENUM); + + holderEClass = createEClass(HOLDER); + createEReference(holderEClass, HOLDER__HELD); + createEReference(holderEClass, HOLDER__OWNED); + + thingEClass = createEClass(THING); + + holdableEClass = createEClass(HOLDABLE); + createEAttribute(holdableEClass, HOLDABLE__NAME); + + hasNillableAttributeEClass = createEClass(HAS_NILLABLE_ATTRIBUTE); + createEAttribute(hasNillableAttributeEClass, HAS_NILLABLE_ATTRIBUTE__NILLABLE); + + // Create enums + myEnumEEnum = createEEnum(MY_ENUM); + + // Create data types + myStringEDataType = createEDataType(MY_STRING); + } + + /** + * + * @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); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + referenceObjectEClass.getESuperTypes().add(this.getBaseObject()); + containmentObjectEClass.getESuperTypes().add(this.getBaseObject()); + holderEClass.getESuperTypes().add(this.getHoldable()); + thingEClass.getESuperTypes().add(this.getHoldable()); + + // Initialize classes and features; add operations and parameters + initEClass(rootEClass, Root.class, "Root", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getRoot_ListA(), this.getBaseObject(), null, "listA", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListB(), this.getBaseObject(), null, "listB", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListC(), this.getBaseObject(), null, "listC", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEReference(getRoot_ListD(), this.getBaseObject(), null, "listD", null, 0, -1, Root.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(baseObjectEClass, BaseObject.class, "BaseObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getBaseObject_AttributeOptional(), ecorePackage.getEString(), "attributeOptional", null, 0, 1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getBaseObject_AttributeRequired(), ecorePackage.getEString(), "attributeRequired", null, 1, 1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + initEAttribute(getBaseObject_AttributeList(), ecorePackage.getEString(), "attributeList", null, 0, -1, + BaseObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(referenceObjectEClass, ReferenceObject.class, "ReferenceObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getReferenceObject_ReferenceOptional(), this.getBaseObject(), null, "referenceOptional", null, 0, 1, + ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getReferenceObject_ReferenceList(), this.getBaseObject(), null, "referenceList", null, 0, -1, + ReferenceObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(containmentObjectEClass, ContainmentObject.class, "ContainmentObject", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getContainmentObject_ContainmentOptional(), this.getBaseObject(), null, "containmentOptional", null, + 0, 1, ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getContainmentObject_ContainmentList(), this.getBaseObject(), null, "containmentList", null, 0, -1, + ContainmentObject.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(unorderedListEClass, UnorderedList.class, "UnorderedList", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getUnorderedList_Contained(), this.getUnorderedList(), null, "contained", null, 0, -1, + UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + initEReference(getUnorderedList_Referenced(), this.getUnorderedList(), null, "referenced", null, 0, -1, + UnorderedList.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, !IS_ORDERED); + + initEClass(propertiesMapEClass, PropertiesMap.class, "PropertiesMap", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMap_Label(), ecorePackage.getEString(), "label", null, 0, 1, PropertiesMap.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMap_PersistentMap(), this.getPropertiesMapEntry(), null, "persistentMap", null, 0, -1, + PropertiesMap.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMap_TransientMap(), this.getPropertiesMapEntry(), null, "transientMap", null, 0, -1, + PropertiesMap.class, IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, + !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(propertiesMapEntryEClass, Map.Entry.class, "PropertiesMapEntry", !IS_ABSTRACT, !IS_INTERFACE, + !IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMapEntry_Key(), ecorePackage.getEString(), "key", null, 0, 1, Map.Entry.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getPropertiesMapEntry_Value(), this.getPropertiesMapEntryValue(), null, "value", null, 0, 1, + Map.Entry.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(propertiesMapEntryValueEClass, PropertiesMapEntryValue.class, "PropertiesMapEntryValue", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getPropertiesMapEntryValue_Label(), ecorePackage.getEString(), "label", null, 0, 1, + PropertiesMapEntryValue.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(aEClass, org.eclipse.emf.cdo.tests.model6.A.class, "A", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getA_OwnedDs(), this.getD(), null, "ownedDs", null, 0, -1, org.eclipse.emf.cdo.tests.model6.A.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + initEReference(getA_OwnedBs(), this.getB(), null, "ownedBs", null, 0, -1, org.eclipse.emf.cdo.tests.model6.A.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(bEClass, org.eclipse.emf.cdo.tests.model6.B.class, "B", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getB_OwnedC(), this.getC(), null, "ownedC", null, 0, 1, org.eclipse.emf.cdo.tests.model6.B.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(cEClass, org.eclipse.emf.cdo.tests.model6.C.class, "C", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + + initEClass(dEClass, org.eclipse.emf.cdo.tests.model6.D.class, "D", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getD_Data(), ecorePackage.getEObject(), null, "data", null, 0, 1, + org.eclipse.emf.cdo.tests.model6.D.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, + !IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(eEClass, org.eclipse.emf.cdo.tests.model6.E.class, "E", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getE_OwnedAs(), this.getA(), null, "ownedAs", null, 0, -1, org.eclipse.emf.cdo.tests.model6.E.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(fEClass, org.eclipse.emf.cdo.tests.model6.F.class, "F", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEReference(getF_OwnedEs(), this.getE(), null, "ownedEs", null, 0, -1, org.eclipse.emf.cdo.tests.model6.F.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(gEClass, org.eclipse.emf.cdo.tests.model6.G.class, "G", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getG_Dummy(), ecorePackage.getEString(), "dummy", null, 1, 1, + org.eclipse.emf.cdo.tests.model6.G.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, + IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getG_Reference(), this.getBaseObject(), null, "reference", null, 1, 1, + org.eclipse.emf.cdo.tests.model6.G.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getG_List(), this.getBaseObject(), null, "list", null, 0, -1, + org.eclipse.emf.cdo.tests.model6.G.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, + IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isAttributeModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isReferenceModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + addEOperation(gEClass, ecorePackage.getEBoolean(), "isListModified", 1, 1, IS_UNIQUE, IS_ORDERED); + + initEClass(myEnumListEClass, MyEnumList.class, "MyEnumList", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMyEnumList_MyEnum(), this.getMyEnum(), "myEnum", null, 0, -1, MyEnumList.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(myEnumListUnsettableEClass, MyEnumListUnsettable.class, "MyEnumListUnsettable", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMyEnumListUnsettable_MyEnum(), this.getMyEnum(), "myEnum", null, 0, -1, + MyEnumListUnsettable.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(holderEClass, Holder.class, "Holder", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEReference(getHolder_Held(), this.getHoldable(), null, "held", null, 0, -1, Holder.class, IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, IS_DERIVED, + IS_ORDERED); + initEReference(getHolder_Owned(), this.getHoldable(), null, "owned", null, 0, -1, Holder.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED, + IS_ORDERED); + + initEClass(thingEClass, Thing.class, "Thing", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + + initEClass(holdableEClass, Holdable.class, "Holdable", IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHoldable_Name(), ecorePackage.getEString(), "name", null, 1, 1, Holdable.class, !IS_TRANSIENT, + !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(hasNillableAttributeEClass, HasNillableAttribute.class, "HasNillableAttribute", !IS_ABSTRACT, + !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getHasNillableAttribute_Nillable(), this.getMyString(), "nillable", null, 0, 1, + HasNillableAttribute.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(myEnumEEnum, MyEnum.class, "MyEnum"); + addEEnumLiteral(myEnumEEnum, MyEnum.ZERO); + addEEnumLiteral(myEnumEEnum, MyEnum.ONE); + addEEnumLiteral(myEnumEEnum, MyEnum.TWO); + addEEnumLiteral(myEnumEEnum, MyEnum.THREE); + + // Initialize data types + initEDataType(myStringEDataType, String.class, "MyString", IS_SERIALIZABLE, !IS_GENERATED_INSTANCE_CLASS); + + // Create resource + createResource(eNS_URI); + + // Create annotations + // http://www.eclipse.org/emf/CDO + createCDOAnnotations(); + } + + /** + * Initializes the annotations for http://www.eclipse.org/emf/CDO. + * + * + * @generated + */ + protected void createCDOAnnotations() + { + String source = "http://www.eclipse.org/emf/CDO"; + addAnnotation(getHolder_Held(), source, new String[] { "persistent", "true", "filter", "owned" }); + } + +} // Model6PackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListImpl.java new file mode 100644 index 0000000000..66e0eed44b --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/legacy/impl/MyEnumListImpl.java @@ -0,0 +1,170 @@ +/* + * Copyright (c) 2004 - 2012 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 + */ +package org.eclipse.emf.cdo.tests.model6.legacy.impl; + +import org.eclipse.emf.cdo.tests.model6.MyEnum; +import org.eclipse.emf.cdo.tests.model6.MyEnumList; +import org.eclipse.emf.cdo.tests.model6.legacy.Model6Package; + +import org.eclipse.emf.common.util.EList; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.EObjectImpl; +import org.eclipse.emf.ecore.util.EDataTypeUniqueEList; + +import java.util.Collection; + +/** + * + * An implementation of the model object 'My Enum List'. + * + *
+ * 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: + *
+ * The following features are implemented: + *