From 049312276c051a904c1726fe9f037d1948027274 Mon Sep 17 00:00:00 2001
From: Eike Stepper
Date: Sun, 6 Jan 2013 18:16:50 +0100
Subject: mango
---
.../META-INF/MANIFEST.MF | 7 +-
.../model/mango.legacy-genmodel | 41 ---
.../model/mango.legacy.genmodel | 29 ++
.../emf/cdo/tests/legacy/mango/MangoFactory.java | 65 -----
.../emf/cdo/tests/legacy/mango/MangoPackage.java | 270 -----------------
.../tests/legacy/mango/impl/MangoFactoryImpl.java | 212 --------------
.../tests/legacy/mango/impl/MangoPackageImpl.java | 325 ---------------------
.../legacy/mango/impl/MangoParameterImpl.java | 238 ---------------
.../tests/legacy/mango/impl/MangoValueImpl.java | 181 ------------
.../legacy/mango/impl/MangoValueListImpl.java | 223 --------------
.../eclipse/emf/cdo/tests/mango/MangoFactory.java | 21 +-
.../eclipse/emf/cdo/tests/mango/MangoPackage.java | 99 +++----
.../emf/cdo/tests/mango/MangoParameter.java | 35 +--
.../eclipse/emf/cdo/tests/mango/MangoValue.java | 13 +-
.../emf/cdo/tests/mango/MangoValueList.java | 27 +-
.../emf/cdo/tests/mango/ParameterPassing.java | 53 ++--
.../emf/cdo/tests/mango/impl/MangoFactoryImpl.java | 24 +-
.../emf/cdo/tests/mango/impl/MangoPackageImpl.java | 38 +--
.../cdo/tests/mango/impl/MangoParameterImpl.java | 13 +-
.../emf/cdo/tests/mango/impl/MangoValueImpl.java | 9 +-
.../cdo/tests/mango/impl/MangoValueListImpl.java | 12 +-
.../emf/cdo/tests/mango/legacy/MangoFactory.java | 67 +++++
.../emf/cdo/tests/mango/legacy/MangoPackage.java | 259 ++++++++++++++++
.../tests/mango/legacy/impl/MangoFactoryImpl.java | 202 +++++++++++++
.../tests/mango/legacy/impl/MangoPackageImpl.java | 307 +++++++++++++++++++
.../mango/legacy/impl/MangoParameterImpl.java | 227 ++++++++++++++
.../tests/mango/legacy/impl/MangoValueImpl.java | 172 +++++++++++
.../mango/legacy/impl/MangoValueListImpl.java | 213 ++++++++++++++
.../mango/legacy/util/MangoAdapterFactory.java | 183 ++++++++++++
.../cdo/tests/mango/legacy/util/MangoSwitch.java | 195 +++++++++++++
.../cdo/tests/mango/util/MangoAdapterFactory.java | 42 ++-
.../emf/cdo/tests/mango/util/MangoSwitch.java | 44 ++-
32 files changed, 2035 insertions(+), 1811 deletions(-)
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/model/mango.legacy-genmodel
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/model/mango.legacy.genmodel
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/MangoFactory.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/MangoPackage.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoFactoryImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoPackageImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoParameterImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoValueImpl.java
delete mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoValueListImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/MangoFactory.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/MangoPackage.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/impl/MangoFactoryImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/impl/MangoPackageImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/impl/MangoParameterImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/impl/MangoValueImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/impl/MangoValueListImpl.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/util/MangoAdapterFactory.java
create mode 100644 plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/util/MangoSwitch.java
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/META-INF/MANIFEST.MF b/plugins/org.eclipse.emf.cdo.tests.mango/META-INF/MANIFEST.MF
index 3fd3eaadd2..9de5f2902c 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/META-INF/MANIFEST.MF
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/META-INF/MANIFEST.MF
@@ -10,9 +10,10 @@ Bundle-ClassPath: .
Require-Bundle: org.eclipse.core.runtime;bundle-version="[3.4.0,4.0.0)",
org.eclipse.emf.ecore;bundle-version="[2.4.0,3.0.0)";visibility:=reexport,
org.eclipse.emf.cdo;bundle-version="[4.0.0,5.0.0)";visibility:=reexport
-Export-Package: org.eclipse.emf.cdo.tests.legacy.mango;version="3.0.200",
- org.eclipse.emf.cdo.tests.legacy.mango.impl;version="3.0.200",
- org.eclipse.emf.cdo.tests.mango;version="3.0.300",
+Export-Package: org.eclipse.emf.cdo.tests.mango;version="3.0.300",
org.eclipse.emf.cdo.tests.mango.impl;version="3.0.300",
+ org.eclipse.emf.cdo.tests.mango.legacy;version="3.0.300",
+ org.eclipse.emf.cdo.tests.mango.legacy.impl;version="3.0.300",
+ org.eclipse.emf.cdo.tests.mango.legacy.util;version="3.0.300",
org.eclipse.emf.cdo.tests.mango.util;version="3.0.300"
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/model/mango.legacy-genmodel b/plugins/org.eclipse.emf.cdo.tests.mango/model/mango.legacy-genmodel
deleted file mode 100644
index 4d334cf9e0..0000000000
--- a/plugins/org.eclipse.emf.cdo.tests.mango/model/mango.legacy-genmodel
+++ /dev/null
@@ -1,41 +0,0 @@
-
-
- * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also - * performs initialization of the package, or returns the registered package, if one already exists. - * - * @see org.eclipse.emf.ecore.EPackage.Registry - * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#eNS_URI - * @see #init() - * @generated - */ - private MangoPackageImpl() - { - super(eNS_URI, MangoFactory.eINSTANCE); - } - - /** - * - * - * @generated - */ - private static boolean isInited = false; - - /** - * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. - *
- * This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed. Clients should not - * invoke it directly. Instead, they should simply access that field to obtain the package. - * - * - * @see #eNS_URI - * @see #createPackageContents() - * @see #initializePackageContents() - * @generated - */ - public static MangoPackage init() - { - if (isInited) - return (MangoPackage)EPackage.Registry.INSTANCE.getEPackage(MangoPackage.eNS_URI); - - // Obtain or create and register package - MangoPackageImpl theMangoPackage = (MangoPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MangoPackageImpl ? EPackage.Registry.INSTANCE - .get(eNS_URI) : new MangoPackageImpl()); - - isInited = true; - - // Create package meta-data objects - theMangoPackage.createPackageContents(); - - // Initialize created meta-data - theMangoPackage.initializePackageContents(); - - // Mark meta-data to indicate it can't be changed - theMangoPackage.freeze(); - - // Update the registry and return the package - EPackage.Registry.INSTANCE.put(MangoPackage.eNS_URI, theMangoPackage); - return theMangoPackage; - } - - /** - * - * - * @generated - */ - public EClass getMangoValueList() - { - return mangoValueListEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMangoValueList_Name() - { - return (EAttribute)mangoValueListEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EReference getMangoValueList_Values() - { - return (EReference)mangoValueListEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EClass getMangoValue() - { - return mangoValueEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMangoValue_Name() - { - return (EAttribute)mangoValueEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EClass getMangoParameter() - { - return mangoParameterEClass; - } - - /** - * - * - * @generated - */ - public EAttribute getMangoParameter_Name() - { - return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(0); - } - - /** - * - * - * @generated - */ - public EAttribute getMangoParameter_Passing() - { - return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(1); - } - - /** - * - * - * @generated - */ - public EEnum getParameterPassing() - { - return parameterPassingEEnum; - } - - /** - * - * - * @generated - */ - public MangoFactory getMangoFactory() - { - return (MangoFactory)getEFactoryInstance(); - } - - /** - * - * - * @generated - */ - private boolean isCreated = false; - - /** - * Creates the meta-model objects for the package. This method is guarded to have no affect on any invocation but its - * first. - * - * @generated - */ - public void createPackageContents() - { - if (isCreated) - return; - isCreated = true; - - // Create classes and their features - mangoValueListEClass = createEClass(MANGO_VALUE_LIST); - createEAttribute(mangoValueListEClass, MANGO_VALUE_LIST__NAME); - createEReference(mangoValueListEClass, MANGO_VALUE_LIST__VALUES); - - mangoValueEClass = createEClass(MANGO_VALUE); - createEAttribute(mangoValueEClass, MANGO_VALUE__NAME); - - mangoParameterEClass = createEClass(MANGO_PARAMETER); - createEAttribute(mangoParameterEClass, MANGO_PARAMETER__NAME); - createEAttribute(mangoParameterEClass, MANGO_PARAMETER__PASSING); - - // Create enums - parameterPassingEEnum = createEEnum(PARAMETER_PASSING); - } - - /** - * - * - * @generated - */ - private boolean isInitialized = false; - - /** - * Complete the initialization of the package and its meta-model. This method is guarded to have no affect on any - * invocation but its first. - * - * @generated - */ - public void initializePackageContents() - { - if (isInitialized) - return; - isInitialized = true; - - // Initialize package - setName(eNAME); - setNsPrefix(eNS_PREFIX); - setNsURI(eNS_URI); - - // Create type parameters - - // Set bounds for type parameters - - // Add supertypes to classes - - // Initialize classes and features; add operations and parameters - initEClass(mangoValueListEClass, MangoValueList.class, "MangoValueList", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMangoValueList_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValueList.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEReference(getMangoValueList_Values(), this.getMangoValue(), null, "values", null, 0, -1, MangoValueList.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - initEClass(mangoValueEClass, MangoValue.class, "MangoValue", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMangoValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValue.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - - initEClass(mangoParameterEClass, MangoParameter.class, "MangoParameter", !IS_ABSTRACT, !IS_INTERFACE, - IS_GENERATED_INSTANCE_CLASS); - initEAttribute(getMangoParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoParameter.class, - !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); - initEAttribute(getMangoParameter_Passing(), this.getParameterPassing(), "passing", null, 0, 1, - MangoParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, - !IS_DERIVED, IS_ORDERED); - - // Initialize enums and add enum literals - initEEnum(parameterPassingEEnum, ParameterPassing.class, "ParameterPassing"); - addEEnumLiteral(parameterPassingEEnum, ParameterPassing.BY_VALUE); - addEEnumLiteral(parameterPassingEEnum, ParameterPassing.BY_REFERENCE); - - // Create resource - createResource(eNS_URI); - } - -} // MangoPackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoParameterImpl.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoParameterImpl.java deleted file mode 100644 index 73f8c38891..0000000000 --- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/legacy/mango/impl/MangoParameterImpl.java +++ /dev/null @@ -1,238 +0,0 @@ -/* - * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. - * All rights reserved. This program and the accompanying materials - * are made available under the terms of the Eclipse Public License v1.0 - * which accompanies this distribution, and is available at - * http://www.eclipse.org/legal/epl-v10.html - * - * Contributors: - * Eike Stepper - initial API and implementation - */ -package org.eclipse.emf.cdo.tests.legacy.mango.impl; - -import org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage; -import org.eclipse.emf.cdo.tests.mango.MangoParameter; -import org.eclipse.emf.cdo.tests.mango.ParameterPassing; - -import org.eclipse.emf.common.notify.Notification; -import org.eclipse.emf.ecore.EClass; -import org.eclipse.emf.ecore.impl.ENotificationImpl; -import org.eclipse.emf.ecore.impl.EObjectImpl; - -/** - * An implementation of the model object 'Parameter'. - *
- * The following features are implemented: - *
- * The following features are implemented: - *
- * The following features are implemented: - *
* The following features are supported: *
* If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here... *
* - * * @return the value of the 'Name' attribute. * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoParameter_Name() + * @see org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage#getMangoParameter_Name() * @model * @generated */ @@ -46,38 +47,34 @@ public interface MangoParameter extends EObject /** * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter#getName Name}' attribute. * - * - * @param value - * the new value of the 'Name' attribute. + * @param value the new value of the 'Name' attribute. * @see #getName() * @generated */ void setName(String value); /** - * Returns the value of the 'Passing' attribute. The literals are from the enumeration - * {@link org.eclipse.emf.cdo.tests.mango.ParameterPassing}. + * Returns the value of the 'Passing' attribute. + * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.mango.ParameterPassing}. + * ** If the meaning of the 'Passing' attribute isn't clear, there really should be more of a description * here... *
* - * * @return the value of the 'Passing' attribute. * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing * @see #setPassing(ParameterPassing) - * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoParameter_Passing() + * @see org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage#getMangoParameter_Passing() * @model * @generated */ ParameterPassing getPassing(); /** - * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter#getPassing Passing}' - * attribute. - * - * @param value - * the new value of the 'Passing' attribute. + * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter#getPassing Passing}' attribute. + * + * @param value the new value of the 'Passing' attribute. * @see org.eclipse.emf.cdo.tests.mango.ParameterPassing * @see #getPassing() * @generated diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoValue.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoValue.java index 3a555ba322..9fe321a610 100644 --- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoValue.java +++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoValue.java @@ -14,29 +14,30 @@ import org.eclipse.emf.ecore.EObject; /** * A representation of the model object 'Value'. + * ** The following features are supported: *
* If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here... *
* - * * @return the value of the 'Name' attribute. * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoValue_Name() + * @see org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage#getMangoValue_Name() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoValueList.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoValueList.java index 07da3c2cef..d50cdfd669 100644 --- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoValueList.java +++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoValueList.java @@ -15,30 +15,31 @@ import org.eclipse.emf.ecore.EObject; /** * A representation of the model object 'Value List'. + * ** The following features are supported: *
* If the meaning of the 'Name' attribute isn't clear, there really should be more of a description here... *
* - * * @return the value of the 'Name' attribute. * @see #setName(String) - * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoValueList_Name() + * @see org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage#getMangoValueList_Name() * @model * @generated */ @@ -47,25 +48,23 @@ public interface MangoValueList extends EObject /** * Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.MangoValueList#getName Name}' attribute. * - * - * @param value - * the new value of the 'Name' attribute. + * @param value the new value of the 'Name' attribute. * @see #getName() * @generated */ void setName(String value); /** - * Returns the value of the 'Values' reference list. The list contents are of type - * {@link org.eclipse.emf.cdo.tests.mango.MangoValue}. + * Returns the value of the 'Values' reference list. + * The list contents are of type {@link org.eclipse.emf.cdo.tests.mango.MangoValue}. + * ** If the meaning of the 'Values' reference list isn't clear, there really should be more of a description * here... *
* - * * @return the value of the 'Values' reference list. - * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getMangoValueList_Values() + * @see org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage#getMangoValueList_Values() * @model * @generated */ diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ParameterPassing.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ParameterPassing.java index c9b604768d..a7ef203bc7 100644 --- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ParameterPassing.java +++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ParameterPassing.java @@ -19,16 +19,15 @@ import java.util.List; /** * A representation of the literals of the enumeration 'Parameter Passing', and * utility methods for working with them. - * - * @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getParameterPassing() + * @see org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage#getParameterPassing() * @model * @generated */ public enum ParameterPassing implements Enumerator { /** - * The 'By Value' literal object. - * + * The 'By Value' literal object. + * * @see #BY_VALUE_VALUE * @generated * @ordered @@ -36,8 +35,8 @@ public enum ParameterPassing implements Enumerator BY_VALUE(0, "ByValue", "ByValue"), /** - * The 'By Reference' literal object. - * + * The 'By Reference' literal object. + * * @see #BY_REFERENCE_VALUE * @generated * @ordered @@ -45,13 +44,13 @@ public enum ParameterPassing implements Enumerator BY_REFERENCE(1, "ByReference", "ByReference"); /** - * The 'By Value' literal value. + * The 'By Value' literal value. + * ** If the meaning of 'By Value' literal object isn't clear, there really should be more of a * description here... *
* - * * @see #BY_VALUE * @model name="ByValue" * @generated @@ -60,13 +59,13 @@ public enum ParameterPassing implements Enumerator public static final int BY_VALUE_VALUE = 0; /** - * The 'By Reference' literal value. + * The 'By Reference' literal value. + * ** If the meaning of 'By Reference' literal object isn't clear, there really should be more of a * description here... *
* - * * @see #BY_REFERENCE * @model name="ByReference" * @generated @@ -75,24 +74,24 @@ public enum ParameterPassing implements Enumerator public static final int BY_REFERENCE_VALUE = 1; /** - * An array of all the 'Parameter Passing' enumerators. - * + * An array of all the 'Parameter Passing' enumerators. + * * @generated */ private static final ParameterPassing[] VALUES_ARRAY = new ParameterPassing[] { BY_VALUE, BY_REFERENCE, }; /** - * A public read-only list of all the 'Parameter Passing' enumerators. - * * @generated */ public static final List- * This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed. Clients should not - * invoke it directly. Instead, they should simply access that field to obtain the package. - * * + *
This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * * @see #eNS_URI * @see #createPackageContents() * @see #initializePackageContents() @@ -123,7 +117,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public EClass getMangoValueList() @@ -133,7 +126,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public EAttribute getMangoValueList_Name() @@ -143,7 +135,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public EReference getMangoValueList_Values() @@ -153,7 +144,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public EClass getMangoValue() @@ -163,7 +153,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public EAttribute getMangoValue_Name() @@ -173,7 +162,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public EClass getMangoParameter() @@ -183,7 +171,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public EAttribute getMangoParameter_Name() @@ -193,7 +180,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public EAttribute getMangoParameter_Passing() @@ -203,7 +189,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public EEnum getParameterPassing() @@ -213,7 +198,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @generated */ public MangoFactory getMangoFactory() @@ -223,15 +207,14 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @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. - * + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * * @generated */ public void createPackageContents() @@ -258,15 +241,14 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage /** * - * * @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. - * + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * * @generated */ public void initializePackageContents() diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoParameterImpl.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoParameterImpl.java index 747a8b1ed5..c9d064a718 100644 --- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoParameterImpl.java +++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoParameterImpl.java @@ -23,18 +23,17 @@ import org.eclipse.emf.ecore.EClass; *
* The following features are implemented: *
* The following features are implemented: *
* The following features are implemented: *
+ * Note: the correct way to create the package is via the static factory method {@link #init init()}, which also + * performs initialization of the package, or returns the registered package, if one already exists. + * + * @see org.eclipse.emf.ecore.EPackage.Registry + * @see org.eclipse.emf.cdo.tests.legacy.mango.MangoPackage#eNS_URI + * @see #init() + * @generated + */ + private MangoPackageImpl() + { + super(eNS_URI, MangoFactory.eINSTANCE); + } + + /** + * + * @generated + */ + private static boolean isInited = false; + + /** + * Creates, registers, and initializes the Package for this model, and for any others upon which it depends. + * + *
This method is used to initialize {@link MangoPackage#eINSTANCE} when that field is accessed. + * Clients should not invoke it directly. Instead, they should simply access that field to obtain the package. + * + * + * @see #eNS_URI + * @see #createPackageContents() + * @see #initializePackageContents() + * @generated + */ + public static MangoPackage init() + { + if (isInited) + return (MangoPackage)EPackage.Registry.INSTANCE.getEPackage(MangoPackage.eNS_URI); + + // Obtain or create and register package + MangoPackageImpl theMangoPackage = (MangoPackageImpl)(EPackage.Registry.INSTANCE.get(eNS_URI) instanceof MangoPackageImpl ? EPackage.Registry.INSTANCE + .get(eNS_URI) : new MangoPackageImpl()); + + isInited = true; + + // Create package meta-data objects + theMangoPackage.createPackageContents(); + + // Initialize created meta-data + theMangoPackage.initializePackageContents(); + + // Mark meta-data to indicate it can't be changed + theMangoPackage.freeze(); + + // Update the registry and return the package + EPackage.Registry.INSTANCE.put(MangoPackage.eNS_URI, theMangoPackage); + return theMangoPackage; + } + + /** + * + * @generated + */ + public EClass getMangoValueList() + { + return mangoValueListEClass; + } + + /** + * + * @generated + */ + public EAttribute getMangoValueList_Name() + { + return (EAttribute)mangoValueListEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EReference getMangoValueList_Values() + { + return (EReference)mangoValueListEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EClass getMangoValue() + { + return mangoValueEClass; + } + + /** + * + * @generated + */ + public EAttribute getMangoValue_Name() + { + return (EAttribute)mangoValueEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EClass getMangoParameter() + { + return mangoParameterEClass; + } + + /** + * + * @generated + */ + public EAttribute getMangoParameter_Name() + { + return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(0); + } + + /** + * + * @generated + */ + public EAttribute getMangoParameter_Passing() + { + return (EAttribute)mangoParameterEClass.getEStructuralFeatures().get(1); + } + + /** + * + * @generated + */ + public EEnum getParameterPassing() + { + return parameterPassingEEnum; + } + + /** + * + * @generated + */ + public MangoFactory getMangoFactory() + { + return (MangoFactory)getEFactoryInstance(); + } + + /** + * + * @generated + */ + private boolean isCreated = false; + + /** + * Creates the meta-model objects for the package. This method is + * guarded to have no affect on any invocation but its first. + * + * @generated + */ + public void createPackageContents() + { + if (isCreated) + return; + isCreated = true; + + // Create classes and their features + mangoValueListEClass = createEClass(MANGO_VALUE_LIST); + createEAttribute(mangoValueListEClass, MANGO_VALUE_LIST__NAME); + createEReference(mangoValueListEClass, MANGO_VALUE_LIST__VALUES); + + mangoValueEClass = createEClass(MANGO_VALUE); + createEAttribute(mangoValueEClass, MANGO_VALUE__NAME); + + mangoParameterEClass = createEClass(MANGO_PARAMETER); + createEAttribute(mangoParameterEClass, MANGO_PARAMETER__NAME); + createEAttribute(mangoParameterEClass, MANGO_PARAMETER__PASSING); + + // Create enums + parameterPassingEEnum = createEEnum(PARAMETER_PASSING); + } + + /** + * + * @generated + */ + private boolean isInitialized = false; + + /** + * Complete the initialization of the package and its meta-model. This + * method is guarded to have no affect on any invocation but its first. + * + * @generated + */ + public void initializePackageContents() + { + if (isInitialized) + return; + isInitialized = true; + + // Initialize package + setName(eNAME); + setNsPrefix(eNS_PREFIX); + setNsURI(eNS_URI); + + // Create type parameters + + // Set bounds for type parameters + + // Add supertypes to classes + + // Initialize classes and features; add operations and parameters + initEClass(mangoValueListEClass, MangoValueList.class, "MangoValueList", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMangoValueList_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValueList.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEReference(getMangoValueList_Values(), this.getMangoValue(), null, "values", null, 0, -1, MangoValueList.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + initEClass(mangoValueEClass, MangoValue.class, "MangoValue", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMangoValue_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoValue.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + + initEClass(mangoParameterEClass, MangoParameter.class, "MangoParameter", !IS_ABSTRACT, !IS_INTERFACE, + IS_GENERATED_INSTANCE_CLASS); + initEAttribute(getMangoParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, MangoParameter.class, + !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED); + initEAttribute(getMangoParameter_Passing(), this.getParameterPassing(), "passing", null, 0, 1, + MangoParameter.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, + !IS_DERIVED, IS_ORDERED); + + // Initialize enums and add enum literals + initEEnum(parameterPassingEEnum, ParameterPassing.class, "ParameterPassing"); + addEEnumLiteral(parameterPassingEEnum, ParameterPassing.BY_VALUE); + addEEnumLiteral(parameterPassingEEnum, ParameterPassing.BY_REFERENCE); + + // Create resource + createResource(eNS_URI); + } + +} // MangoPackageImpl diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/impl/MangoParameterImpl.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/impl/MangoParameterImpl.java new file mode 100644 index 0000000000..176fc78bd4 --- /dev/null +++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/impl/MangoParameterImpl.java @@ -0,0 +1,227 @@ +/* + * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * Eike Stepper - initial API and implementation + */ +package org.eclipse.emf.cdo.tests.mango.legacy.impl; + +import org.eclipse.emf.cdo.tests.mango.MangoParameter; +import org.eclipse.emf.cdo.tests.mango.ParameterPassing; +import org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage; + +import org.eclipse.emf.common.notify.Notification; +import org.eclipse.emf.ecore.EClass; +import org.eclipse.emf.ecore.impl.ENotificationImpl; +import org.eclipse.emf.ecore.impl.EObjectImpl; + +/** + * An implementation of the model object 'Parameter'. + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
+ * The following features are implemented: + *
createXXX
method for each class of the model.
+ *
+ * @see org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage
+ * @generated
+ */
+public class MangoAdapterFactory extends AdapterFactoryImpl
+{
+ /**
+ * The cached model package.
+ *
+ *
+ * @generated
+ */
+ protected static MangoPackage modelPackage;
+
+ /**
+ * Creates an instance of the adapter factory.
+ *
+ *
+ * @generated
+ */
+ public MangoAdapterFactory()
+ {
+ if (modelPackage == null)
+ {
+ modelPackage = MangoPackage.eINSTANCE;
+ }
+ }
+
+ /**
+ * Returns whether this factory is applicable for the type of the object.
+ *
+ * This implementation returns true
if the object is either the model's package or is an instance object of the model.
+ *
+ * @return whether this factory is applicable for the type of the object.
+ * @generated
+ */
+ @Override
+ public boolean isFactoryForType(Object object)
+ {
+ if (object == modelPackage)
+ {
+ return true;
+ }
+ if (object instanceof EObject)
+ {
+ return ((EObject)object).eClass().getEPackage() == modelPackage;
+ }
+ return false;
+ }
+
+ /**
+ * The switch that delegates to the createXXX
methods.
+ *
+ *
+ * @generated
+ */
+ protected MangoSwitchtarget
.
+ *
+ *
+ * @param target the object to adapt.
+ * @return the adapter for the target
.
+ * @generated
+ */
+ @Override
+ public Adapter createAdapter(Notifier target)
+ {
+ return modelSwitch.doSwitch((EObject)target);
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoValueList Value List}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.mango.MangoValueList
+ * @generated
+ */
+ public Adapter createMangoValueListAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoValue Value}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.mango.MangoValue
+ * @generated
+ */
+ public Adapter createMangoValueAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter Parameter}'.
+ *
+ * This default implementation returns null so that we can easily ignore cases;
+ * it's useful to ignore a case when inheritance will catch all the cases anyway.
+ *
+ * @return the new adapter.
+ * @see org.eclipse.emf.cdo.tests.mango.MangoParameter
+ * @generated
+ */
+ public Adapter createMangoParameterAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for the default case.
+ *
+ * This default implementation returns null.
+ *
+ * @return the new adapter.
+ * @generated
+ */
+ public Adapter createEObjectAdapter()
+ {
+ return null;
+ }
+
+} //MangoAdapterFactory
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/util/MangoSwitch.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/util/MangoSwitch.java
new file mode 100644
index 0000000000..7508f4e30d
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/legacy/util/MangoSwitch.java
@@ -0,0 +1,195 @@
+/**
+ * Copyright (c) 2004 - 2012 Eike Stepper (Berlin, Germany) and others.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
+ */
+package org.eclipse.emf.cdo.tests.mango.legacy.util;
+
+import java.util.List;
+
+import org.eclipse.emf.cdo.tests.mango.*;
+
+import org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage;
+
+import org.eclipse.emf.ecore.EClass;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ *
+ * The Switch for the model's inheritance hierarchy.
+ * It supports the call {@link #doSwitch(EObject) doSwitch(object)}
+ * to invoke the caseXXX
method for each class of the model,
+ * starting with the actual class of the object
+ * and proceeding up the inheritance hierarchy
+ * until a non-null result is returned,
+ * which is the result of the switch.
+ *
+ * @see org.eclipse.emf.cdo.tests.mango.legacy.MangoPackage
+ * @generated
+ */
+public class MangoSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ public T doSwitch(EObject theEObject)
+ {
+ return doSwitch(theEObject.eClass(), theEObject);
+ }
+
+ /**
+ * Calls caseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ protected T doSwitch(EClass theEClass, EObject theEObject)
+ {
+ if (theEClass.eContainer() == modelPackage)
+ {
+ return doSwitch(theEClass.getClassifierID(), theEObject);
+ }
+ else
+ {
+ ListcaseXXX
for each class of the model until one returns a non null result; it yields that result.
+ *
+ *
+ * @return the first non-null result returned by a caseXXX
call.
+ * @generated
+ */
+ protected T doSwitch(int classifierID, EObject theEObject)
+ {
+ switch (classifierID)
+ {
+ case MangoPackage.MANGO_VALUE_LIST:
+ {
+ MangoValueList mangoValueList = (MangoValueList)theEObject;
+ T result = caseMangoValueList(mangoValueList);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case MangoPackage.MANGO_VALUE:
+ {
+ MangoValue mangoValue = (MangoValue)theEObject;
+ T result = caseMangoValue(mangoValue);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case MangoPackage.MANGO_PARAMETER:
+ {
+ MangoParameter mangoParameter = (MangoParameter)theEObject;
+ T result = caseMangoParameter(mangoParameter);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Value List'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Value List'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMangoValueList(MangoValueList object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Value'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Value'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMangoValue(MangoValue object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'Parameter'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'Parameter'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseMangoParameter(MangoParameter object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of 'EObject'.
+ *
+ * This implementation returns null;
+ * returning a non-null result will terminate the switch, but this is the last case anyway.
+ *
+ * @param object the target of the switch.
+ * @return the result of interpreting the object as an instance of 'EObject'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject)
+ * @generated
+ */
+ public T defaultCase(EObject object)
+ {
+ return null;
+ }
+
+} //MangoSwitch
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoAdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoAdapterFactory.java
index 7b6a53682e..6127e29f46 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoAdapterFactory.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoAdapterFactory.java
@@ -4,12 +4,13 @@
* 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.mango.util;
+//import org.eclipse.emf.cdo.tests.mango.*;
import org.eclipse.emf.cdo.tests.mango.MangoPackage;
import org.eclipse.emf.cdo.tests.mango.MangoParameter;
import org.eclipse.emf.cdo.tests.mango.MangoValue;
@@ -23,22 +24,21 @@ import org.eclipse.emf.ecore.EObject;
/**
* The Adapter Factory for the model. It provides an adapter createXXX
* method for each class of the model.
- *
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage
* @generated
*/
public class MangoAdapterFactory extends AdapterFactoryImpl
{
/**
- * The cached model package.
- *
+ * The cached model package.
+ *
* @generated
*/
protected static MangoPackage modelPackage;
/**
- * Creates an instance of the adapter factory.
- *
+ * Creates an instance of the adapter factory.
+ *
* @generated
*/
public MangoAdapterFactory()
@@ -50,10 +50,10 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * Returns whether this factory is applicable for the type of the object. This implementation
+ * Returns whether this factory is applicable for the type of the object.
+ * This implementation
* returns true
if the object is either the model's package or is an instance object of the model.
- *
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@@ -72,8 +72,8 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * The switch that delegates to the createXXX
methods.
- *
+ * The switch that delegates to the createXXX
methods.
+ *
* @generated
*/
protected MangoSwitchtarget
.
- *
- * @param target
- * the object to adapt.
+ * Creates an adapter for the target
.
+ *
+ * @param target the object to adapt.
* @return the adapter for the target
.
* @generated
*/
@@ -118,10 +117,9 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoValueList
- * Value List}'. This default implementation returns null so that we can easily
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoValueList Value List}'.
+ * This default implementation returns null so that we can easily
* ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
* @return the new adapter.
* @see org.eclipse.emf.cdo.tests.mango.MangoValueList
* @generated
@@ -135,7 +133,6 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoValue Value}'.
* This default implementation returns null so that we can easily ignore cases; it's useful to
* ignore a case when inheritance will catch all the cases anyway.
- *
* @return the new adapter.
* @see org.eclipse.emf.cdo.tests.mango.MangoValue
* @generated
@@ -146,10 +143,9 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter
- * Parameter}'. This default implementation returns null so that we can easily ignore
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.MangoParameter Parameter}'.
+ * This default implementation returns null so that we can easily ignore
* cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
- *
* @return the new adapter.
* @see org.eclipse.emf.cdo.tests.mango.MangoParameter
* @generated
@@ -160,9 +156,9 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for the default case. This default implementation returns null. This default implementation returns null.
- *
* @return the new adapter.
* @generated
*/
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoSwitch.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoSwitch.java
index ff33a2b529..003b46aafe 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoSwitch.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoSwitch.java
@@ -4,7 +4,7 @@
* 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
*/
@@ -20,27 +20,28 @@ import org.eclipse.emf.ecore.EObject;
import java.util.List;
+//import org.eclipse.emf.cdo.tests.mango.*;
+
/**
* The Switch for the model's inheritance hierarchy. It supports the call
* {@link #doSwitch(EObject) doSwitch(object)} to invoke the caseXXX
method for each class of the model,
* starting with the actual class of the object and proceeding up the inheritance hierarchy until a non-null result is
* returned, which is the result of the switch.
- *
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage
* @generated
*/
public class MangoSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
*
- *
* @return the first non-null result returned by a caseXXX
call.
* @generated
*/
@@ -66,7 +66,6 @@ public class MangoSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
*
- *
* @return the first non-null result returned by a caseXXX
call.
* @generated
*/
@@ -86,7 +85,6 @@ public class MangoSwitchcaseXXX
for each class of the model until one returns a non null result; it yields that result.
*
- *
* @return the first non-null result returned by a caseXXX
call.
* @generated
*/
@@ -130,11 +128,10 @@ public class MangoSwitch