Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2011-07-26 05:54:41 +0000
committerEike Stepper2011-07-26 05:54:41 +0000
commit0f8ed7d4359c117cf215b1789ea6e1989b3dbfad (patch)
tree0d8cbf44912d9d9f1f06465f884c5f1f7dc12699 /plugins/org.eclipse.emf.cdo.tests.model6
parentd175de7e5770859d4375ce952eb419465430892e (diff)
downloadcdo-0f8ed7d4359c117cf215b1789ea6e1989b3dbfad.tar.gz
cdo-0f8ed7d4359c117cf215b1789ea6e1989b3dbfad.tar.xz
cdo-0f8ed7d4359c117cf215b1789ea6e1989b3dbfad.zip
[349599] [CDO Tests] EMF runtime compatibility issue and duplicate code in test models
https://bugs.eclipse.org/bugs/show_bug.cgi?id=349599
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.model6')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/META-INF/MANIFEST.MF5
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/model/model6.genmodel2
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/model/model6.legacy.genmodel2
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java109
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java479
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ContainmentObjectImpl.java421
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java234
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java776
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java384
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java470
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/util/Model6AdapterFactory.java199
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/util/Model6Switch.java226
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/BaseObject.java145
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ContainmentObject.java94
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java101
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java1174
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ReferenceObject.java94
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Root.java139
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/BaseObjectImpl.java169
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ContainmentObjectImpl.java113
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6FactoryImpl.java234
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6PackageImpl.java765
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ReferenceObjectImpl.java112
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/RootImpl.java159
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6AdapterFactory.java336
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6Switch.java358
26 files changed, 3452 insertions, 3848 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.tests.model6/META-INF/MANIFEST.MF
index 1e49ed0cf4..8f0c70685a 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/META-INF/MANIFEST.MF
@@ -14,11 +14,6 @@ Export-Package: org.eclipse.emf.cdo.tests.legacy.model6;version="4.0.0";uses:="o
org.eclipse.emf.cdo.tests.legacy.model6,
org.eclipse.emf.common.notify,
org.eclipse.emf.ecore.impl",
- org.eclipse.emf.cdo.tests.legacy.model6.util;version="4.0.0";
- uses:="org.eclipse.emf.ecore,
- org.eclipse.emf.common.notify.impl,
- org.eclipse.emf.cdo.tests.legacy.model6,
- org.eclipse.emf.common.notify",
org.eclipse.emf.cdo.tests.model6;version="4.0.0";uses:="org.eclipse.emf.ecore,org.eclipse.emf.common.util",
org.eclipse.emf.cdo.tests.model6.impl;version="4.0.0";
uses:="org.eclipse.emf.ecore,
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.genmodel b/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.genmodel
index daa9902c98..7ceef8889a 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.genmodel
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/model/model6.genmodel
@@ -8,7 +8,7 @@
updateClasspath="false" rootExtendsClass="org.eclipse.emf.internal.cdo.CDOObjectImpl"
reflectiveDelegation="true" codeFormatting="true" testsDirectory="" testSuiteClass="org.eclipse.emf.cdo.tests.model6.tests.model6AllTests"
importerID="org.eclipse.emf.importer.cdo" featureDelegation="Reflective" complianceLevel="5.0"
- copyrightFields="false" editPluginID="org.eclipse.emf.cdo.tests.model6.edit">
+ copyrightFields="false" editPluginID="org.eclipse.emf.cdo.tests.model6.edit" runtimeVersion="2.6">
<foreignModel>model6.ecore</foreignModel>
<modelPluginVariables>CDO=org.eclipse.emf.cdo</modelPluginVariables>
<genPackages prefix="Model6" basePackage="org.eclipse.emf.cdo.tests" disposableProviderFactory="true"
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 d3f4231dc3..5fc5a37a89 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
@@ -5,7 +5,7 @@
modelDirectory="/org.eclipse.emf.cdo.tests.model6/src" editDirectory="" editorDirectory=""
modelPluginID="org.eclipse.emf.cdo.tests.model6" modelName="model6" updateClasspath="false"
codeFormatting="true" testsDirectory="" importerID="org.eclipse.emf.importer.ecore"
- complianceLevel="5.0" providerRootExtendsClass="">
+ complianceLevel="5.0" providerRootExtendsClass="" runtimeVersion="2.6">
<foreignModel>model6.ecore</foreignModel>
<modelPluginVariables>CDO=org.eclipse.emf.cdo</modelPluginVariables>
<genPackages prefix="Model6" basePackage="org.eclipse.emf.cdo.tests.legacy" disposableProviderFactory="true"
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java
index f8c27e51b2..2d78637a72 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/Model6Factory.java
@@ -16,73 +16,66 @@ import org.eclipse.emf.cdo.tests.model6.ReferenceObject;
import org.eclipse.emf.cdo.tests.model6.Root;
/**
- * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a
- * create method for each non-abstract class of the model. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
+ * the model. <!-- end-user-doc -->
*
* @see org.eclipse.emf.cdo.tests.legacy.model6.Model6Package
* @generated
*/
-public interface Model6Factory extends
- org.eclipse.emf.cdo.tests.model6.Model6Factory {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
+public interface Model6Factory extends org.eclipse.emf.cdo.tests.model6.Model6Factory
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
- /**
- * The singleton instance of the factory. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model6.impl.Model6FactoryImpl
- .init();
+ /**
+ * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.legacy.model6.impl.Model6FactoryImpl.init();
- /**
- * Returns a new object of class '<em>Root</em>'. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Root</em>'.
- * @generated
- */
- Root createRoot();
+ /**
+ * Returns a new object of class '<em>Root</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Root</em>'.
+ * @generated
+ */
+ Root createRoot();
- /**
- * Returns a new object of class '<em>Base Object</em>'. <!-- begin-user-doc
- * --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Base Object</em>'.
- * @generated
- */
- BaseObject createBaseObject();
+ /**
+ * Returns a new object of class '<em>Base Object</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Base Object</em>'.
+ * @generated
+ */
+ BaseObject createBaseObject();
- /**
- * Returns a new object of class '<em>Reference Object</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Reference Object</em>'.
- * @generated
- */
- ReferenceObject createReferenceObject();
+ /**
+ * Returns a new object of class '<em>Reference Object</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Reference Object</em>'.
+ * @generated
+ */
+ ReferenceObject createReferenceObject();
- /**
- * Returns a new object of class '<em>Containment Object</em>'. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @return a new object of class '<em>Containment Object</em>'.
- * @generated
- */
- ContainmentObject createContainmentObject();
+ /**
+ * Returns a new object of class '<em>Containment Object</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Containment Object</em>'.
+ * @generated
+ */
+ ContainmentObject createContainmentObject();
- /**
- * Returns the package supported by this factory. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @return the package supported by this factory.
- * @generated
- */
- Model6Package getModel6Package();
+ /**
+ * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ Model6Package getModel6Package();
} // Model6Factory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java
index 554d4f03ad..79347b169c 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/BaseObjectImpl.java
@@ -10,10 +10,9 @@
*/
package org.eclipse.emf.cdo.tests.legacy.model6.impl;
-import java.util.Collection;
-
import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package;
import org.eclipse.emf.cdo.tests.model6.BaseObject;
+
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
@@ -21,268 +20,278 @@ import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EDataTypeUniqueEList;
+import java.util.Collection;
+
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Base Object</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Base Object</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeOptional
- * <em>Attribute Optional</em>}</li>
+ * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeOptional <em>Attribute Optional
+ * </em>}</li>
* <li>
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeRequired
- * <em>Attribute Required</em>}</li>
+ * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeRequired <em>Attribute Required
+ * </em>}</li>
* <li>
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeList
- * <em>Attribute List</em>}</li>
+ * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.BaseObjectImpl#getAttributeList <em>Attribute List</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class BaseObjectImpl extends EObjectImpl implements BaseObject {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
+public class BaseObjectImpl extends EObjectImpl implements BaseObject
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
- /**
- * The default value of the '{@link #getAttributeOptional()
- * <em>Attribute Optional</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getAttributeOptional()
- * @generated
- * @ordered
- */
- protected static final String ATTRIBUTE_OPTIONAL_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getAttributeOptional() <em>Attribute Optional</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getAttributeOptional()
+ * @generated
+ * @ordered
+ */
+ protected static final String ATTRIBUTE_OPTIONAL_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getAttributeOptional()
- * <em>Attribute Optional</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getAttributeOptional()
- * @generated
- * @ordered
- */
- protected String attributeOptional = ATTRIBUTE_OPTIONAL_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getAttributeOptional() <em>Attribute Optional</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getAttributeOptional()
+ * @generated
+ * @ordered
+ */
+ protected String attributeOptional = ATTRIBUTE_OPTIONAL_EDEFAULT;
- /**
- * The default value of the '{@link #getAttributeRequired()
- * <em>Attribute Required</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getAttributeRequired()
- * @generated
- * @ordered
- */
- protected static final String ATTRIBUTE_REQUIRED_EDEFAULT = null;
+ /**
+ * The default value of the '{@link #getAttributeRequired() <em>Attribute Required</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getAttributeRequired()
+ * @generated
+ * @ordered
+ */
+ protected static final String ATTRIBUTE_REQUIRED_EDEFAULT = null;
- /**
- * The cached value of the '{@link #getAttributeRequired()
- * <em>Attribute Required</em>}' attribute. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getAttributeRequired()
- * @generated
- * @ordered
- */
- protected String attributeRequired = ATTRIBUTE_REQUIRED_EDEFAULT;
+ /**
+ * The cached value of the '{@link #getAttributeRequired() <em>Attribute Required</em>}' attribute. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getAttributeRequired()
+ * @generated
+ * @ordered
+ */
+ protected String attributeRequired = ATTRIBUTE_REQUIRED_EDEFAULT;
- /**
- * The cached value of the '{@link #getAttributeList()
- * <em>Attribute List</em>}' attribute list. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getAttributeList()
- * @generated
- * @ordered
- */
- protected EList<String> attributeList;
+ /**
+ * The cached value of the '{@link #getAttributeList() <em>Attribute List</em>}' attribute list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getAttributeList()
+ * @generated
+ * @ordered
+ */
+ protected EList<String> attributeList;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected BaseObjectImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected BaseObjectImpl()
+ {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Model6Package.eINSTANCE.getBaseObject();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model6Package.eINSTANCE.getBaseObject();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getAttributeOptional() {
- return attributeOptional;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getAttributeOptional()
+ {
+ return attributeOptional;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setAttributeOptional(String newAttributeOptional) {
- String oldAttributeOptional = attributeOptional;
- attributeOptional = newAttributeOptional;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL,
- oldAttributeOptional, attributeOptional));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setAttributeOptional(String newAttributeOptional)
+ {
+ String oldAttributeOptional = attributeOptional;
+ attributeOptional = newAttributeOptional;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL,
+ oldAttributeOptional, attributeOptional));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public String getAttributeRequired() {
- return attributeRequired;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getAttributeRequired()
+ {
+ return attributeRequired;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setAttributeRequired(String newAttributeRequired) {
- String oldAttributeRequired = attributeRequired;
- attributeRequired = newAttributeRequired;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED,
- oldAttributeRequired, attributeRequired));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setAttributeRequired(String newAttributeRequired)
+ {
+ String oldAttributeRequired = attributeRequired;
+ attributeRequired = newAttributeRequired;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED,
+ oldAttributeRequired, attributeRequired));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<String> getAttributeList() {
- if (attributeList == null) {
- attributeList = new EDataTypeUniqueEList<String>(String.class,
- this, Model6Package.BASE_OBJECT__ATTRIBUTE_LIST);
- }
- return attributeList;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<String> getAttributeList()
+ {
+ if (attributeList == null)
+ {
+ attributeList = new EDataTypeUniqueEList<String>(String.class, this, Model6Package.BASE_OBJECT__ATTRIBUTE_LIST);
+ }
+ return attributeList;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL:
- return getAttributeOptional();
- case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED:
- return getAttributeRequired();
- case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST:
- return getAttributeList();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL:
+ return getAttributeOptional();
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED:
+ return getAttributeRequired();
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST:
+ return getAttributeList();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL:
- setAttributeOptional((String) newValue);
- return;
- case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED:
- setAttributeRequired((String) newValue);
- return;
- case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST:
- getAttributeList().clear();
- getAttributeList().addAll((Collection<? extends String>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL:
+ setAttributeOptional((String)newValue);
+ return;
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED:
+ setAttributeRequired((String)newValue);
+ return;
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST:
+ getAttributeList().clear();
+ getAttributeList().addAll((Collection<? extends String>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL:
- setAttributeOptional(ATTRIBUTE_OPTIONAL_EDEFAULT);
- return;
- case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED:
- setAttributeRequired(ATTRIBUTE_REQUIRED_EDEFAULT);
- return;
- case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST:
- getAttributeList().clear();
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL:
+ setAttributeOptional(ATTRIBUTE_OPTIONAL_EDEFAULT);
+ return;
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED:
+ setAttributeRequired(ATTRIBUTE_REQUIRED_EDEFAULT);
+ return;
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST:
+ getAttributeList().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL:
- return ATTRIBUTE_OPTIONAL_EDEFAULT == null ? attributeOptional != null
- : !ATTRIBUTE_OPTIONAL_EDEFAULT.equals(attributeOptional);
- case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED:
- return ATTRIBUTE_REQUIRED_EDEFAULT == null ? attributeRequired != null
- : !ATTRIBUTE_REQUIRED_EDEFAULT.equals(attributeRequired);
- case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST:
- return attributeList != null && !attributeList.isEmpty();
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_OPTIONAL:
+ return ATTRIBUTE_OPTIONAL_EDEFAULT == null ? attributeOptional != null : !ATTRIBUTE_OPTIONAL_EDEFAULT
+ .equals(attributeOptional);
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_REQUIRED:
+ return ATTRIBUTE_REQUIRED_EDEFAULT == null ? attributeRequired != null : !ATTRIBUTE_REQUIRED_EDEFAULT
+ .equals(attributeRequired);
+ case Model6Package.BASE_OBJECT__ATTRIBUTE_LIST:
+ return attributeList != null && !attributeList.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public String toString() {
- if (eIsProxy())
- return super.toString();
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public String toString()
+ {
+ if (eIsProxy())
+ return super.toString();
- StringBuffer result = new StringBuffer(super.toString());
- result.append(" (attributeOptional: ");
- result.append(attributeOptional);
- result.append(", attributeRequired: ");
- result.append(attributeRequired);
- result.append(", attributeList: ");
- result.append(attributeList);
- result.append(')');
- return result.toString();
- }
+ StringBuffer result = new StringBuffer(super.toString());
+ result.append(" (attributeOptional: ");
+ result.append(attributeOptional);
+ result.append(", attributeRequired: ");
+ result.append(attributeRequired);
+ result.append(", attributeList: ");
+ result.append(attributeList);
+ result.append(')');
+ return result.toString();
+ }
} // BaseObjectImpl
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
index a083ba3040..c258bdfac8 100644
--- 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
@@ -9,11 +9,10 @@
*/
package org.eclipse.emf.cdo.tests.legacy.model6.impl;
-import java.util.Collection;
-
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;
@@ -23,236 +22,240 @@ 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;
+
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Containment Object</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Containment Object</b></em>'. <!--
+ * end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
* <li>
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentOptional
- * <em>Containment Optional</em>}</li>
+ * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentOptional <em>Containment
+ * Optional</em>}</li>
* <li>
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentList
- * <em>Containment List</em>}</li>
+ * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ContainmentObjectImpl#getContainmentList <em>Containment List
+ * </em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class ContainmentObjectImpl extends BaseObjectImpl implements
- ContainmentObject {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
+public class ContainmentObjectImpl extends BaseObjectImpl implements ContainmentObject
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
- /**
- * The cached value of the '{@link #getContainmentOptional()
- * <em>Containment Optional</em>}' containment reference. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getContainmentOptional()
- * @generated
- * @ordered
- */
- protected BaseObject containmentOptional;
+ /**
+ * The cached value of the '{@link #getContainmentOptional() <em>Containment Optional</em>}' containment reference.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getContainmentOptional()
+ * @generated
+ * @ordered
+ */
+ protected BaseObject containmentOptional;
- /**
- * The cached value of the '{@link #getContainmentList()
- * <em>Containment List</em>}' containment reference list. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getContainmentList()
- * @generated
- * @ordered
- */
- protected EList<BaseObject> containmentList;
+ /**
+ * The cached value of the '{@link #getContainmentList() <em>Containment List</em>}' containment reference list. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getContainmentList()
+ * @generated
+ * @ordered
+ */
+ protected EList<BaseObject> containmentList;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ContainmentObjectImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ContainmentObjectImpl()
+ {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Model6Package.eINSTANCE.getContainmentObject();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model6Package.eINSTANCE.getContainmentObject();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BaseObject getContainmentOptional() {
- return containmentOptional;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BaseObject getContainmentOptional()
+ {
+ return containmentOptional;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public NotificationChain basicSetContainmentOptional(
- BaseObject newContainmentOptional, NotificationChain msgs) {
- BaseObject oldContainmentOptional = containmentOptional;
- containmentOptional = newContainmentOptional;
- if (eNotificationRequired()) {
- ENotificationImpl notification = new ENotificationImpl(this,
- Notification.SET,
- Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL,
- oldContainmentOptional, newContainmentOptional);
- if (msgs == null)
- msgs = notification;
- else
- msgs.add(notification);
- }
- return msgs;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public NotificationChain basicSetContainmentOptional(BaseObject newContainmentOptional, NotificationChain msgs)
+ {
+ BaseObject oldContainmentOptional = containmentOptional;
+ containmentOptional = newContainmentOptional;
+ if (eNotificationRequired())
+ {
+ ENotificationImpl notification = new ENotificationImpl(this, Notification.SET,
+ Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, oldContainmentOptional, newContainmentOptional);
+ if (msgs == null)
+ msgs = notification;
+ else
+ msgs.add(notification);
+ }
+ return msgs;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setContainmentOptional(BaseObject newContainmentOptional) {
- if (newContainmentOptional != containmentOptional) {
- NotificationChain msgs = null;
- if (containmentOptional != null)
- msgs = ((InternalEObject) containmentOptional)
- .eInverseRemove(
- this,
- EOPPOSITE_FEATURE_BASE
- - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL,
- null, msgs);
- if (newContainmentOptional != null)
- msgs = ((InternalEObject) newContainmentOptional)
- .eInverseAdd(
- this,
- EOPPOSITE_FEATURE_BASE
- - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL,
- null, msgs);
- msgs = basicSetContainmentOptional(newContainmentOptional, msgs);
- if (msgs != null)
- msgs.dispatch();
- } else if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL,
- newContainmentOptional, newContainmentOptional));
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setContainmentOptional(BaseObject newContainmentOptional)
+ {
+ if (newContainmentOptional != containmentOptional)
+ {
+ NotificationChain msgs = null;
+ if (containmentOptional != null)
+ msgs = ((InternalEObject)containmentOptional).eInverseRemove(this, EOPPOSITE_FEATURE_BASE
+ - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs);
+ if (newContainmentOptional != null)
+ msgs = ((InternalEObject)newContainmentOptional).eInverseAdd(this, EOPPOSITE_FEATURE_BASE
+ - Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, null, msgs);
+ msgs = basicSetContainmentOptional(newContainmentOptional, msgs);
+ if (msgs != null)
+ msgs.dispatch();
+ }
+ else if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL,
+ newContainmentOptional, newContainmentOptional));
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<BaseObject> getContainmentList() {
- if (containmentList == null) {
- containmentList = new EObjectContainmentEList<BaseObject>(
- BaseObject.class, this,
- Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST);
- }
- return containmentList;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<BaseObject> getContainmentList()
+ {
+ if (containmentList == null)
+ {
+ containmentList = new EObjectContainmentEList<BaseObject>(BaseObject.class, this,
+ Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST);
+ }
+ return containmentList;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
- return basicSetContainmentOptional(null, msgs);
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
- return ((InternalEList<?>) getContainmentList()).basicRemove(
- otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
+ return basicSetContainmentOptional(null, msgs);
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
+ return ((InternalEList<?>)getContainmentList()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
- return getContainmentOptional();
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
- return getContainmentList();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
+ return getContainmentOptional();
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
+ return getContainmentList();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
- setContainmentOptional((BaseObject) newValue);
- return;
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
- getContainmentList().clear();
- getContainmentList().addAll(
- (Collection<? extends BaseObject>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
+ setContainmentOptional((BaseObject)newValue);
+ return;
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
+ getContainmentList().clear();
+ getContainmentList().addAll((Collection<? extends BaseObject>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
- setContainmentOptional((BaseObject) null);
- return;
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
- getContainmentList().clear();
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
+ setContainmentOptional((BaseObject)null);
+ return;
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
+ getContainmentList().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
- return containmentOptional != null;
- case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
- return containmentList != null && !containmentList.isEmpty();
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL:
+ return containmentOptional != null;
+ case Model6Package.CONTAINMENT_OBJECT__CONTAINMENT_LIST:
+ return containmentList != null && !containmentList.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
} // ContainmentObjectImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java
index a53e914b36..0a598b77b4 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6FactoryImpl.java
@@ -16,6 +16,7 @@ import org.eclipse.emf.cdo.tests.model6.BaseObject;
import org.eclipse.emf.cdo.tests.model6.ContainmentObject;
import org.eclipse.emf.cdo.tests.model6.ReferenceObject;
import org.eclipse.emf.cdo.tests.model6.Root;
+
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
@@ -23,128 +24,139 @@ import org.eclipse.emf.ecore.impl.EFactoryImpl;
import org.eclipse.emf.ecore.plugin.EcorePlugin;
/**
- * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!--
- * end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
*
* @generated
*/
-public class Model6FactoryImpl extends EFactoryImpl implements Model6Factory {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
+public class Model6FactoryImpl extends EFactoryImpl implements Model6Factory
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
- /**
- * Creates the default factory implementation. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public static Model6Factory init() {
- try {
- Model6Factory theModel6Factory = (Model6Factory) EPackage.Registry.INSTANCE
- .getEFactory("http://www.eclipse.org/emf/CDO/tests/model6/1.0.0");
- if (theModel6Factory != null) {
- return theModel6Factory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new Model6FactoryImpl();
- }
+ /**
+ * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Model6Factory init()
+ {
+ try
+ {
+ Model6Factory theModel6Factory = (Model6Factory)EPackage.Registry.INSTANCE
+ .getEFactory("http://www.eclipse.org/emf/CDO/tests/model6/1.0.0");
+ if (theModel6Factory != null)
+ {
+ return theModel6Factory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new Model6FactoryImpl();
+ }
- /**
- * Creates an instance of the factory. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public Model6FactoryImpl() {
- super();
- }
+ /**
+ * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model6FactoryImpl()
+ {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case Model6Package.ROOT:
- return createRoot();
- case Model6Package.BASE_OBJECT:
- return createBaseObject();
- case Model6Package.REFERENCE_OBJECT:
- return createReferenceObject();
- case Model6Package.CONTAINMENT_OBJECT:
- return createContainmentObject();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName()
- + "' is not a valid classifier");
- }
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case Model6Package.ROOT:
+ return createRoot();
+ case Model6Package.BASE_OBJECT:
+ return createBaseObject();
+ case Model6Package.REFERENCE_OBJECT:
+ return createReferenceObject();
+ case Model6Package.CONTAINMENT_OBJECT:
+ return createContainmentObject();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Root createRoot() {
- RootImpl root = new RootImpl();
- return root;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Root createRoot()
+ {
+ RootImpl root = new RootImpl();
+ return root;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BaseObject createBaseObject() {
- BaseObjectImpl baseObject = new BaseObjectImpl();
- return baseObject;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BaseObject createBaseObject()
+ {
+ BaseObjectImpl baseObject = new BaseObjectImpl();
+ return baseObject;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ReferenceObject createReferenceObject() {
- ReferenceObjectImpl referenceObject = new ReferenceObjectImpl();
- return referenceObject;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ReferenceObject createReferenceObject()
+ {
+ ReferenceObjectImpl referenceObject = new ReferenceObjectImpl();
+ return referenceObject;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public ContainmentObject createContainmentObject() {
- ContainmentObjectImpl containmentObject = new ContainmentObjectImpl();
- return containmentObject;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContainmentObject createContainmentObject()
+ {
+ ContainmentObjectImpl containmentObject = new ContainmentObjectImpl();
+ return containmentObject;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Model6Package getModel6Package() {
- return (Model6Package) getEPackage();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model6Package getModel6Package()
+ {
+ return (Model6Package)getEPackage();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @deprecated
- * @generated
- */
- @Deprecated
- public static Model6Package getPackage() {
- return Model6Package.eINSTANCE;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static Model6Package getPackage()
+ {
+ return Model6Package.eINSTANCE;
+ }
} // Model6FactoryImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java
index 3ca97a41dc..5bf7cb153b 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/Model6PackageImpl.java
@@ -16,6 +16,7 @@ import org.eclipse.emf.cdo.tests.model6.BaseObject;
import org.eclipse.emf.cdo.tests.model6.ContainmentObject;
import org.eclipse.emf.cdo.tests.model6.ReferenceObject;
import org.eclipse.emf.cdo.tests.model6.Root;
+
import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
@@ -23,403 +24,388 @@ import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.impl.EPackageImpl;
/**
- * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!--
- * end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
*
* @generated
*/
-public class Model6PackageImpl extends EPackageImpl implements Model6Package {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass rootEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass baseObjectEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass referenceObjectEClass = null;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private EClass containmentObjectEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the
- * package package URI value.
- * <p>
- * Note: the correct way to create the package is via the static factory
- * method {@link #init init()}, which also performs initialization of the
- * package, or returns the registered package, if one already exists. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.emf.cdo.tests.legacy.model6.Model6Package#eNS_URI
- * @see #init()
- * @generated
- */
- private Model6PackageImpl() {
- super(eNS_URI, Model6Factory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model,
- * and for any others upon which it depends.
- *
- * <p>
- * 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. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @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;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getRoot() {
- return rootEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRoot_ListA() {
- return (EReference) rootEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRoot_ListB() {
- return (EReference) rootEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRoot_ListC() {
- return (EReference) rootEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getRoot_ListD() {
- return (EReference) rootEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getBaseObject() {
- return baseObjectEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getBaseObject_AttributeOptional() {
- return (EAttribute) baseObjectEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getBaseObject_AttributeRequired() {
- return (EAttribute) baseObjectEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EAttribute getBaseObject_AttributeList() {
- return (EAttribute) baseObjectEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getReferenceObject() {
- return referenceObjectEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getReferenceObject_ReferenceOptional() {
- return (EReference) referenceObjectEClass.getEStructuralFeatures().get(
- 0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getReferenceObject_ReferenceList() {
- return (EReference) referenceObjectEClass.getEStructuralFeatures().get(
- 1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EClass getContainmentObject() {
- return containmentObjectEClass;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getContainmentObject_ContainmentOptional() {
- return (EReference) containmentObjectEClass.getEStructuralFeatures()
- .get(0);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EReference getContainmentObject_ContainmentList() {
- return (EReference) containmentObjectEClass.getEStructuralFeatures()
- .get(1);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public Model6Factory getModel6Factory() {
- return (Model6Factory) getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is guarded to
- * have no affect on any invocation but its first. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @generated
- */
- public void createPackageContents() {
- if (isCreated)
- return;
- isCreated = true;
-
- // Create classes and their features
- 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);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized)
- return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- referenceObjectEClass.getESuperTypes().add(this.getBaseObject());
- containmentObjectEClass.getESuperTypes().add(this.getBaseObject());
-
- // 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);
-
- // Create resource
- createResource(eNS_URI);
- }
+public class Model6PackageImpl extends EPackageImpl implements Model6Package
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass rootEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass baseObjectEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass referenceObjectEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass containmentObjectEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.emf.cdo.tests.legacy.model6.Model6Package#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private Model6PackageImpl()
+ {
+ super(eNS_URI, Model6Factory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ * <p>
+ * 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. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @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;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRoot()
+ {
+ return rootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRoot_ListA()
+ {
+ return (EReference)rootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRoot_ListB()
+ {
+ return (EReference)rootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRoot_ListC()
+ {
+ return (EReference)rootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRoot_ListD()
+ {
+ return (EReference)rootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getBaseObject()
+ {
+ return baseObjectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBaseObject_AttributeOptional()
+ {
+ return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBaseObject_AttributeRequired()
+ {
+ return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBaseObject_AttributeList()
+ {
+ return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getReferenceObject()
+ {
+ return referenceObjectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getReferenceObject_ReferenceOptional()
+ {
+ return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getReferenceObject_ReferenceList()
+ {
+ return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getContainmentObject()
+ {
+ return containmentObjectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getContainmentObject_ContainmentOptional()
+ {
+ return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getContainmentObject_ContainmentList()
+ {
+ return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model6Factory getModel6Factory()
+ {
+ return (Model6Factory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its
+ * first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated)
+ return;
+ isCreated = true;
+
+ // Create classes and their features
+ 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);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any
+ * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized)
+ return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ referenceObjectEClass.getESuperTypes().add(this.getBaseObject());
+ containmentObjectEClass.getESuperTypes().add(this.getBaseObject());
+
+ // 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);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
} // Model6PackageImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java
index 0dbfadd757..2e71a9d892 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/ReferenceObjectImpl.java
@@ -10,11 +10,10 @@
*/
package org.eclipse.emf.cdo.tests.legacy.model6.impl;
-import java.util.Collection;
-
import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package;
import org.eclipse.emf.cdo.tests.model6.BaseObject;
import org.eclipse.emf.cdo.tests.model6.ReferenceObject;
+
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
@@ -22,200 +21,213 @@ import org.eclipse.emf.ecore.InternalEObject;
import org.eclipse.emf.ecore.impl.ENotificationImpl;
import org.eclipse.emf.ecore.util.EObjectResolvingEList;
+import java.util.Collection;
+
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Reference Object</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Reference Object</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are implemented:
* <ul>
* <li>
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceOptional
- * <em>Reference Optional</em>}</li>
+ * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceOptional <em>Reference
+ * Optional</em>}</li>
* <li>
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceList
- * <em>Reference List</em>}</li>
+ * {@link org.eclipse.emf.cdo.tests.legacy.model6.impl.ReferenceObjectImpl#getReferenceList <em>Reference List</em>}
+ * </li>
* </ul>
* </p>
*
* @generated
*/
-public class ReferenceObjectImpl extends BaseObjectImpl implements
- ReferenceObject {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * The cached value of the '{@link #getReferenceOptional()
- * <em>Reference Optional</em>}' reference. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getReferenceOptional()
- * @generated
- * @ordered
- */
- protected BaseObject referenceOptional;
-
- /**
- * The cached value of the '{@link #getReferenceList()
- * <em>Reference List</em>}' reference list. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @see #getReferenceList()
- * @generated
- * @ordered
- */
- protected EList<BaseObject> referenceList;
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected ReferenceObjectImpl() {
- super();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Model6Package.eINSTANCE.getReferenceObject();
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BaseObject getReferenceOptional() {
- if (referenceOptional != null && referenceOptional.eIsProxy()) {
- InternalEObject oldReferenceOptional = (InternalEObject) referenceOptional;
- referenceOptional = (BaseObject) eResolveProxy(oldReferenceOptional);
- if (referenceOptional != oldReferenceOptional) {
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.RESOLVE,
- Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL,
- oldReferenceOptional, referenceOptional));
- }
- }
- return referenceOptional;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public BaseObject basicGetReferenceOptional() {
- return referenceOptional;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public void setReferenceOptional(BaseObject newReferenceOptional) {
- BaseObject oldReferenceOptional = referenceOptional;
- referenceOptional = newReferenceOptional;
- if (eNotificationRequired())
- eNotify(new ENotificationImpl(this, Notification.SET,
- Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL,
- oldReferenceOptional, referenceOptional));
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<BaseObject> getReferenceList() {
- if (referenceList == null) {
- referenceList = new EObjectResolvingEList<BaseObject>(
- BaseObject.class, this,
- Model6Package.REFERENCE_OBJECT__REFERENCE_LIST);
- }
- return referenceList;
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL:
- if (resolve)
- return getReferenceOptional();
- return basicGetReferenceOptional();
- case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST:
- return getReferenceList();
- }
- return super.eGet(featureID, resolve, coreType);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL:
- setReferenceOptional((BaseObject) newValue);
- return;
- case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST:
- getReferenceList().clear();
- getReferenceList().addAll(
- (Collection<? extends BaseObject>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL:
- setReferenceOptional((BaseObject) null);
- return;
- case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST:
- getReferenceList().clear();
- return;
- }
- super.eUnset(featureID);
- }
-
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL:
- return referenceOptional != null;
- case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST:
- return referenceList != null && !referenceList.isEmpty();
- }
- return super.eIsSet(featureID);
- }
+public class ReferenceObjectImpl extends BaseObjectImpl implements ReferenceObject
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
+
+ /**
+ * The cached value of the '{@link #getReferenceOptional() <em>Reference Optional</em>}' reference. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see #getReferenceOptional()
+ * @generated
+ * @ordered
+ */
+ protected BaseObject referenceOptional;
+
+ /**
+ * The cached value of the '{@link #getReferenceList() <em>Reference List</em>}' reference list. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @see #getReferenceList()
+ * @generated
+ * @ordered
+ */
+ protected EList<BaseObject> referenceList;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ReferenceObjectImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model6Package.eINSTANCE.getReferenceObject();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BaseObject getReferenceOptional()
+ {
+ if (referenceOptional != null && referenceOptional.eIsProxy())
+ {
+ InternalEObject oldReferenceOptional = (InternalEObject)referenceOptional;
+ referenceOptional = (BaseObject)eResolveProxy(oldReferenceOptional);
+ if (referenceOptional != oldReferenceOptional)
+ {
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.RESOLVE, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL,
+ oldReferenceOptional, referenceOptional));
+ }
+ }
+ return referenceOptional;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BaseObject basicGetReferenceOptional()
+ {
+ return referenceOptional;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setReferenceOptional(BaseObject newReferenceOptional)
+ {
+ BaseObject oldReferenceOptional = referenceOptional;
+ referenceOptional = newReferenceOptional;
+ if (eNotificationRequired())
+ eNotify(new ENotificationImpl(this, Notification.SET, Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL,
+ oldReferenceOptional, referenceOptional));
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<BaseObject> getReferenceList()
+ {
+ if (referenceList == null)
+ {
+ referenceList = new EObjectResolvingEList<BaseObject>(BaseObject.class, this,
+ Model6Package.REFERENCE_OBJECT__REFERENCE_LIST);
+ }
+ return referenceList;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL:
+ if (resolve)
+ return getReferenceOptional();
+ return basicGetReferenceOptional();
+ case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST:
+ return getReferenceList();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL:
+ setReferenceOptional((BaseObject)newValue);
+ return;
+ case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST:
+ getReferenceList().clear();
+ getReferenceList().addAll((Collection<? extends BaseObject>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL:
+ setReferenceOptional((BaseObject)null);
+ return;
+ case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST:
+ getReferenceList().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model6Package.REFERENCE_OBJECT__REFERENCE_OPTIONAL:
+ return referenceOptional != null;
+ case Model6Package.REFERENCE_OBJECT__REFERENCE_LIST:
+ return referenceList != null && !referenceList.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
} // ReferenceObjectImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java
index 3ceefee6f4..5256ec58b3 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/impl/RootImpl.java
@@ -10,11 +10,10 @@
*/
package org.eclipse.emf.cdo.tests.legacy.model6.impl;
-import java.util.Collection;
-
import org.eclipse.emf.cdo.tests.legacy.model6.Model6Package;
import org.eclipse.emf.cdo.tests.model6.BaseObject;
import org.eclipse.emf.cdo.tests.model6.Root;
+
import org.eclipse.emf.common.notify.NotificationChain;
import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
@@ -23,256 +22,269 @@ import org.eclipse.emf.ecore.impl.EObjectImpl;
import org.eclipse.emf.ecore.util.EObjectContainmentEList;
import org.eclipse.emf.ecore.util.InternalEList;
+import java.util.Collection;
+
/**
- * <!-- begin-user-doc --> An implementation of the model object '
- * <em><b>Root</b></em>'. <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object ' <em><b>Root</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListA
- * <em>List A</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListB
- * <em>List B</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListC
- * <em>List C</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListD
- * <em>List D</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListA <em>List A</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListB <em>List B</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListC <em>List C</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.legacy.model6.impl.RootImpl#getListD <em>List D</em>}</li>
* </ul>
* </p>
*
* @generated
*/
-public class RootImpl extends EObjectImpl implements Root {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
+public class RootImpl extends EObjectImpl implements Root
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
- /**
- * The cached value of the '{@link #getListA() <em>List A</em>}' containment
- * reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getListA()
- * @generated
- * @ordered
- */
- protected EList<BaseObject> listA;
+ /**
+ * The cached value of the '{@link #getListA() <em>List A</em>}' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getListA()
+ * @generated
+ * @ordered
+ */
+ protected EList<BaseObject> listA;
- /**
- * The cached value of the '{@link #getListB() <em>List B</em>}' containment
- * reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getListB()
- * @generated
- * @ordered
- */
- protected EList<BaseObject> listB;
+ /**
+ * The cached value of the '{@link #getListB() <em>List B</em>}' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getListB()
+ * @generated
+ * @ordered
+ */
+ protected EList<BaseObject> listB;
- /**
- * The cached value of the '{@link #getListC() <em>List C</em>}' containment
- * reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getListC()
- * @generated
- * @ordered
- */
- protected EList<BaseObject> listC;
+ /**
+ * The cached value of the '{@link #getListC() <em>List C</em>}' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getListC()
+ * @generated
+ * @ordered
+ */
+ protected EList<BaseObject> listC;
- /**
- * The cached value of the '{@link #getListD() <em>List D</em>}' containment
- * reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @see #getListD()
- * @generated
- * @ordered
- */
- protected EList<BaseObject> listD;
+ /**
+ * The cached value of the '{@link #getListD() <em>List D</em>}' containment reference list. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @see #getListD()
+ * @generated
+ * @ordered
+ */
+ protected EList<BaseObject> listD;
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected RootImpl() {
- super();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RootImpl()
+ {
+ super();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Model6Package.eINSTANCE.getRoot();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model6Package.eINSTANCE.getRoot();
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<BaseObject> getListA() {
- if (listA == null) {
- listA = new EObjectContainmentEList<BaseObject>(BaseObject.class,
- this, Model6Package.ROOT__LIST_A);
- }
- return listA;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<BaseObject> getListA()
+ {
+ if (listA == null)
+ {
+ listA = new EObjectContainmentEList<BaseObject>(BaseObject.class, this, Model6Package.ROOT__LIST_A);
+ }
+ return listA;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<BaseObject> getListB() {
- if (listB == null) {
- listB = new EObjectContainmentEList<BaseObject>(BaseObject.class,
- this, Model6Package.ROOT__LIST_B);
- }
- return listB;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<BaseObject> getListB()
+ {
+ if (listB == null)
+ {
+ listB = new EObjectContainmentEList<BaseObject>(BaseObject.class, this, Model6Package.ROOT__LIST_B);
+ }
+ return listB;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<BaseObject> getListC() {
- if (listC == null) {
- listC = new EObjectContainmentEList<BaseObject>(BaseObject.class,
- this, Model6Package.ROOT__LIST_C);
- }
- return listC;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<BaseObject> getListC()
+ {
+ if (listC == null)
+ {
+ listC = new EObjectContainmentEList<BaseObject>(BaseObject.class, this, Model6Package.ROOT__LIST_C);
+ }
+ return listC;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public EList<BaseObject> getListD() {
- if (listD == null) {
- listD = new EObjectContainmentEList<BaseObject>(BaseObject.class,
- this, Model6Package.ROOT__LIST_D);
- }
- return listD;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EList<BaseObject> getListD()
+ {
+ if (listD == null)
+ {
+ listD = new EObjectContainmentEList<BaseObject>(BaseObject.class, this, Model6Package.ROOT__LIST_D);
+ }
+ return listD;
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public NotificationChain eInverseRemove(InternalEObject otherEnd,
- int featureID, NotificationChain msgs) {
- switch (featureID) {
- case Model6Package.ROOT__LIST_A:
- return ((InternalEList<?>) getListA()).basicRemove(otherEnd, msgs);
- case Model6Package.ROOT__LIST_B:
- return ((InternalEList<?>) getListB()).basicRemove(otherEnd, msgs);
- case Model6Package.ROOT__LIST_C:
- return ((InternalEList<?>) getListC()).basicRemove(otherEnd, msgs);
- case Model6Package.ROOT__LIST_D:
- return ((InternalEList<?>) getListD()).basicRemove(otherEnd, msgs);
- }
- return super.eInverseRemove(otherEnd, featureID, msgs);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public NotificationChain eInverseRemove(InternalEObject otherEnd, int featureID, NotificationChain msgs)
+ {
+ switch (featureID)
+ {
+ case Model6Package.ROOT__LIST_A:
+ return ((InternalEList<?>)getListA()).basicRemove(otherEnd, msgs);
+ case Model6Package.ROOT__LIST_B:
+ return ((InternalEList<?>)getListB()).basicRemove(otherEnd, msgs);
+ case Model6Package.ROOT__LIST_C:
+ return ((InternalEList<?>)getListC()).basicRemove(otherEnd, msgs);
+ case Model6Package.ROOT__LIST_D:
+ return ((InternalEList<?>)getListD()).basicRemove(otherEnd, msgs);
+ }
+ return super.eInverseRemove(otherEnd, featureID, msgs);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public Object eGet(int featureID, boolean resolve, boolean coreType) {
- switch (featureID) {
- case Model6Package.ROOT__LIST_A:
- return getListA();
- case Model6Package.ROOT__LIST_B:
- return getListB();
- case Model6Package.ROOT__LIST_C:
- return getListC();
- case Model6Package.ROOT__LIST_D:
- return getListD();
- }
- return super.eGet(featureID, resolve, coreType);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public Object eGet(int featureID, boolean resolve, boolean coreType)
+ {
+ switch (featureID)
+ {
+ case Model6Package.ROOT__LIST_A:
+ return getListA();
+ case Model6Package.ROOT__LIST_B:
+ return getListB();
+ case Model6Package.ROOT__LIST_C:
+ return getListC();
+ case Model6Package.ROOT__LIST_D:
+ return getListD();
+ }
+ return super.eGet(featureID, resolve, coreType);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @SuppressWarnings("unchecked")
- @Override
- public void eSet(int featureID, Object newValue) {
- switch (featureID) {
- case Model6Package.ROOT__LIST_A:
- getListA().clear();
- getListA().addAll((Collection<? extends BaseObject>) newValue);
- return;
- case Model6Package.ROOT__LIST_B:
- getListB().clear();
- getListB().addAll((Collection<? extends BaseObject>) newValue);
- return;
- case Model6Package.ROOT__LIST_C:
- getListC().clear();
- getListC().addAll((Collection<? extends BaseObject>) newValue);
- return;
- case Model6Package.ROOT__LIST_D:
- getListD().clear();
- getListD().addAll((Collection<? extends BaseObject>) newValue);
- return;
- }
- super.eSet(featureID, newValue);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ @Override
+ public void eSet(int featureID, Object newValue)
+ {
+ switch (featureID)
+ {
+ case Model6Package.ROOT__LIST_A:
+ getListA().clear();
+ getListA().addAll((Collection<? extends BaseObject>)newValue);
+ return;
+ case Model6Package.ROOT__LIST_B:
+ getListB().clear();
+ getListB().addAll((Collection<? extends BaseObject>)newValue);
+ return;
+ case Model6Package.ROOT__LIST_C:
+ getListC().clear();
+ getListC().addAll((Collection<? extends BaseObject>)newValue);
+ return;
+ case Model6Package.ROOT__LIST_D:
+ getListD().clear();
+ getListD().addAll((Collection<? extends BaseObject>)newValue);
+ return;
+ }
+ super.eSet(featureID, newValue);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public void eUnset(int featureID) {
- switch (featureID) {
- case Model6Package.ROOT__LIST_A:
- getListA().clear();
- return;
- case Model6Package.ROOT__LIST_B:
- getListB().clear();
- return;
- case Model6Package.ROOT__LIST_C:
- getListC().clear();
- return;
- case Model6Package.ROOT__LIST_D:
- getListD().clear();
- return;
- }
- super.eUnset(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public void eUnset(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model6Package.ROOT__LIST_A:
+ getListA().clear();
+ return;
+ case Model6Package.ROOT__LIST_B:
+ getListB().clear();
+ return;
+ case Model6Package.ROOT__LIST_C:
+ getListC().clear();
+ return;
+ case Model6Package.ROOT__LIST_D:
+ getListD().clear();
+ return;
+ }
+ super.eUnset(featureID);
+ }
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- @Override
- public boolean eIsSet(int featureID) {
- switch (featureID) {
- case Model6Package.ROOT__LIST_A:
- return listA != null && !listA.isEmpty();
- case Model6Package.ROOT__LIST_B:
- return listB != null && !listB.isEmpty();
- case Model6Package.ROOT__LIST_C:
- return listC != null && !listC.isEmpty();
- case Model6Package.ROOT__LIST_D:
- return listD != null && !listD.isEmpty();
- }
- return super.eIsSet(featureID);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public boolean eIsSet(int featureID)
+ {
+ switch (featureID)
+ {
+ case Model6Package.ROOT__LIST_A:
+ return listA != null && !listA.isEmpty();
+ case Model6Package.ROOT__LIST_B:
+ return listB != null && !listB.isEmpty();
+ case Model6Package.ROOT__LIST_C:
+ return listC != null && !listC.isEmpty();
+ case Model6Package.ROOT__LIST_D:
+ return listD != null && !listD.isEmpty();
+ }
+ return super.eIsSet(featureID);
+ }
} // RootImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/util/Model6AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/util/Model6AdapterFactory.java
deleted file mode 100644
index 098f7bdef3..0000000000
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/util/Model6AdapterFactory.java
+++ /dev/null
@@ -1,199 +0,0 @@
-/**
- * Copyright (c) 2004 - 2011 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.util;
-
-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.cdo.tests.model6.ReferenceObject;
-import org.eclipse.emf.cdo.tests.model6.Root;
-import org.eclipse.emf.common.notify.Adapter;
-import org.eclipse.emf.common.notify.Notifier;
-import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides
- * an adapter <code>createXXX</code> method for each class of the model. <!--
- * end-user-doc -->
- *
- * @see org.eclipse.emf.cdo.tests.legacy.model6.Model6Package
- * @generated
- */
-public class Model6AdapterFactory extends AdapterFactoryImpl {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected static Model6Package modelPackage;
-
- /**
- * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public Model6AdapterFactory() {
- if (modelPackage == null) {
- modelPackage = Model6Package.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc --> This implementation returns <code>true</code> if
- * the object is either the model's package or is an instance object of the
- * model. <!-- end-user-doc -->
- *
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods. <!--
- * begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected Model6Switch<Adapter> modelSwitch = new Model6Switch<Adapter>() {
- @Override
- public Adapter caseRoot(Root object) {
- return createRootAdapter();
- }
-
- @Override
- public Adapter caseBaseObject(BaseObject object) {
- return createBaseObjectAdapter();
- }
-
- @Override
- public Adapter caseReferenceObject(ReferenceObject object) {
- return createReferenceObjectAdapter();
- }
-
- @Override
- public Adapter caseContainmentObject(ContainmentObject object) {
- return createContainmentObjectAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>. <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject) target);
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.Root <em>Root</em>}'. <!--
- * begin-user-doc --> This default implementation returns null so that we
- * can easily ignore cases; it's useful to ignore a case when inheritance
- * will catch all the cases anyway. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.legacy.model6.Root
- * @generated
- */
- public Adapter createRootAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.BaseObject
- * <em>Base Object</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.legacy.model6.BaseObject
- * @generated
- */
- public Adapter createBaseObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.ReferenceObject
- * <em>Reference Object</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.legacy.model6.ReferenceObject
- * @generated
- */
- public Adapter createReferenceObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '
- * {@link org.eclipse.emf.cdo.tests.legacy.model6.ContainmentObject
- * <em>Containment Object</em>}'. <!-- begin-user-doc --> This default
- * implementation returns null so that we can easily ignore cases; it's
- * useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.legacy.model6.ContainmentObject
- * @generated
- */
- public Adapter createContainmentObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case. <!-- begin-user-doc --> This
- * default implementation returns null. <!-- end-user-doc -->
- *
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} // Model6AdapterFactory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/util/Model6Switch.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/util/Model6Switch.java
deleted file mode 100644
index 7798ee8bc3..0000000000
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/legacy/model6/util/Model6Switch.java
+++ /dev/null
@@ -1,226 +0,0 @@
-/**
- * Copyright (c) 2004 - 2011 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.util;
-
-import java.util.List;
-
-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.cdo.tests.model6.ReferenceObject;
-import org.eclipse.emf.cdo.tests.model6.Root;
-import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.ecore.EObject;
-
-/**
- * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance
- * hierarchy. It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object and proceeding up the
- * inheritance hierarchy until a non-null result is returned, which is the
- * result of the switch. <!-- end-user-doc -->
- *
- * @see org.eclipse.emf.cdo.tests.legacy.model6.Model6Package
- * @generated
- */
-public class Model6Switch<T> {
- /**
- * <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- public static final String copyright = "Copyright (c) 2004 - 2011 Eike Stepper (Berlin, Germany) and others.\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n\r\nContributors:\r\n Eike Stepper - initial API and implementation";
-
- /**
- * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @generated
- */
- protected static Model6Package modelPackage;
-
- /**
- * Creates an instance of the switch. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @generated
- */
- public Model6Switch() {
- if (modelPackage == null) {
- modelPackage = Model6Package.eINSTANCE;
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns
- * a non null result; it yields that result. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code>
- * call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns
- * a non null result; it yields that result. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code>
- * call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- } else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(
- eSuperTypes.get(0), theEObject);
- }
- }
-
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns
- * a non null result; it yields that result. <!-- begin-user-doc --> <!--
- * end-user-doc -->
- *
- * @return the first non-null result returned by a <code>caseXXX</code>
- * call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case Model6Package.ROOT: {
- Root root = (Root) theEObject;
- T result = caseRoot(root);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model6Package.BASE_OBJECT: {
- BaseObject baseObject = (BaseObject) theEObject;
- T result = caseBaseObject(baseObject);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model6Package.REFERENCE_OBJECT: {
- ReferenceObject referenceObject = (ReferenceObject) theEObject;
- T result = caseReferenceObject(referenceObject);
- if (result == null)
- result = caseBaseObject(referenceObject);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model6Package.CONTAINMENT_OBJECT: {
- ContainmentObject containmentObject = (ContainmentObject) theEObject;
- T result = caseContainmentObject(containmentObject);
- if (result == null)
- result = caseBaseObject(containmentObject);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Root</em>'. <!-- begin-user-doc --> This implementation returns null;
- * returning a non-null result will terminate the switch. <!-- end-user-doc
- * -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Root</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRoot(Root object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Base Object</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Base Object</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBaseObject(BaseObject object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Reference Object</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Reference Object</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseReferenceObject(ReferenceObject object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>Containment Object</em>'. <!-- begin-user-doc --> This implementation
- * returns null; returning a non-null result will terminate the switch. <!--
- * end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>Containment Object</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseContainmentObject(ContainmentObject object) {
- return null;
- }
-
- /**
- * Returns the result of interpreting the object as an instance of '
- * <em>EObject</em>'. <!-- begin-user-doc --> This implementation returns
- * null; returning a non-null result will terminate the switch, but this is
- * the last case anyway. <!-- end-user-doc -->
- *
- * @param object
- * the target of the switch.
- * @return the result of interpreting the object as an instance of '
- * <em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
-
-} // Model6Switch
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/BaseObject.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/BaseObject.java
index 2babf0cbcf..366f1d7850 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/BaseObject.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/BaseObject.java
@@ -11,94 +11,93 @@
package org.eclipse.emf.cdo.tests.model6;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Base Object</b></em>'.
- * <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Base Object</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional <em>Attribute Optional</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired <em>Attribute Required</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeList <em>Attribute List</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional <em>Attribute Optional</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired <em>Attribute Required</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeList <em>Attribute List</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject()
* @model
* @generated
*/
-public interface BaseObject extends EObject {
- /**
- * Returns the value of the '<em><b>Attribute Optional</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Attribute Optional</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Attribute Optional</em>' attribute.
- * @see #setAttributeOptional(String)
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject_AttributeOptional()
- * @model
- * @generated
- */
- String getAttributeOptional();
+public interface BaseObject extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Attribute Optional</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Attribute Optional</em>' attribute isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Attribute Optional</em>' attribute.
+ * @see #setAttributeOptional(String)
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject_AttributeOptional()
+ * @model
+ * @generated
+ */
+ String getAttributeOptional();
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional <em>Attribute Optional</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Attribute Optional</em>' attribute.
- * @see #getAttributeOptional()
- * @generated
- */
- void setAttributeOptional(String value);
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional
+ * <em>Attribute Optional</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Attribute Optional</em>' attribute.
+ * @see #getAttributeOptional()
+ * @generated
+ */
+ void setAttributeOptional(String value);
- /**
- * Returns the value of the '<em><b>Attribute Required</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Attribute Required</em>' attribute isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Attribute Required</em>' attribute.
- * @see #setAttributeRequired(String)
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject_AttributeRequired()
- * @model required="true"
- * @generated
- */
- String getAttributeRequired();
+ /**
+ * Returns the value of the '<em><b>Attribute Required</b></em>' attribute. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Attribute Required</em>' attribute isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Attribute Required</em>' attribute.
+ * @see #setAttributeRequired(String)
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject_AttributeRequired()
+ * @model required="true"
+ * @generated
+ */
+ String getAttributeRequired();
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired <em>Attribute Required</em>}' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Attribute Required</em>' attribute.
- * @see #getAttributeRequired()
- * @generated
- */
- void setAttributeRequired(String value);
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired
+ * <em>Attribute Required</em>}' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Attribute Required</em>' attribute.
+ * @see #getAttributeRequired()
+ * @generated
+ */
+ void setAttributeRequired(String value);
- /**
- * Returns the value of the '<em><b>Attribute List</b></em>' attribute list.
- * The list contents are of type {@link java.lang.String}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Attribute List</em>' attribute list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Attribute List</em>' attribute list.
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject_AttributeList()
- * @model
- * @generated
- */
- EList<String> getAttributeList();
+ /**
+ * Returns the value of the '<em><b>Attribute List</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.String}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Attribute List</em>' attribute list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Attribute List</em>' attribute list.
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getBaseObject_AttributeList()
+ * @model
+ * @generated
+ */
+ EList<String> getAttributeList();
} // BaseObject
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ContainmentObject.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ContainmentObject.java
index 292a1db804..8a7c5c9ec5 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ContainmentObject.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ContainmentObject.java
@@ -13,63 +13,63 @@ package org.eclipse.emf.cdo.tests.model6;
import org.eclipse.emf.common.util.EList;
/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Containment Object</b></em>'.
- * <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Containment Object</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional <em>Containment Optional</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentList <em>Containment List</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional <em>Containment Optional</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentList <em>Containment List</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.cdo.tests.model6.Model6Package#getContainmentObject()
* @model
* @generated
*/
-public interface ContainmentObject extends BaseObject {
- /**
- * Returns the value of the '<em><b>Containment Optional</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Containment Optional</em>' containment reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Containment Optional</em>' containment reference.
- * @see #setContainmentOptional(BaseObject)
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getContainmentObject_ContainmentOptional()
- * @model containment="true"
- * @generated
- */
- BaseObject getContainmentOptional();
+public interface ContainmentObject extends BaseObject
+{
+ /**
+ * Returns the value of the '<em><b>Containment Optional</b></em>' containment reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Containment Optional</em>' containment reference isn't clear, there really should be
+ * more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Containment Optional</em>' containment reference.
+ * @see #setContainmentOptional(BaseObject)
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getContainmentObject_ContainmentOptional()
+ * @model containment="true"
+ * @generated
+ */
+ BaseObject getContainmentOptional();
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional <em>Containment Optional</em>}' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Containment Optional</em>' containment reference.
- * @see #getContainmentOptional()
- * @generated
- */
- void setContainmentOptional(BaseObject value);
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional
+ * <em>Containment Optional</em>}' containment reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Containment Optional</em>' containment reference.
+ * @see #getContainmentOptional()
+ * @generated
+ */
+ void setContainmentOptional(BaseObject value);
- /**
- * Returns the value of the '<em><b>Containment List</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.cdo.tests.model6.BaseObject}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Containment List</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Containment List</em>' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getContainmentObject_ContainmentList()
- * @model containment="true"
- * @generated
- */
- EList<BaseObject> getContainmentList();
+ /**
+ * Returns the value of the '<em><b>Containment List</b></em>' containment reference list. The list contents are of
+ * type {@link org.eclipse.emf.cdo.tests.model6.BaseObject}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Containment List</em>' containment reference list isn't clear, there really should be
+ * more of a description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Containment List</em>' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getContainmentObject_ContainmentList()
+ * @model containment="true"
+ * @generated
+ */
+ EList<BaseObject> getContainmentList();
} // ContainmentObject
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java
index f6d1f6ffc6..44dc4a531f 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Factory.java
@@ -13,66 +13,59 @@ package org.eclipse.emf.cdo.tests.model6;
import org.eclipse.emf.ecore.EFactory;
/**
- * <!-- begin-user-doc -->
- * The <b>Factory</b> for the model.
- * It provides a create method for each non-abstract class of the model.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> The <b>Factory</b> for the model. It provides a create method for each non-abstract class of
+ * the model. <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.cdo.tests.model6.Model6Package
* @generated
*/
-public interface Model6Factory extends EFactory {
- /**
- * The singleton instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.Model6FactoryImpl
- .init();
+public interface Model6Factory extends EFactory
+{
+ /**
+ * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ Model6Factory eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.Model6FactoryImpl.init();
- /**
- * Returns a new object of class '<em>Root</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Root</em>'.
- * @generated
- */
- Root createRoot();
+ /**
+ * Returns a new object of class '<em>Root</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Root</em>'.
+ * @generated
+ */
+ Root createRoot();
- /**
- * Returns a new object of class '<em>Base Object</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Base Object</em>'.
- * @generated
- */
- BaseObject createBaseObject();
+ /**
+ * Returns a new object of class '<em>Base Object</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Base Object</em>'.
+ * @generated
+ */
+ BaseObject createBaseObject();
- /**
- * Returns a new object of class '<em>Reference Object</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Reference Object</em>'.
- * @generated
- */
- ReferenceObject createReferenceObject();
+ /**
+ * Returns a new object of class '<em>Reference Object</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Reference Object</em>'.
+ * @generated
+ */
+ ReferenceObject createReferenceObject();
- /**
- * Returns a new object of class '<em>Containment Object</em>'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return a new object of class '<em>Containment Object</em>'.
- * @generated
- */
- ContainmentObject createContainmentObject();
+ /**
+ * Returns a new object of class '<em>Containment Object</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Containment Object</em>'.
+ * @generated
+ */
+ ContainmentObject createContainmentObject();
- /**
- * Returns the package supported by this factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the package supported by this factory.
- * @generated
- */
- Model6Package getModel6Package();
+ /**
+ * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the package supported by this factory.
+ * @generated
+ */
+ Model6Package getModel6Package();
-} //Model6Factory
+} // Model6Factory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java
index 56d9ac6d62..723ec495ac 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Model6Package.java
@@ -16,601 +16,593 @@ import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
/**
- * <!-- begin-user-doc -->
- * The <b>Package</b> for the model.
- * It contains accessors for the meta objects to represent
+ * <!-- begin-user-doc --> The <b>Package</b> for the model. It contains accessors for the meta objects to represent
* <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.cdo.tests.model6.Model6Factory
* @model kind="package"
* @generated
*/
-public interface Model6Package extends EPackage {
- /**
- * The package name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNAME = "model6";
-
- /**
- * The package namespace URI.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/model6/1.0.0";
-
- /**
- * The package namespace name.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- String eNS_PREFIX = "model6";
-
- /**
- * The singleton instance of the package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl
- .init();
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl <em>Root</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.tests.model6.impl.RootImpl
- * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getRoot()
- * @generated
- */
- int ROOT = 0;
-
- /**
- * The feature id for the '<em><b>List A</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ROOT__LIST_A = 0;
-
- /**
- * The feature id for the '<em><b>List B</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ROOT__LIST_B = 1;
-
- /**
- * The feature id for the '<em><b>List C</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ROOT__LIST_C = 2;
-
- /**
- * The feature id for the '<em><b>List D</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ROOT__LIST_D = 3;
-
- /**
- * The number of structural features of the '<em>Root</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int ROOT_FEATURE_COUNT = 4;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl <em>Base Object</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl
- * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getBaseObject()
- * @generated
- */
- int BASE_OBJECT = 1;
-
- /**
- * The feature id for the '<em><b>Attribute Optional</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BASE_OBJECT__ATTRIBUTE_OPTIONAL = 0;
-
- /**
- * The feature id for the '<em><b>Attribute Required</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BASE_OBJECT__ATTRIBUTE_REQUIRED = 1;
-
- /**
- * The feature id for the '<em><b>Attribute List</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BASE_OBJECT__ATTRIBUTE_LIST = 2;
-
- /**
- * The number of structural features of the '<em>Base Object</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int BASE_OBJECT_FEATURE_COUNT = 3;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl <em>Reference Object</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl
- * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getReferenceObject()
- * @generated
- */
- int REFERENCE_OBJECT = 2;
-
- /**
- * The feature id for the '<em><b>Attribute Optional</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REFERENCE_OBJECT__ATTRIBUTE_OPTIONAL = BASE_OBJECT__ATTRIBUTE_OPTIONAL;
-
- /**
- * The feature id for the '<em><b>Attribute Required</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REFERENCE_OBJECT__ATTRIBUTE_REQUIRED = BASE_OBJECT__ATTRIBUTE_REQUIRED;
-
- /**
- * The feature id for the '<em><b>Attribute List</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REFERENCE_OBJECT__ATTRIBUTE_LIST = BASE_OBJECT__ATTRIBUTE_LIST;
-
- /**
- * The feature id for the '<em><b>Reference Optional</b></em>' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REFERENCE_OBJECT__REFERENCE_OPTIONAL = BASE_OBJECT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Reference List</b></em>' reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REFERENCE_OBJECT__REFERENCE_LIST = BASE_OBJECT_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Reference Object</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int REFERENCE_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2;
-
- /**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl <em>Containment Object</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl
- * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getContainmentObject()
- * @generated
- */
- int CONTAINMENT_OBJECT = 3;
-
- /**
- * The feature id for the '<em><b>Attribute Optional</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTAINMENT_OBJECT__ATTRIBUTE_OPTIONAL = BASE_OBJECT__ATTRIBUTE_OPTIONAL;
-
- /**
- * The feature id for the '<em><b>Attribute Required</b></em>' attribute.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTAINMENT_OBJECT__ATTRIBUTE_REQUIRED = BASE_OBJECT__ATTRIBUTE_REQUIRED;
-
- /**
- * The feature id for the '<em><b>Attribute List</b></em>' attribute list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTAINMENT_OBJECT__ATTRIBUTE_LIST = BASE_OBJECT__ATTRIBUTE_LIST;
-
- /**
- * The feature id for the '<em><b>Containment Optional</b></em>' containment reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL = BASE_OBJECT_FEATURE_COUNT + 0;
-
- /**
- * The feature id for the '<em><b>Containment List</b></em>' containment reference list.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTAINMENT_OBJECT__CONTAINMENT_LIST = BASE_OBJECT_FEATURE_COUNT + 1;
-
- /**
- * The number of structural features of the '<em>Containment Object</em>' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- * @ordered
- */
- int CONTAINMENT_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2;
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.Root <em>Root</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Root</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.Root
- * @generated
- */
- EClass getRoot();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListA <em>List A</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>List A</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.Root#getListA()
- * @see #getRoot()
- * @generated
- */
- EReference getRoot_ListA();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListB <em>List B</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>List B</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.Root#getListB()
- * @see #getRoot()
- * @generated
- */
- EReference getRoot_ListB();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListC <em>List C</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>List C</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.Root#getListC()
- * @see #getRoot()
- * @generated
- */
- EReference getRoot_ListC();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListD <em>List D</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>List D</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.Root#getListD()
- * @see #getRoot()
- * @generated
- */
- EReference getRoot_ListD();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.BaseObject <em>Base Object</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Base Object</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.BaseObject
- * @generated
- */
- EClass getBaseObject();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional <em>Attribute Optional</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Attribute Optional</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional()
- * @see #getBaseObject()
- * @generated
- */
- EAttribute getBaseObject_AttributeOptional();
-
- /**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired <em>Attribute Required</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute '<em>Attribute Required</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired()
- * @see #getBaseObject()
- * @generated
- */
- EAttribute getBaseObject_AttributeRequired();
-
- /**
- * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeList <em>Attribute List</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the attribute list '<em>Attribute List</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeList()
- * @see #getBaseObject()
- * @generated
- */
- EAttribute getBaseObject_AttributeList();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject <em>Reference Object</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Reference Object</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject
- * @generated
- */
- EClass getReferenceObject();
-
- /**
- * Returns the meta object for the reference '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional <em>Reference Optional</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference '<em>Reference Optional</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional()
- * @see #getReferenceObject()
- * @generated
- */
- EReference getReferenceObject_ReferenceOptional();
-
- /**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceList <em>Reference List</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the reference list '<em>Reference List</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceList()
- * @see #getReferenceObject()
- * @generated
- */
- EReference getReferenceObject_ReferenceList();
-
- /**
- * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject <em>Containment Object</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for class '<em>Containment Object</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject
- * @generated
- */
- EClass getContainmentObject();
-
- /**
- * Returns the meta object for the containment reference '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional <em>Containment Optional</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference '<em>Containment Optional</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional()
- * @see #getContainmentObject()
- * @generated
- */
- EReference getContainmentObject_ContainmentOptional();
-
- /**
- * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentList <em>Containment List</em>}'.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the meta object for the containment reference list '<em>Containment List</em>'.
- * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentList()
- * @see #getContainmentObject()
- * @generated
- */
- EReference getContainmentObject_ContainmentList();
-
- /**
- * Returns the factory that creates the instances of the model.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the factory that creates the instances of the model.
- * @generated
- */
- Model6Factory getModel6Factory();
-
- /**
- * <!-- begin-user-doc -->
- * Defines literals for the meta objects that represent
- * <ul>
- * <li>each class,</li>
- * <li>each feature of each class,</li>
- * <li>each enum,</li>
- * <li>and each data type</li>
- * </ul>
- * <!-- end-user-doc -->
- * @generated
- */
- interface Literals {
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl <em>Root</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.tests.model6.impl.RootImpl
- * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getRoot()
- * @generated
- */
- EClass ROOT = eINSTANCE.getRoot();
-
- /**
- * The meta object literal for the '<em><b>List A</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ROOT__LIST_A = eINSTANCE.getRoot_ListA();
-
- /**
- * The meta object literal for the '<em><b>List B</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ROOT__LIST_B = eINSTANCE.getRoot_ListB();
-
- /**
- * The meta object literal for the '<em><b>List C</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ROOT__LIST_C = eINSTANCE.getRoot_ListC();
-
- /**
- * The meta object literal for the '<em><b>List D</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference ROOT__LIST_D = eINSTANCE.getRoot_ListD();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl <em>Base Object</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl
- * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getBaseObject()
- * @generated
- */
- EClass BASE_OBJECT = eINSTANCE.getBaseObject();
-
- /**
- * The meta object literal for the '<em><b>Attribute Optional</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BASE_OBJECT__ATTRIBUTE_OPTIONAL = eINSTANCE
- .getBaseObject_AttributeOptional();
-
- /**
- * The meta object literal for the '<em><b>Attribute Required</b></em>' attribute feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BASE_OBJECT__ATTRIBUTE_REQUIRED = eINSTANCE
- .getBaseObject_AttributeRequired();
-
- /**
- * The meta object literal for the '<em><b>Attribute List</b></em>' attribute list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EAttribute BASE_OBJECT__ATTRIBUTE_LIST = eINSTANCE
- .getBaseObject_AttributeList();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl <em>Reference Object</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl
- * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getReferenceObject()
- * @generated
- */
- EClass REFERENCE_OBJECT = eINSTANCE.getReferenceObject();
-
- /**
- * The meta object literal for the '<em><b>Reference Optional</b></em>' reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference REFERENCE_OBJECT__REFERENCE_OPTIONAL = eINSTANCE
- .getReferenceObject_ReferenceOptional();
-
- /**
- * The meta object literal for the '<em><b>Reference List</b></em>' reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference REFERENCE_OBJECT__REFERENCE_LIST = eINSTANCE
- .getReferenceObject_ReferenceList();
-
- /**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl <em>Containment Object</em>}' class.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl
- * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getContainmentObject()
- * @generated
- */
- EClass CONTAINMENT_OBJECT = eINSTANCE.getContainmentObject();
-
- /**
- * The meta object literal for the '<em><b>Containment Optional</b></em>' containment reference feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL = eINSTANCE
- .getContainmentObject_ContainmentOptional();
-
- /**
- * The meta object literal for the '<em><b>Containment List</b></em>' containment reference list feature.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- EReference CONTAINMENT_OBJECT__CONTAINMENT_LIST = eINSTANCE
- .getContainmentObject_ContainmentList();
-
- }
-
-} //Model6Package
+public interface Model6Package extends EPackage
+{
+ /**
+ * The package name. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNAME = "model6";
+
+ /**
+ * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/model6/1.0.0";
+
+ /**
+ * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ String eNS_PREFIX = "model6";
+
+ /**
+ * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ Model6Package eINSTANCE = org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl.init();
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl <em>Root</em>}' class. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model6.impl.RootImpl
+ * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getRoot()
+ * @generated
+ */
+ int ROOT = 0;
+
+ /**
+ * The feature id for the '<em><b>List A</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ROOT__LIST_A = 0;
+
+ /**
+ * The feature id for the '<em><b>List B</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ROOT__LIST_B = 1;
+
+ /**
+ * The feature id for the '<em><b>List C</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ROOT__LIST_C = 2;
+
+ /**
+ * The feature id for the '<em><b>List D</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ROOT__LIST_D = 3;
+
+ /**
+ * The number of structural features of the '<em>Root</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int ROOT_FEATURE_COUNT = 4;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl <em>Base Object</em>}'
+ * class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl
+ * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getBaseObject()
+ * @generated
+ */
+ int BASE_OBJECT = 1;
+
+ /**
+ * The feature id for the '<em><b>Attribute Optional</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BASE_OBJECT__ATTRIBUTE_OPTIONAL = 0;
+
+ /**
+ * The feature id for the '<em><b>Attribute Required</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BASE_OBJECT__ATTRIBUTE_REQUIRED = 1;
+
+ /**
+ * The feature id for the '<em><b>Attribute List</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BASE_OBJECT__ATTRIBUTE_LIST = 2;
+
+ /**
+ * The number of structural features of the '<em>Base Object</em>' class. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int BASE_OBJECT_FEATURE_COUNT = 3;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl
+ * <em>Reference Object</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl
+ * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getReferenceObject()
+ * @generated
+ */
+ int REFERENCE_OBJECT = 2;
+
+ /**
+ * The feature id for the '<em><b>Attribute Optional</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REFERENCE_OBJECT__ATTRIBUTE_OPTIONAL = BASE_OBJECT__ATTRIBUTE_OPTIONAL;
+
+ /**
+ * The feature id for the '<em><b>Attribute Required</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REFERENCE_OBJECT__ATTRIBUTE_REQUIRED = BASE_OBJECT__ATTRIBUTE_REQUIRED;
+
+ /**
+ * The feature id for the '<em><b>Attribute List</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REFERENCE_OBJECT__ATTRIBUTE_LIST = BASE_OBJECT__ATTRIBUTE_LIST;
+
+ /**
+ * The feature id for the '<em><b>Reference Optional</b></em>' reference. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REFERENCE_OBJECT__REFERENCE_OPTIONAL = BASE_OBJECT_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Reference List</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REFERENCE_OBJECT__REFERENCE_LIST = BASE_OBJECT_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the '<em>Reference Object</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int REFERENCE_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl
+ * <em>Containment Object</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl
+ * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getContainmentObject()
+ * @generated
+ */
+ int CONTAINMENT_OBJECT = 3;
+
+ /**
+ * The feature id for the '<em><b>Attribute Optional</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINMENT_OBJECT__ATTRIBUTE_OPTIONAL = BASE_OBJECT__ATTRIBUTE_OPTIONAL;
+
+ /**
+ * The feature id for the '<em><b>Attribute Required</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINMENT_OBJECT__ATTRIBUTE_REQUIRED = BASE_OBJECT__ATTRIBUTE_REQUIRED;
+
+ /**
+ * The feature id for the '<em><b>Attribute List</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc
+ * -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINMENT_OBJECT__ATTRIBUTE_LIST = BASE_OBJECT__ATTRIBUTE_LIST;
+
+ /**
+ * The feature id for the '<em><b>Containment Optional</b></em>' containment reference. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL = BASE_OBJECT_FEATURE_COUNT + 0;
+
+ /**
+ * The feature id for the '<em><b>Containment List</b></em>' containment reference list. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINMENT_OBJECT__CONTAINMENT_LIST = BASE_OBJECT_FEATURE_COUNT + 1;
+
+ /**
+ * The number of structural features of the '<em>Containment Object</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int CONTAINMENT_OBJECT_FEATURE_COUNT = BASE_OBJECT_FEATURE_COUNT + 2;
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.Root <em>Root</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Root</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.Root
+ * @generated
+ */
+ EClass getRoot();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListA
+ * <em>List A</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>List A</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.Root#getListA()
+ * @see #getRoot()
+ * @generated
+ */
+ EReference getRoot_ListA();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListB
+ * <em>List B</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>List B</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.Root#getListB()
+ * @see #getRoot()
+ * @generated
+ */
+ EReference getRoot_ListB();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListC
+ * <em>List C</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>List C</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.Root#getListC()
+ * @see #getRoot()
+ * @generated
+ */
+ EReference getRoot_ListC();
+
+ /**
+ * Returns the meta object for the containment reference list '{@link org.eclipse.emf.cdo.tests.model6.Root#getListD
+ * <em>List D</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>List D</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.Root#getListD()
+ * @see #getRoot()
+ * @generated
+ */
+ EReference getRoot_ListD();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.BaseObject <em>Base Object</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Base Object</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.BaseObject
+ * @generated
+ */
+ EClass getBaseObject();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional
+ * <em>Attribute Optional</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Attribute Optional</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeOptional()
+ * @see #getBaseObject()
+ * @generated
+ */
+ EAttribute getBaseObject_AttributeOptional();
+
+ /**
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired
+ * <em>Attribute Required</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute '<em>Attribute Required</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeRequired()
+ * @see #getBaseObject()
+ * @generated
+ */
+ EAttribute getBaseObject_AttributeRequired();
+
+ /**
+ * Returns the meta object for the attribute list '
+ * {@link org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeList <em>Attribute List</em>}'. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Attribute List</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.BaseObject#getAttributeList()
+ * @see #getBaseObject()
+ * @generated
+ */
+ EAttribute getBaseObject_AttributeList();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject
+ * <em>Reference Object</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Reference Object</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject
+ * @generated
+ */
+ EClass getReferenceObject();
+
+ /**
+ * Returns the meta object for the reference '
+ * {@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional <em>Reference Optional</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference '<em>Reference Optional</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional()
+ * @see #getReferenceObject()
+ * @generated
+ */
+ EReference getReferenceObject_ReferenceOptional();
+
+ /**
+ * Returns the meta object for the reference list '
+ * {@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceList <em>Reference List</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the reference list '<em>Reference List</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceList()
+ * @see #getReferenceObject()
+ * @generated
+ */
+ EReference getReferenceObject_ReferenceList();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject
+ * <em>Containment Object</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Containment Object</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject
+ * @generated
+ */
+ EClass getContainmentObject();
+
+ /**
+ * Returns the meta object for the containment reference '
+ * {@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional <em>Containment Optional</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference '<em>Containment Optional</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentOptional()
+ * @see #getContainmentObject()
+ * @generated
+ */
+ EReference getContainmentObject_ContainmentOptional();
+
+ /**
+ * Returns the meta object for the containment reference list '
+ * {@link org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentList <em>Containment List</em>}'. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the containment reference list '<em>Containment List</em>'.
+ * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject#getContainmentList()
+ * @see #getContainmentObject()
+ * @generated
+ */
+ EReference getContainmentObject_ContainmentList();
+
+ /**
+ * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the factory that creates the instances of the model.
+ * @generated
+ */
+ Model6Factory getModel6Factory();
+
+ /**
+ * <!-- begin-user-doc --> Defines literals for the meta objects that represent
+ * <ul>
+ * <li>each class,</li>
+ * <li>each feature of each class,</li>
+ * <li>each enum,</li>
+ * <li>and each data type</li>
+ * </ul>
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ interface Literals
+ {
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl <em>Root</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model6.impl.RootImpl
+ * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getRoot()
+ * @generated
+ */
+ EClass ROOT = eINSTANCE.getRoot();
+
+ /**
+ * The meta object literal for the '<em><b>List A</b></em>' containment reference list feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ROOT__LIST_A = eINSTANCE.getRoot_ListA();
+
+ /**
+ * The meta object literal for the '<em><b>List B</b></em>' containment reference list feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ROOT__LIST_B = eINSTANCE.getRoot_ListB();
+
+ /**
+ * The meta object literal for the '<em><b>List C</b></em>' containment reference list feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ROOT__LIST_C = eINSTANCE.getRoot_ListC();
+
+ /**
+ * The meta object literal for the '<em><b>List D</b></em>' containment reference list feature. <!-- begin-user-doc
+ * --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference ROOT__LIST_D = eINSTANCE.getRoot_ListD();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl
+ * <em>Base Object</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl
+ * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getBaseObject()
+ * @generated
+ */
+ EClass BASE_OBJECT = eINSTANCE.getBaseObject();
+
+ /**
+ * The meta object literal for the '<em><b>Attribute Optional</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BASE_OBJECT__ATTRIBUTE_OPTIONAL = eINSTANCE.getBaseObject_AttributeOptional();
+
+ /**
+ * The meta object literal for the '<em><b>Attribute Required</b></em>' attribute feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BASE_OBJECT__ATTRIBUTE_REQUIRED = eINSTANCE.getBaseObject_AttributeRequired();
+
+ /**
+ * The meta object literal for the '<em><b>Attribute List</b></em>' attribute list feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute BASE_OBJECT__ATTRIBUTE_LIST = eINSTANCE.getBaseObject_AttributeList();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl
+ * <em>Reference Object</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl
+ * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getReferenceObject()
+ * @generated
+ */
+ EClass REFERENCE_OBJECT = eINSTANCE.getReferenceObject();
+
+ /**
+ * The meta object literal for the '<em><b>Reference Optional</b></em>' reference feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference REFERENCE_OBJECT__REFERENCE_OPTIONAL = eINSTANCE.getReferenceObject_ReferenceOptional();
+
+ /**
+ * The meta object literal for the '<em><b>Reference List</b></em>' reference list feature. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference REFERENCE_OBJECT__REFERENCE_LIST = eINSTANCE.getReferenceObject_ReferenceList();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl
+ * <em>Containment Object</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl
+ * @see org.eclipse.emf.cdo.tests.model6.impl.Model6PackageImpl#getContainmentObject()
+ * @generated
+ */
+ EClass CONTAINMENT_OBJECT = eINSTANCE.getContainmentObject();
+
+ /**
+ * The meta object literal for the '<em><b>Containment Optional</b></em>' containment reference feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL = eINSTANCE.getContainmentObject_ContainmentOptional();
+
+ /**
+ * The meta object literal for the '<em><b>Containment List</b></em>' containment reference list feature. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ EReference CONTAINMENT_OBJECT__CONTAINMENT_LIST = eINSTANCE.getContainmentObject_ContainmentList();
+
+ }
+
+} // Model6Package
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ReferenceObject.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ReferenceObject.java
index ea3a039827..a9da3fb5e3 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ReferenceObject.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/ReferenceObject.java
@@ -13,63 +13,63 @@ package org.eclipse.emf.cdo.tests.model6;
import org.eclipse.emf.common.util.EList;
/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Reference Object</b></em>'.
- * <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Reference Object</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional <em>Reference Optional</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceList <em>Reference List</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional <em>Reference Optional</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceList <em>Reference List</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.cdo.tests.model6.Model6Package#getReferenceObject()
* @model
* @generated
*/
-public interface ReferenceObject extends BaseObject {
- /**
- * Returns the value of the '<em><b>Reference Optional</b></em>' reference.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Reference Optional</em>' reference isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Reference Optional</em>' reference.
- * @see #setReferenceOptional(BaseObject)
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getReferenceObject_ReferenceOptional()
- * @model
- * @generated
- */
- BaseObject getReferenceOptional();
+public interface ReferenceObject extends BaseObject
+{
+ /**
+ * Returns the value of the '<em><b>Reference Optional</b></em>' reference. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Reference Optional</em>' reference isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Reference Optional</em>' reference.
+ * @see #setReferenceOptional(BaseObject)
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getReferenceObject_ReferenceOptional()
+ * @model
+ * @generated
+ */
+ BaseObject getReferenceOptional();
- /**
- * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional <em>Reference Optional</em>}' reference.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param value the new value of the '<em>Reference Optional</em>' reference.
- * @see #getReferenceOptional()
- * @generated
- */
- void setReferenceOptional(BaseObject value);
+ /**
+ * Sets the value of the '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject#getReferenceOptional
+ * <em>Reference Optional</em>}' reference. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param value
+ * the new value of the '<em>Reference Optional</em>' reference.
+ * @see #getReferenceOptional()
+ * @generated
+ */
+ void setReferenceOptional(BaseObject value);
- /**
- * Returns the value of the '<em><b>Reference List</b></em>' reference list.
- * The list contents are of type {@link org.eclipse.emf.cdo.tests.model6.BaseObject}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>Reference List</em>' reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>Reference List</em>' reference list.
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getReferenceObject_ReferenceList()
- * @model
- * @generated
- */
- EList<BaseObject> getReferenceList();
+ /**
+ * Returns the value of the '<em><b>Reference List</b></em>' reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model6.BaseObject}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Reference List</em>' reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Reference List</em>' reference list.
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getReferenceObject_ReferenceList()
+ * @model
+ * @generated
+ */
+ EList<BaseObject> getReferenceList();
} // ReferenceObject
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Root.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Root.java
index c12c9475f7..80c0f5dd23 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Root.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/Root.java
@@ -11,91 +11,88 @@
package org.eclipse.emf.cdo.tests.model6;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EObject;
/**
- * <!-- begin-user-doc -->
- * A representation of the model object '<em><b>Root</b></em>'.
- * <!-- end-user-doc -->
- *
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Root</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.Root#getListA <em>List A</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.Root#getListB <em>List B</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.Root#getListC <em>List C</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.Root#getListD <em>List D</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.Root#getListA <em>List A</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.Root#getListB <em>List B</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.Root#getListC <em>List C</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.Root#getListD <em>List D</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot()
* @model
* @generated
*/
-public interface Root extends EObject {
- /**
- * Returns the value of the '<em><b>List A</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.cdo.tests.model6.BaseObject}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>List A</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>List A</em>' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListA()
- * @model containment="true"
- * @generated
- */
- EList<BaseObject> getListA();
+public interface Root extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>List A</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model6.BaseObject}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>List A</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>List A</em>' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListA()
+ * @model containment="true"
+ * @generated
+ */
+ EList<BaseObject> getListA();
- /**
- * Returns the value of the '<em><b>List B</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.cdo.tests.model6.BaseObject}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>List B</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>List B</em>' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListB()
- * @model containment="true"
- * @generated
- */
- EList<BaseObject> getListB();
+ /**
+ * Returns the value of the '<em><b>List B</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model6.BaseObject}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>List B</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>List B</em>' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListB()
+ * @model containment="true"
+ * @generated
+ */
+ EList<BaseObject> getListB();
- /**
- * Returns the value of the '<em><b>List C</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.cdo.tests.model6.BaseObject}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>List C</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>List C</em>' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListC()
- * @model containment="true"
- * @generated
- */
- EList<BaseObject> getListC();
+ /**
+ * Returns the value of the '<em><b>List C</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model6.BaseObject}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>List C</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>List C</em>' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListC()
+ * @model containment="true"
+ * @generated
+ */
+ EList<BaseObject> getListC();
- /**
- * Returns the value of the '<em><b>List D</b></em>' containment reference list.
- * The list contents are of type {@link org.eclipse.emf.cdo.tests.model6.BaseObject}.
- * <!-- begin-user-doc -->
- * <p>
- * If the meaning of the '<em>List D</em>' containment reference list isn't clear,
- * there really should be more of a description here...
- * </p>
- * <!-- end-user-doc -->
- * @return the value of the '<em>List D</em>' containment reference list.
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListD()
- * @model containment="true"
- * @generated
- */
- EList<BaseObject> getListD();
+ /**
+ * Returns the value of the '<em><b>List D</b></em>' containment reference list. The list contents are of type
+ * {@link org.eclipse.emf.cdo.tests.model6.BaseObject}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>List D</em>' containment reference list isn't clear, there really should be more of a
+ * description here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>List D</em>' containment reference list.
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#getRoot_ListD()
+ * @model containment="true"
+ * @generated
+ */
+ EList<BaseObject> getListD();
} // Root
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/BaseObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/BaseObjectImpl.java
index b0b58cd667..10a443a5a4 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/BaseObjectImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/BaseObjectImpl.java
@@ -13,106 +13,107 @@ package org.eclipse.emf.cdo.tests.model6.impl;
import org.eclipse.emf.cdo.tests.model6.BaseObject;
import org.eclipse.emf.cdo.tests.model6.Model6Package;
-import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.internal.cdo.CDOObjectImpl;
-
/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Base Object</b></em>'.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Base Object</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl#getAttributeOptional <em>Attribute Optional</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl#getAttributeRequired <em>Attribute Required</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl#getAttributeList <em>Attribute List</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl#getAttributeOptional <em>Attribute Optional</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl#getAttributeRequired <em>Attribute Required</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.BaseObjectImpl#getAttributeList <em>Attribute List</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class BaseObjectImpl extends CDOObjectImpl implements BaseObject {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected BaseObjectImpl() {
- super();
- }
+public class BaseObjectImpl extends CDOObjectImpl implements BaseObject
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected BaseObjectImpl()
+ {
+ super();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Model6Package.Literals.BASE_OBJECT;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model6Package.Literals.BASE_OBJECT;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected int eStaticFeatureCount() {
- return 0;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getAttributeOptional() {
- return (String) eGet(
- Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_OPTIONAL, true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getAttributeOptional()
+ {
+ return (String)eGet(Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_OPTIONAL, true);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAttributeOptional(String newAttributeOptional) {
- eSet(Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_OPTIONAL,
- newAttributeOptional);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setAttributeOptional(String newAttributeOptional)
+ {
+ eSet(Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_OPTIONAL, newAttributeOptional);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public String getAttributeRequired() {
- return (String) eGet(
- Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_REQUIRED, true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public String getAttributeRequired()
+ {
+ return (String)eGet(Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_REQUIRED, true);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setAttributeRequired(String newAttributeRequired) {
- eSet(Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_REQUIRED,
- newAttributeRequired);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setAttributeRequired(String newAttributeRequired)
+ {
+ eSet(Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_REQUIRED, newAttributeRequired);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- public EList<String> getAttributeList() {
- return (EList<String>) eGet(
- Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_LIST, true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<String> getAttributeList()
+ {
+ return (EList<String>)eGet(Model6Package.Literals.BASE_OBJECT__ATTRIBUTE_LIST, true);
+ }
-} //BaseObjectImpl
+} // BaseObjectImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ContainmentObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ContainmentObjectImpl.java
index f77d614c08..0ba6ff1e7f 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ContainmentObjectImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ContainmentObjectImpl.java
@@ -15,75 +15,74 @@ import org.eclipse.emf.cdo.tests.model6.ContainmentObject;
import org.eclipse.emf.cdo.tests.model6.Model6Package;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Containment Object</b></em>'.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Containment Object</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl#getContainmentOptional <em>Containment Optional</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl#getContainmentList <em>Containment List</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl#getContainmentOptional <em>Containment
+ * Optional</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.ContainmentObjectImpl#getContainmentList <em>Containment List</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class ContainmentObjectImpl extends BaseObjectImpl implements
- ContainmentObject {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ContainmentObjectImpl() {
- super();
- }
+public class ContainmentObjectImpl extends BaseObjectImpl implements ContainmentObject
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ContainmentObjectImpl()
+ {
+ super();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Model6Package.Literals.CONTAINMENT_OBJECT;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model6Package.Literals.CONTAINMENT_OBJECT;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public BaseObject getContainmentOptional() {
- return (BaseObject) eGet(
- Model6Package.Literals.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL,
- true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BaseObject getContainmentOptional()
+ {
+ return (BaseObject)eGet(Model6Package.Literals.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, true);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setContainmentOptional(BaseObject newContainmentOptional) {
- eSet(Model6Package.Literals.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL,
- newContainmentOptional);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setContainmentOptional(BaseObject newContainmentOptional)
+ {
+ eSet(Model6Package.Literals.CONTAINMENT_OBJECT__CONTAINMENT_OPTIONAL, newContainmentOptional);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- public EList<BaseObject> getContainmentList() {
- return (EList<BaseObject>) eGet(
- Model6Package.Literals.CONTAINMENT_OBJECT__CONTAINMENT_LIST,
- true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<BaseObject> getContainmentList()
+ {
+ return (EList<BaseObject>)eGet(Model6Package.Literals.CONTAINMENT_OBJECT__CONTAINMENT_LIST, true);
+ }
-} //ContainmentObjectImpl
+} // ContainmentObjectImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6FactoryImpl.java
index 02635713f0..c5b6c16a83 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6FactoryImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6FactoryImpl.java
@@ -10,132 +10,146 @@
*/
package org.eclipse.emf.cdo.tests.model6.impl;
-import org.eclipse.emf.cdo.tests.model6.*;
+import org.eclipse.emf.cdo.tests.model6.BaseObject;
+import org.eclipse.emf.cdo.tests.model6.ContainmentObject;
+import org.eclipse.emf.cdo.tests.model6.Model6Factory;
+import org.eclipse.emf.cdo.tests.model6.Model6Package;
+import org.eclipse.emf.cdo.tests.model6.ReferenceObject;
+import org.eclipse.emf.cdo.tests.model6.Root;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
-
import org.eclipse.emf.ecore.impl.EFactoryImpl;
-
import org.eclipse.emf.ecore.plugin.EcorePlugin;
/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Factory</b>.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
+ *
* @generated
*/
-public class Model6FactoryImpl extends EFactoryImpl implements Model6Factory {
- /**
- * Creates the default factory implementation.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public static Model6Factory init() {
- try {
- Model6Factory theModel6Factory = (Model6Factory) EPackage.Registry.INSTANCE
- .getEFactory("http://www.eclipse.org/emf/CDO/tests/model6/1.0.0");
- if (theModel6Factory != null) {
- return theModel6Factory;
- }
- } catch (Exception exception) {
- EcorePlugin.INSTANCE.log(exception);
- }
- return new Model6FactoryImpl();
- }
+public class Model6FactoryImpl extends EFactoryImpl implements Model6Factory
+{
+ /**
+ * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public static Model6Factory init()
+ {
+ try
+ {
+ Model6Factory theModel6Factory = (Model6Factory)EPackage.Registry.INSTANCE
+ .getEFactory("http://www.eclipse.org/emf/CDO/tests/model6/1.0.0");
+ if (theModel6Factory != null)
+ {
+ return theModel6Factory;
+ }
+ }
+ catch (Exception exception)
+ {
+ EcorePlugin.INSTANCE.log(exception);
+ }
+ return new Model6FactoryImpl();
+ }
- /**
- * Creates an instance of the factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Model6FactoryImpl() {
- super();
- }
+ /**
+ * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model6FactoryImpl()
+ {
+ super();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- public EObject create(EClass eClass) {
- switch (eClass.getClassifierID()) {
- case Model6Package.ROOT:
- return createRoot();
- case Model6Package.BASE_OBJECT:
- return createBaseObject();
- case Model6Package.REFERENCE_OBJECT:
- return createReferenceObject();
- case Model6Package.CONTAINMENT_OBJECT:
- return createContainmentObject();
- default:
- throw new IllegalArgumentException("The class '" + eClass.getName()
- + "' is not a valid classifier");
- }
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ public EObject create(EClass eClass)
+ {
+ switch (eClass.getClassifierID())
+ {
+ case Model6Package.ROOT:
+ return createRoot();
+ case Model6Package.BASE_OBJECT:
+ return createBaseObject();
+ case Model6Package.REFERENCE_OBJECT:
+ return createReferenceObject();
+ case Model6Package.CONTAINMENT_OBJECT:
+ return createContainmentObject();
+ default:
+ throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
+ }
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Root createRoot() {
- RootImpl root = new RootImpl();
- return root;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Root createRoot()
+ {
+ RootImpl root = new RootImpl();
+ return root;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public BaseObject createBaseObject() {
- BaseObjectImpl baseObject = new BaseObjectImpl();
- return baseObject;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BaseObject createBaseObject()
+ {
+ BaseObjectImpl baseObject = new BaseObjectImpl();
+ return baseObject;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ReferenceObject createReferenceObject() {
- ReferenceObjectImpl referenceObject = new ReferenceObjectImpl();
- return referenceObject;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ReferenceObject createReferenceObject()
+ {
+ ReferenceObjectImpl referenceObject = new ReferenceObjectImpl();
+ return referenceObject;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public ContainmentObject createContainmentObject() {
- ContainmentObjectImpl containmentObject = new ContainmentObjectImpl();
- return containmentObject;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public ContainmentObject createContainmentObject()
+ {
+ ContainmentObjectImpl containmentObject = new ContainmentObjectImpl();
+ return containmentObject;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Model6Package getModel6Package() {
- return (Model6Package) getEPackage();
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model6Package getModel6Package()
+ {
+ return (Model6Package)getEPackage();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @deprecated
- * @generated
- */
- @Deprecated
- public static Model6Package getPackage() {
- return Model6Package.eINSTANCE;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @deprecated
+ * @generated
+ */
+ @Deprecated
+ public static Model6Package getPackage()
+ {
+ return Model6Package.eINSTANCE;
+ }
-} //Model6FactoryImpl
+} // Model6FactoryImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6PackageImpl.java
index f222e17463..98571aa273 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6PackageImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/Model6PackageImpl.java
@@ -21,397 +21,384 @@ import org.eclipse.emf.ecore.EAttribute;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.EReference;
-
import org.eclipse.emf.ecore.impl.EPackageImpl;
/**
- * <!-- begin-user-doc -->
- * An implementation of the model <b>Package</b>.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
+ *
* @generated
*/
-public class Model6PackageImpl extends EPackageImpl implements Model6Package {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass rootEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass baseObjectEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass referenceObjectEClass = null;
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private EClass containmentObjectEClass = null;
-
- /**
- * Creates an instance of the model <b>Package</b>, registered with
- * {@link org.eclipse.emf.ecore.EPackage.Registry EPackage.Registry} by the package
- * package URI value.
- * <p>Note: the correct way to create the package is via the static
- * factory method {@link #init init()}, which also performs
- * initialization of the package, or returns the registered package,
- * if one already exists.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @see org.eclipse.emf.ecore.EPackage.Registry
- * @see org.eclipse.emf.cdo.tests.model6.Model6Package#eNS_URI
- * @see #init()
- * @generated
- */
- private Model6PackageImpl() {
- super(eNS_URI, Model6Factory.eINSTANCE);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private static boolean isInited = false;
-
- /**
- * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
- *
- * <p>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.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @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;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getRoot() {
- return rootEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRoot_ListA() {
- return (EReference) rootEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRoot_ListB() {
- return (EReference) rootEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRoot_ListC() {
- return (EReference) rootEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getRoot_ListD() {
- return (EReference) rootEClass.getEStructuralFeatures().get(3);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getBaseObject() {
- return baseObjectEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBaseObject_AttributeOptional() {
- return (EAttribute) baseObjectEClass.getEStructuralFeatures().get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBaseObject_AttributeRequired() {
- return (EAttribute) baseObjectEClass.getEStructuralFeatures().get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EAttribute getBaseObject_AttributeList() {
- return (EAttribute) baseObjectEClass.getEStructuralFeatures().get(2);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getReferenceObject() {
- return referenceObjectEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getReferenceObject_ReferenceOptional() {
- return (EReference) referenceObjectEClass.getEStructuralFeatures().get(
- 0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getReferenceObject_ReferenceList() {
- return (EReference) referenceObjectEClass.getEStructuralFeatures().get(
- 1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EClass getContainmentObject() {
- return containmentObjectEClass;
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getContainmentObject_ContainmentOptional() {
- return (EReference) containmentObjectEClass.getEStructuralFeatures()
- .get(0);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public EReference getContainmentObject_ContainmentList() {
- return (EReference) containmentObjectEClass.getEStructuralFeatures()
- .get(1);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Model6Factory getModel6Factory() {
- return (Model6Factory) getEFactoryInstance();
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isCreated = false;
-
- /**
- * Creates the meta-model objects for the package. This method is
- * guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void createPackageContents() {
- if (isCreated)
- return;
- isCreated = true;
-
- // Create classes and their features
- 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);
- }
-
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- private boolean isInitialized = false;
-
- /**
- * Complete the initialization of the package and its meta-model. This
- * method is guarded to have no affect on any invocation but its first.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void initializePackageContents() {
- if (isInitialized)
- return;
- isInitialized = true;
-
- // Initialize package
- setName(eNAME);
- setNsPrefix(eNS_PREFIX);
- setNsURI(eNS_URI);
-
- // Create type parameters
-
- // Set bounds for type parameters
-
- // Add supertypes to classes
- referenceObjectEClass.getESuperTypes().add(this.getBaseObject());
- containmentObjectEClass.getESuperTypes().add(this.getBaseObject());
-
- // 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);
-
- // Create resource
- createResource(eNS_URI);
- }
-
-} //Model6PackageImpl
+public class Model6PackageImpl extends EPackageImpl implements Model6Package
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass rootEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass baseObjectEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass referenceObjectEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass containmentObjectEClass = null;
+
+ /**
+ * Creates an instance of the model <b>Package</b>, registered with {@link org.eclipse.emf.ecore.EPackage.Registry
+ * EPackage.Registry} by the package package URI value.
+ * <p>
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also
+ * performs initialization of the package, or returns the registered package, if one already exists. <!--
+ * begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.ecore.EPackage.Registry
+ * @see org.eclipse.emf.cdo.tests.model6.Model6Package#eNS_URI
+ * @see #init()
+ * @generated
+ */
+ private Model6PackageImpl()
+ {
+ super(eNS_URI, Model6Factory.eINSTANCE);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private static boolean isInited = false;
+
+ /**
+ * Creates, registers, and initializes the <b>Package</b> for this model, and for any others upon which it depends.
+ * <p>
+ * 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. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @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;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getRoot()
+ {
+ return rootEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRoot_ListA()
+ {
+ return (EReference)rootEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRoot_ListB()
+ {
+ return (EReference)rootEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRoot_ListC()
+ {
+ return (EReference)rootEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getRoot_ListD()
+ {
+ return (EReference)rootEClass.getEStructuralFeatures().get(3);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getBaseObject()
+ {
+ return baseObjectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBaseObject_AttributeOptional()
+ {
+ return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBaseObject_AttributeRequired()
+ {
+ return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getBaseObject_AttributeList()
+ {
+ return (EAttribute)baseObjectEClass.getEStructuralFeatures().get(2);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getReferenceObject()
+ {
+ return referenceObjectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getReferenceObject_ReferenceOptional()
+ {
+ return (EReference)referenceObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getReferenceObject_ReferenceList()
+ {
+ return (EReference)referenceObjectEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getContainmentObject()
+ {
+ return containmentObjectEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getContainmentObject_ContainmentOptional()
+ {
+ return (EReference)containmentObjectEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EReference getContainmentObject_ContainmentList()
+ {
+ return (EReference)containmentObjectEClass.getEStructuralFeatures().get(1);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model6Factory getModel6Factory()
+ {
+ return (Model6Factory)getEFactoryInstance();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isCreated = false;
+
+ /**
+ * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its
+ * first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void createPackageContents()
+ {
+ if (isCreated)
+ return;
+ isCreated = true;
+
+ // Create classes and their features
+ 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);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private boolean isInitialized = false;
+
+ /**
+ * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any
+ * invocation but its first. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void initializePackageContents()
+ {
+ if (isInitialized)
+ return;
+ isInitialized = true;
+
+ // Initialize package
+ setName(eNAME);
+ setNsPrefix(eNS_PREFIX);
+ setNsURI(eNS_URI);
+
+ // Create type parameters
+
+ // Set bounds for type parameters
+
+ // Add supertypes to classes
+ referenceObjectEClass.getESuperTypes().add(this.getBaseObject());
+ containmentObjectEClass.getESuperTypes().add(this.getBaseObject());
+
+ // 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);
+
+ // Create resource
+ createResource(eNS_URI);
+ }
+
+} // Model6PackageImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ReferenceObjectImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ReferenceObjectImpl.java
index 3e661607ad..6516b82ffb 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ReferenceObjectImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/ReferenceObjectImpl.java
@@ -15,74 +15,74 @@ import org.eclipse.emf.cdo.tests.model6.Model6Package;
import org.eclipse.emf.cdo.tests.model6.ReferenceObject;
import org.eclipse.emf.common.util.EList;
-
import org.eclipse.emf.ecore.EClass;
/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Reference Object</b></em>'.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Reference Object</b></em>'. <!-- end-user-doc
+ * -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl#getReferenceOptional <em>Reference Optional</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl#getReferenceList <em>Reference List</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl#getReferenceOptional <em>Reference Optional
+ * </em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.ReferenceObjectImpl#getReferenceList <em>Reference List</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class ReferenceObjectImpl extends BaseObjectImpl implements
- ReferenceObject {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected ReferenceObjectImpl() {
- super();
- }
+public class ReferenceObjectImpl extends BaseObjectImpl implements ReferenceObject
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected ReferenceObjectImpl()
+ {
+ super();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Model6Package.Literals.REFERENCE_OBJECT;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model6Package.Literals.REFERENCE_OBJECT;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public BaseObject getReferenceOptional() {
- return (BaseObject) eGet(
- Model6Package.Literals.REFERENCE_OBJECT__REFERENCE_OPTIONAL,
- true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public BaseObject getReferenceOptional()
+ {
+ return (BaseObject)eGet(Model6Package.Literals.REFERENCE_OBJECT__REFERENCE_OPTIONAL, true);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public void setReferenceOptional(BaseObject newReferenceOptional) {
- eSet(Model6Package.Literals.REFERENCE_OBJECT__REFERENCE_OPTIONAL,
- newReferenceOptional);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public void setReferenceOptional(BaseObject newReferenceOptional)
+ {
+ eSet(Model6Package.Literals.REFERENCE_OBJECT__REFERENCE_OPTIONAL, newReferenceOptional);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- public EList<BaseObject> getReferenceList() {
- return (EList<BaseObject>) eGet(
- Model6Package.Literals.REFERENCE_OBJECT__REFERENCE_LIST, true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<BaseObject> getReferenceList()
+ {
+ return (EList<BaseObject>)eGet(Model6Package.Literals.REFERENCE_OBJECT__REFERENCE_LIST, true);
+ }
-} //ReferenceObjectImpl
+} // ReferenceObjectImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/RootImpl.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/RootImpl.java
index c6aa499510..426fecb7b9 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/RootImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/impl/RootImpl.java
@@ -14,100 +14,101 @@ import org.eclipse.emf.cdo.tests.model6.BaseObject;
import org.eclipse.emf.cdo.tests.model6.Model6Package;
import org.eclipse.emf.cdo.tests.model6.Root;
-import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+import org.eclipse.emf.common.util.EList;
import org.eclipse.emf.ecore.EClass;
-import org.eclipse.emf.internal.cdo.CDOObjectImpl;
-
/**
- * <!-- begin-user-doc -->
- * An implementation of the model object '<em><b>Root</b></em>'.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Root</b></em>'. <!-- end-user-doc -->
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl#getListA <em>List A</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl#getListB <em>List B</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl#getListC <em>List C</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl#getListD <em>List D</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl#getListA <em>List A</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl#getListB <em>List B</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl#getListC <em>List C</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.model6.impl.RootImpl#getListD <em>List D</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
-public class RootImpl extends CDOObjectImpl implements Root {
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected RootImpl() {
- super();
- }
+public class RootImpl extends CDOObjectImpl implements Root
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected RootImpl()
+ {
+ super();
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected EClass eStaticClass() {
- return Model6Package.Literals.ROOT;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model6Package.Literals.ROOT;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @Override
- protected int eStaticFeatureCount() {
- return 0;
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- public EList<BaseObject> getListA() {
- return (EList<BaseObject>) eGet(Model6Package.Literals.ROOT__LIST_A,
- true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<BaseObject> getListA()
+ {
+ return (EList<BaseObject>)eGet(Model6Package.Literals.ROOT__LIST_A, true);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- public EList<BaseObject> getListB() {
- return (EList<BaseObject>) eGet(Model6Package.Literals.ROOT__LIST_B,
- true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<BaseObject> getListB()
+ {
+ return (EList<BaseObject>)eGet(Model6Package.Literals.ROOT__LIST_B, true);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- public EList<BaseObject> getListC() {
- return (EList<BaseObject>) eGet(Model6Package.Literals.ROOT__LIST_C,
- true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<BaseObject> getListC()
+ {
+ return (EList<BaseObject>)eGet(Model6Package.Literals.ROOT__LIST_C, true);
+ }
- /**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- @SuppressWarnings("unchecked")
- public EList<BaseObject> getListD() {
- return (EList<BaseObject>) eGet(Model6Package.Literals.ROOT__LIST_D,
- true);
- }
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<BaseObject> getListD()
+ {
+ return (EList<BaseObject>)eGet(Model6Package.Literals.ROOT__LIST_D, true);
+ }
-} //RootImpl
+} // RootImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6AdapterFactory.java
index 4bcb3a1c8b..3b5dd5c767 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6AdapterFactory.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6AdapterFactory.java
@@ -10,175 +10,187 @@
*/
package org.eclipse.emf.cdo.tests.model6.util;
-import org.eclipse.emf.cdo.tests.model6.*;
+import org.eclipse.emf.cdo.tests.model6.BaseObject;
+import org.eclipse.emf.cdo.tests.model6.ContainmentObject;
+import org.eclipse.emf.cdo.tests.model6.Model6Package;
+import org.eclipse.emf.cdo.tests.model6.ReferenceObject;
+import org.eclipse.emf.cdo.tests.model6.Root;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
-
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
import org.eclipse.emf.ecore.EObject;
/**
- * <!-- begin-user-doc -->
- * The <b>Adapter Factory</b> for the model.
- * It provides an adapter <code>createXXX</code> method for each class of the model.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> The <b>Adapter Factory</b> for the model. It provides an adapter <code>createXXX</code>
+ * method for each class of the model. <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.cdo.tests.model6.Model6Package
* @generated
*/
-public class Model6AdapterFactory extends AdapterFactoryImpl {
- /**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static Model6Package modelPackage;
-
- /**
- * Creates an instance of the adapter factory.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Model6AdapterFactory() {
- if (modelPackage == null) {
- modelPackage = Model6Package.eINSTANCE;
- }
- }
-
- /**
- * Returns whether this factory is applicable for the type of the object.
- * <!-- begin-user-doc -->
- * This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
- * <!-- end-user-doc -->
- * @return whether this factory is applicable for the type of the object.
- * @generated
- */
- @Override
- public boolean isFactoryForType(Object object) {
- if (object == modelPackage) {
- return true;
- }
- if (object instanceof EObject) {
- return ((EObject) object).eClass().getEPackage() == modelPackage;
- }
- return false;
- }
-
- /**
- * The switch that delegates to the <code>createXXX</code> methods.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected Model6Switch<Adapter> modelSwitch = new Model6Switch<Adapter>() {
- @Override
- public Adapter caseRoot(Root object) {
- return createRootAdapter();
- }
-
- @Override
- public Adapter caseBaseObject(BaseObject object) {
- return createBaseObjectAdapter();
- }
-
- @Override
- public Adapter caseReferenceObject(ReferenceObject object) {
- return createReferenceObjectAdapter();
- }
-
- @Override
- public Adapter caseContainmentObject(ContainmentObject object) {
- return createContainmentObjectAdapter();
- }
-
- @Override
- public Adapter defaultCase(EObject object) {
- return createEObjectAdapter();
- }
- };
-
- /**
- * Creates an adapter for the <code>target</code>.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param target the object to adapt.
- * @return the adapter for the <code>target</code>.
- * @generated
- */
- @Override
- public Adapter createAdapter(Notifier target) {
- return modelSwitch.doSwitch((EObject) target);
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.Root <em>Root</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model6.Root
- * @generated
- */
- public Adapter createRootAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.BaseObject <em>Base Object</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model6.BaseObject
- * @generated
- */
- public Adapter createBaseObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject <em>Reference Object</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject
- * @generated
- */
- public Adapter createReferenceObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject <em>Containment Object</em>}'.
- * <!-- begin-user-doc -->
- * This default implementation returns null so that we can easily ignore cases;
- * it's useful to ignore a case when inheritance will catch all the cases anyway.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject
- * @generated
- */
- public Adapter createContainmentObjectAdapter() {
- return null;
- }
-
- /**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
- * @return the new adapter.
- * @generated
- */
- public Adapter createEObjectAdapter() {
- return null;
- }
-
-} //Model6AdapterFactory
+public class Model6AdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static Model6Package modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model6AdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = Model6Package.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc --> This implementation
+ * returns <code>true</code> if the object is either the model's package or is an instance object of the model. <!--
+ * end-user-doc -->
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object)
+ {
+ if (object == modelPackage)
+ {
+ return true;
+ }
+ if (object instanceof EObject)
+ {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected Model6Switch<Adapter> modelSwitch = new Model6Switch<Adapter>()
+ {
+ @Override
+ public Adapter caseRoot(Root object)
+ {
+ return createRootAdapter();
+ }
+
+ @Override
+ public Adapter caseBaseObject(BaseObject object)
+ {
+ return createBaseObjectAdapter();
+ }
+
+ @Override
+ public Adapter caseReferenceObject(ReferenceObject object)
+ {
+ return createReferenceObjectAdapter();
+ }
+
+ @Override
+ public Adapter caseContainmentObject(ContainmentObject object)
+ {
+ return createContainmentObjectAdapter();
+ }
+
+ @Override
+ public Adapter defaultCase(EObject object)
+ {
+ return createEObjectAdapter();
+ }
+ };
+
+ /**
+ * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @param target
+ * the object to adapt.
+ * @return the adapter for the <code>target</code>.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target)
+ {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.Root <em>Root</em>}'. <!--
+ * begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful to
+ * ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model6.Root
+ * @generated
+ */
+ public Adapter createRootAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.BaseObject
+ * <em>Base Object</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model6.BaseObject
+ * @generated
+ */
+ public Adapter createBaseObjectAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.ReferenceObject
+ * <em>Reference Object</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can easily
+ * ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!-- end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model6.ReferenceObject
+ * @generated
+ */
+ public Adapter createReferenceObjectAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model6.ContainmentObject
+ * <em>Containment Object</em>}'. <!-- begin-user-doc --> This default implementation returns null so that we can
+ * easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.model6.ContainmentObject
+ * @generated
+ */
+ public Adapter createContainmentObjectAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null. <!--
+ * end-user-doc -->
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter()
+ {
+ return null;
+ }
+
+} // Model6AdapterFactory
diff --git a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6Switch.java b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6Switch.java
index af8c3df90d..e42b8e3393 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6Switch.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model6/src/org/eclipse/emf/cdo/tests/model6/util/Model6Switch.java
@@ -10,194 +10,206 @@
*/
package org.eclipse.emf.cdo.tests.model6.util;
-import java.util.List;
-
-import org.eclipse.emf.cdo.tests.model6.*;
+import org.eclipse.emf.cdo.tests.model6.BaseObject;
+import org.eclipse.emf.cdo.tests.model6.ContainmentObject;
+import org.eclipse.emf.cdo.tests.model6.Model6Package;
+import org.eclipse.emf.cdo.tests.model6.ReferenceObject;
+import org.eclipse.emf.cdo.tests.model6.Root;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
+import java.util.List;
+
/**
- * <!-- begin-user-doc -->
- * The <b>Switch</b> for the model's inheritance hierarchy.
- * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
- * to invoke the <code>caseXXX</code> method for each class of the model,
- * starting with the actual class of the object
- * and proceeding up the inheritance hierarchy
- * until a non-null result is returned,
- * which is the result of the switch.
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the call
+ * {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for each class of the model,
+ * starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
+ * returned, which is the result of the switch. <!-- end-user-doc -->
+ *
* @see org.eclipse.emf.cdo.tests.model6.Model6Package
* @generated
*/
-public class Model6Switch<T> {
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static Model6Package modelPackage;
+public class Model6Switch<T>
+{
+ /**
+ * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static Model6Package modelPackage;
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public Model6Switch() {
- if (modelPackage == null) {
- modelPackage = Model6Package.eINSTANCE;
- }
- }
+ /**
+ * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public Model6Switch()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = Model6Package.eINSTANCE;
+ }
+ }
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- public T doSwitch(EObject theEObject) {
- return doSwitch(theEObject.eClass(), theEObject);
- }
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject)
+ {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(EClass theEClass, EObject theEObject) {
- if (theEClass.eContainer() == modelPackage) {
- return doSwitch(theEClass.getClassifierID(), theEObject);
- } else {
- List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(
- eSuperTypes.get(0), theEObject);
- }
- }
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject)
+ {
+ if (theEClass.eContainer() == modelPackage)
+ {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else
+ {
+ List<EClass> eSuperTypes = theEClass.getESuperTypes();
+ return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(eSuperTypes.get(0), theEObject);
+ }
+ }
- /**
- * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @return the first non-null result returned by a <code>caseXXX</code> call.
- * @generated
- */
- protected T doSwitch(int classifierID, EObject theEObject) {
- switch (classifierID) {
- case Model6Package.ROOT: {
- Root root = (Root) theEObject;
- T result = caseRoot(root);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model6Package.BASE_OBJECT: {
- BaseObject baseObject = (BaseObject) theEObject;
- T result = caseBaseObject(baseObject);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model6Package.REFERENCE_OBJECT: {
- ReferenceObject referenceObject = (ReferenceObject) theEObject;
- T result = caseReferenceObject(referenceObject);
- if (result == null)
- result = caseBaseObject(referenceObject);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- case Model6Package.CONTAINMENT_OBJECT: {
- ContainmentObject containmentObject = (ContainmentObject) theEObject;
- T result = caseContainmentObject(containmentObject);
- if (result == null)
- result = caseBaseObject(containmentObject);
- if (result == null)
- result = defaultCase(theEObject);
- return result;
- }
- default:
- return defaultCase(theEObject);
- }
- }
+ /**
+ * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the first non-null result returned by a <code>caseXXX</code> call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject)
+ {
+ switch (classifierID)
+ {
+ case Model6Package.ROOT:
+ {
+ Root root = (Root)theEObject;
+ T result = caseRoot(root);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model6Package.BASE_OBJECT:
+ {
+ BaseObject baseObject = (BaseObject)theEObject;
+ T result = caseBaseObject(baseObject);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model6Package.REFERENCE_OBJECT:
+ {
+ ReferenceObject referenceObject = (ReferenceObject)theEObject;
+ T result = caseReferenceObject(referenceObject);
+ if (result == null)
+ result = caseBaseObject(referenceObject);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case Model6Package.CONTAINMENT_OBJECT:
+ {
+ ContainmentObject containmentObject = (ContainmentObject)theEObject;
+ T result = caseContainmentObject(containmentObject);
+ if (result == null)
+ result = caseBaseObject(containmentObject);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Root</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Root</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseRoot(Root object) {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Root</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Root</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseRoot(Root object)
+ {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Base Object</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Base Object</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseBaseObject(BaseObject object) {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Base Object</em>'. <!-- begin-user-doc -->
+ * This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Base Object</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseBaseObject(BaseObject object)
+ {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Reference Object</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Reference Object</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseReferenceObject(ReferenceObject object) {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Reference Object</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Reference Object</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseReferenceObject(ReferenceObject object)
+ {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Containment Object</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>Containment Object</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseContainmentObject(ContainmentObject object) {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Containment Object</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Containment Object</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseContainmentObject(ContainmentObject object)
+ {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'.
- * <!-- begin-user-doc -->
- * This implementation returns null;
- * returning a non-null result will terminate the switch, but this is the last case anyway.
- * <!-- end-user-doc -->
- * @param object the target of the switch.
- * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject)
- * @generated
- */
- public T defaultCase(EObject object) {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This
+ * implementation returns null; returning a non-null result will terminate the switch, but this is the last case
+ * anyway. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>EObject</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object)
+ {
+ return null;
+ }
-} //Model6Switch
+} // Model6Switch

Back to the top