Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-12-28 17:57:14 +0000
committerEike Stepper2008-12-28 17:57:14 +0000
commitb1e6fb37f9e5b16efb0395794a809473fa551876 (patch)
tree61d3c9659d28d9a6895c06478ab9fa9db3d821fd /plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf
parentc01ae01a034c10e532cdc92f62243b1ded078e6f (diff)
downloadcdo-b1e6fb37f9e5b16efb0395794a809473fa551876.tar.gz
cdo-b1e6fb37f9e5b16efb0395794a809473fa551876.tar.xz
cdo-b1e6fb37f9e5b16efb0395794a809473fa551876.zip
fixed copyrights
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoFactory.java46
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoPackage.java135
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Parameter.java33
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ParameterPassing.java63
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Value.java21
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ValueList.java29
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoFactoryImpl.java33
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoPackageImpl.java78
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ParameterImpl.java25
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueImpl.java21
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueListImpl.java24
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoAdapterFactory.java50
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/util/MangoSwitch.java58
13 files changed, 305 insertions, 311 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoFactory.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoFactory.java
index e78ba32a7a..42880c40e5 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoFactory.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoFactory.java
@@ -1,59 +1,71 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: MangoFactory.java,v 1.4 2008-09-18 12:56:15 estepper Exp $
+ * $Id: MangoFactory.java,v 1.5 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango;
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.mango.MangoPackage
* @generated
*/
public interface MangoFactory extends EFactory
{
/**
- * The singleton instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The singleton instance of the factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @generated
*/
MangoFactory eINSTANCE = org.eclipse.emf.cdo.tests.mango.impl.MangoFactoryImpl.init();
/**
- * Returns a new object of class '<em>Value List</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns a new object of class '<em>Value List</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @return a new object of class '<em>Value List</em>'.
* @generated
*/
ValueList createValueList();
/**
- * Returns a new object of class '<em>Value</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns a new object of class '<em>Value</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @return a new object of class '<em>Value</em>'.
* @generated
*/
Value createValue();
/**
- * Returns a new object of class '<em>Parameter</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns a new object of class '<em>Parameter</em>'.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @return a new object of class '<em>Parameter</em>'.
* @generated
*/
Parameter createParameter();
/**
- * Returns the package supported by this factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns the package supported by this factory.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
* @return the package supported by this factory.
* @generated
*/
MangoPackage getMangoPackage();
-} // MangoFactory
+} //MangoFactory
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoPackage.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoPackage.java
index 83674ea411..a11eb3b460 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoPackage.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/MangoPackage.java
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: MangoPackage.java,v 1.6 2008-09-18 12:56:15 estepper Exp $
+ * $Id: MangoPackage.java,v 1.7 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango;
@@ -21,7 +27,6 @@ import org.eclipse.emf.ecore.EReference;
* <li>and each data type</li>
* </ul>
* <!-- end-user-doc -->
- *
* @see org.eclipse.emf.cdo.tests.mango.MangoFactory
* @model kind="package"
* @generated
@@ -29,29 +34,29 @@ import org.eclipse.emf.ecore.EReference;
public interface MangoPackage extends EPackage
{
/**
- * The package name. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The package name.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
String eNAME = "mango";
/**
- * The package namespace URI. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The package namespace URI.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
String eNS_URI = "http://www.eclipse.org/emf/CDO/tests/mango";
/**
- * The package namespace name. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The package namespace name.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
String eNS_PREFIX = "mango";
/**
- * The singleton instance of the package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The singleton instance of the package.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
MangoPackage eINSTANCE = org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl.init();
@@ -59,7 +64,6 @@ public interface MangoPackage extends EPackage
/**
* The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl <em>Value List</em>}' class.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @see org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl
* @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getValueList()
* @generated
@@ -67,24 +71,24 @@ public interface MangoPackage extends EPackage
int VALUE_LIST = 0;
/**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
* @ordered
*/
int VALUE_LIST__NAME = 0;
/**
- * The feature id for the '<em><b>Values</b></em>' reference list. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The feature id for the '<em><b>Values</b></em>' reference list.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
* @ordered
*/
int VALUE_LIST__VALUES = 1;
/**
- * The number of structural features of the '<em>Value List</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The number of structural features of the '<em>Value List</em>' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
* @ordered
*/
@@ -101,16 +105,16 @@ public interface MangoPackage extends EPackage
int VALUE = 1;
/**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
* @ordered
*/
int VALUE__NAME = 0;
/**
- * The number of structural features of the '<em>Value</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The number of structural features of the '<em>Value</em>' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
* @ordered
*/
@@ -119,7 +123,6 @@ public interface MangoPackage extends EPackage
/**
* The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl <em>Parameter</em>}' class.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @see org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl
* @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameter()
* @generated
@@ -127,33 +130,32 @@ public interface MangoPackage extends EPackage
int PARAMETER = 2;
/**
- * The feature id for the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The feature id for the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETER__NAME = 0;
/**
- * The feature id for the '<em><b>Passing</b></em>' attribute. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The feature id for the '<em><b>Passing</b></em>' attribute.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETER__PASSING = 1;
/**
- * The number of structural features of the '<em>Parameter</em>' class. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The number of structural features of the '<em>Parameter</em>' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
* @ordered
*/
int PARAMETER_FEATURE_COUNT = 2;
/**
- * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing <em>Parameter Passing</em>}'
- * enum. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing <em>Parameter Passing</em>}' enum.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
* @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameterPassing()
* @generated
@@ -171,9 +173,8 @@ public interface MangoPackage extends EPackage
EClass getValueList();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.ValueList#getName <em>Name</em>}
- * '. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.ValueList#getName <em>Name</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see org.eclipse.emf.cdo.tests.mango.ValueList#getName()
* @see #getValueList()
@@ -182,9 +183,8 @@ public interface MangoPackage extends EPackage
EAttribute getValueList_Name();
/**
- * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.mango.ValueList#getValues
- * <em>Values</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns the meta object for the reference list '{@link org.eclipse.emf.cdo.tests.mango.ValueList#getValues <em>Values</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for the reference list '<em>Values</em>'.
* @see org.eclipse.emf.cdo.tests.mango.ValueList#getValues()
* @see #getValueList()
@@ -205,7 +205,6 @@ public interface MangoPackage extends EPackage
/**
* Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.Value#getName <em>Name</em>}'.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @return the meta object for the attribute '<em>Name</em>'.
* @see org.eclipse.emf.cdo.tests.mango.Value#getName()
* @see #getValue()
@@ -224,9 +223,8 @@ public interface MangoPackage extends EPackage
EClass getParameter();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.Parameter#getName <em>Name</em>}
- * '. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.Parameter#getName <em>Name</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Name</em>'.
* @see org.eclipse.emf.cdo.tests.mango.Parameter#getName()
* @see #getParameter()
@@ -235,9 +233,8 @@ public interface MangoPackage extends EPackage
EAttribute getParameter_Name();
/**
- * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.Parameter#getPassing
- * <em>Passing</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns the meta object for the attribute '{@link org.eclipse.emf.cdo.tests.mango.Parameter#getPassing <em>Passing</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for the attribute '<em>Passing</em>'.
* @see org.eclipse.emf.cdo.tests.mango.Parameter#getPassing()
* @see #getParameter()
@@ -246,9 +243,8 @@ public interface MangoPackage extends EPackage
EAttribute getParameter_Passing();
/**
- * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing
- * <em>Parameter Passing</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Returns the meta object for enum '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing <em>Parameter Passing</em>}'.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @return the meta object for enum '<em>Parameter Passing</em>'.
* @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
* @generated
@@ -256,8 +252,8 @@ public interface MangoPackage extends EPackage
EEnum getParameterPassing();
/**
- * Returns the factory that creates the instances of the model. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * 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
*/
@@ -272,15 +268,13 @@ public interface MangoPackage extends EPackage
* <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.mango.impl.ValueListImpl <em>Value List</em>}'
- * class. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl <em>Value List</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl
* @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getValueList()
* @generated
@@ -288,17 +282,17 @@ public interface MangoPackage extends EPackage
EClass VALUE_LIST = eINSTANCE.getValueList();
/**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @generated
*/
EAttribute VALUE_LIST__NAME = eINSTANCE.getValueList_Name();
/**
- * The meta object literal for the '<em><b>Values</b></em>' reference list feature. <!-- begin-user-doc --> <!--
+ * The meta object literal for the '<em><b>Values</b></em>' reference list feature.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @generated
*/
EReference VALUE_LIST__VALUES = eINSTANCE.getValueList_Values();
@@ -306,7 +300,6 @@ public interface MangoPackage extends EPackage
/**
* The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ValueImpl <em>Value</em>}' class.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @see org.eclipse.emf.cdo.tests.mango.impl.ValueImpl
* @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getValue()
* @generated
@@ -314,17 +307,16 @@ public interface MangoPackage extends EPackage
EClass VALUE = eINSTANCE.getValue();
/**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @generated
*/
EAttribute VALUE__NAME = eINSTANCE.getValue_Name();
/**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl <em>Parameter</em>}'
- * class. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl <em>Parameter</em>}' class.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl
* @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameter()
* @generated
@@ -332,25 +324,24 @@ public interface MangoPackage extends EPackage
EClass PARAMETER = eINSTANCE.getParameter();
/**
- * The meta object literal for the '<em><b>Name</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * The meta object literal for the '<em><b>Name</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @generated
*/
EAttribute PARAMETER__NAME = eINSTANCE.getParameter_Name();
/**
- * The meta object literal for the '<em><b>Passing</b></em>' attribute feature. <!-- begin-user-doc --> <!--
+ * The meta object literal for the '<em><b>Passing</b></em>' attribute feature.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @generated
*/
EAttribute PARAMETER__PASSING = eINSTANCE.getParameter_Passing();
/**
- * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing
- * <em>Parameter Passing</em>}' enum. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.mango.ParameterPassing <em>Parameter Passing</em>}' enum.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
* @see org.eclipse.emf.cdo.tests.mango.impl.MangoPackageImpl#getParameterPassing()
* @generated
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Parameter.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Parameter.java
index f3af2a95ac..b2b24f57e9 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Parameter.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Parameter.java
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: Parameter.java,v 1.2 2008-09-18 12:56:15 estepper Exp $
+ * $Id: Parameter.java,v 1.3 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango;
@@ -10,14 +16,15 @@ import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>Parameter</b></em>'. <!-- end-user-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.Parameter#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.Parameter#getPassing <em>Passing</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.Parameter#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.Parameter#getPassing <em>Passing</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getParameter()
* @model
* @generated
@@ -25,12 +32,12 @@ import org.eclipse.emf.ecore.EObject;
public interface Parameter extends EObject
{
/**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getParameter_Name()
@@ -51,14 +58,14 @@ public interface Parameter extends EObject
void setName(String value);
/**
- * Returns the value of the '<em><b>Passing</b></em>' attribute. The literals are from the enumeration
- * {@link org.eclipse.emf.cdo.tests.mango.ParameterPassing}. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Passing</b></em>' attribute.
+ * The literals are from the enumeration {@link org.eclipse.emf.cdo.tests.mango.ParameterPassing}.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Passing</em>' attribute isn't clear, there really should be more of a description
* here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Passing</em>' attribute.
* @see org.eclipse.emf.cdo.tests.mango.ParameterPassing
* @see #setPassing(ParameterPassing)
@@ -71,9 +78,7 @@ public interface Parameter extends EObject
/**
* Sets the value of the '{@link org.eclipse.emf.cdo.tests.mango.Parameter#getPassing <em>Passing</em>}' attribute.
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param value
- * the new value of the '<em>Passing</em>' attribute.
+ * @param value the new value of the '<em>Passing</em>' 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/ParameterPassing.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ParameterPassing.java
index 824eac118e..e3c04b64cf 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
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: ParameterPassing.java,v 1.2 2008-09-18 12:56:15 estepper Exp $
+ * $Id: ParameterPassing.java,v 1.3 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango;
@@ -15,7 +21,6 @@ import java.util.List;
/**
* <!-- begin-user-doc --> A representation of the literals of the enumeration '<em><b>Parameter Passing</b></em>', and
* utility methods for working with them. <!-- end-user-doc -->
- *
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getParameterPassing()
* @model
* @generated
@@ -23,8 +28,8 @@ import java.util.List;
public enum ParameterPassing implements Enumerator
{
/**
- * The '<em><b>By Value</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The '<em><b>By Value</b></em>' literal object.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see #BY_VALUE_VALUE
* @generated
* @ordered
@@ -32,8 +37,8 @@ public enum ParameterPassing implements Enumerator
BY_VALUE(0, "ByValue", "ByValue"),
/**
- * The '<em><b>By Reference</b></em>' literal object. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The '<em><b>By Reference</b></em>' literal object.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @see #BY_REFERENCE_VALUE
* @generated
* @ordered
@@ -41,13 +46,13 @@ public enum ParameterPassing implements Enumerator
BY_REFERENCE(1, "ByReference", "ByReference");
/**
- * The '<em><b>By Value</b></em>' literal value. <!-- begin-user-doc -->
+ * The '<em><b>By Value</b></em>' literal value.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>By Value</b></em>' literal object isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #BY_VALUE
* @model name="ByValue"
* @generated
@@ -56,13 +61,13 @@ public enum ParameterPassing implements Enumerator
public static final int BY_VALUE_VALUE = 0;
/**
- * The '<em><b>By Reference</b></em>' literal value. <!-- begin-user-doc -->
+ * The '<em><b>By Reference</b></em>' literal value.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of '<em><b>By Reference</b></em>' literal object isn't clear, there really should be more of a
* description here...
* </p>
* <!-- end-user-doc -->
- *
* @see #BY_REFERENCE
* @model name="ByReference"
* @generated
@@ -71,24 +76,24 @@ public enum ParameterPassing implements Enumerator
public static final int BY_REFERENCE_VALUE = 1;
/**
- * An array of all the '<em><b>Parameter Passing</b></em>' enumerators. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * An array of all the '<em><b>Parameter Passing</b></em>' enumerators.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
private static final ParameterPassing[] VALUES_ARRAY = new ParameterPassing[] { BY_VALUE, BY_REFERENCE, };
/**
- * A public read-only list of all the '<em><b>Parameter Passing</b></em>' enumerators. <!-- begin-user-doc --> <!--
+ * A public read-only list of all the '<em><b>Parameter Passing</b></em>' enumerators.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @generated
*/
public static final List<ParameterPassing> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));
/**
- * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified literal value. <!-- begin-user-doc -->
+ * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified literal value.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static ParameterPassing get(String literal)
@@ -105,9 +110,9 @@ public enum ParameterPassing implements Enumerator
}
/**
- * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified name. <!-- begin-user-doc --> <!--
+ * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified name.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @generated
*/
public static ParameterPassing getByName(String name)
@@ -124,9 +129,9 @@ public enum ParameterPassing implements Enumerator
}
/**
- * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified integer value. <!-- begin-user-doc -->
+ * Returns the '<em><b>Parameter Passing</b></em>' literal with the specified integer value.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @generated
*/
public static ParameterPassing get(int value)
@@ -143,28 +148,25 @@ public enum ParameterPassing implements Enumerator
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
private final int value;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
private final String name;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
private final String literal;
/**
- * Only this class can construct instances. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Only this class can construct instances.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
private ParameterPassing(int value, String name, String literal)
@@ -176,7 +178,6 @@ public enum ParameterPassing implements Enumerator
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public int getValue()
@@ -186,7 +187,6 @@ public enum ParameterPassing implements Enumerator
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public String getName()
@@ -196,7 +196,6 @@ public enum ParameterPassing implements Enumerator
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public String getLiteral()
@@ -205,9 +204,9 @@ public enum ParameterPassing implements Enumerator
}
/**
- * Returns the literal value of the enumerator, which is its string representation. <!-- begin-user-doc --> <!--
+ * Returns the literal value of the enumerator, which is its string representation.
+ * <!-- begin-user-doc --> <!--
* end-user-doc -->
- *
* @generated
*/
@Override
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Value.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Value.java
index 8dcfef180c..8f35bf5914 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Value.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/Value.java
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: Value.java,v 1.4 2008-09-18 12:56:15 estepper Exp $
+ * $Id: Value.java,v 1.5 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango;
@@ -10,13 +16,14 @@ import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>Value</b></em>'. <!-- end-user-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.Value#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.Value#getName <em>Name</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValue()
* @model
* @generated
@@ -24,12 +31,12 @@ import org.eclipse.emf.ecore.EObject;
public interface Value extends EObject
{
/**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValue_Name()
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ValueList.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ValueList.java
index e11d53afa8..3bbec7112a 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ValueList.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/ValueList.java
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: ValueList.java,v 1.4 2008-09-18 12:56:15 estepper Exp $
+ * $Id: ValueList.java,v 1.5 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango;
@@ -11,14 +17,15 @@ import org.eclipse.emf.ecore.EObject;
/**
* <!-- begin-user-doc --> A representation of the model object '<em><b>Value List</b></em>'. <!-- end-user-doc -->
+ *
* <p>
* The following features are supported:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.ValueList#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.ValueList#getValues <em>Values</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.ValueList#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.ValueList#getValues <em>Values</em>}</li>
* </ul>
* </p>
- *
+ *
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValueList()
* @model
* @generated
@@ -26,12 +33,12 @@ import org.eclipse.emf.ecore.EObject;
public interface ValueList extends EObject
{
/**
- * Returns the value of the '<em><b>Name</b></em>' attribute. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Name</b></em>' attribute.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Name</em>' attribute isn't clear, there really should be more of a description here...
* </p>
* <!-- end-user-doc -->
- *
* @return the value of the '<em>Name</em>' attribute.
* @see #setName(String)
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValueList_Name()
@@ -52,14 +59,14 @@ public interface ValueList extends EObject
void setName(String value);
/**
- * Returns the value of the '<em><b>Values</b></em>' reference list. The list contents are of type
- * {@link org.eclipse.emf.cdo.tests.mango.Value}. <!-- begin-user-doc -->
+ * Returns the value of the '<em><b>Values</b></em>' reference list.
+ * The list contents are of type {@link org.eclipse.emf.cdo.tests.mango.Value}.
+ * <!-- begin-user-doc -->
* <p>
* If the meaning of the '<em>Values</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>Values</em>' reference list.
* @see org.eclipse.emf.cdo.tests.mango.MangoPackage#getValueList_Values()
* @model
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoFactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoFactoryImpl.java
index 6e18457521..c84adc2365 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoFactoryImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoFactoryImpl.java
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: MangoFactoryImpl.java,v 1.6 2008-09-18 12:56:15 estepper Exp $
+ * $Id: MangoFactoryImpl.java,v 1.7 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango.impl;
@@ -22,14 +28,13 @@ import org.eclipse.emf.ecore.plugin.EcorePlugin;
/**
* <!-- begin-user-doc --> An implementation of the model <b>Factory</b>. <!-- end-user-doc -->
- *
* @generated
*/
public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
{
/**
- * Creates the default factory implementation. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Creates the default factory implementation.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public static MangoFactory init()
@@ -51,8 +56,8 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
}
/**
- * Creates an instance of the factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Creates an instance of the factory.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public MangoFactoryImpl()
@@ -62,7 +67,6 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -83,7 +87,6 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -100,7 +103,6 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -117,7 +119,6 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public ValueList createValueList()
@@ -128,7 +129,6 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public Value createValue()
@@ -139,7 +139,6 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public Parameter createParameter()
@@ -150,23 +149,19 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public ParameterPassing createParameterPassingFromString(EDataType eDataType, String initialValue)
{
ParameterPassing result = ParameterPassing.get(initialValue);
if (result == null)
- {
throw new IllegalArgumentException("The value '" + initialValue + "' is not a valid enumerator of '"
+ eDataType.getName() + "'");
- }
return result;
}
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public String convertParameterPassingToString(EDataType eDataType, Object instanceValue)
@@ -176,7 +171,6 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public MangoPackage getMangoPackage()
@@ -186,7 +180,6 @@ public class MangoFactoryImpl extends EFactoryImpl implements MangoFactory
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @deprecated
* @generated
*/
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoPackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoPackageImpl.java
index b8985b857b..a9b950a72d 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoPackageImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/MangoPackageImpl.java
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: MangoPackageImpl.java,v 1.6 2008-09-18 12:56:15 estepper Exp $
+ * $Id: MangoPackageImpl.java,v 1.7 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango.impl;
@@ -22,35 +28,30 @@ import org.eclipse.emf.ecore.impl.EPackageImpl;
/**
* <!-- begin-user-doc --> An implementation of the model <b>Package</b>. <!-- end-user-doc -->
- *
* @generated
*/
public class MangoPackageImpl extends EPackageImpl implements MangoPackage
{
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
private EClass valueListEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
private EClass valueEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
private EClass parameterEClass = null;
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
private EEnum parameterPassingEEnum = null;
@@ -75,24 +76,27 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- 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.
- * Simple dependencies are satisfied by calling this method on all dependent packages before doing anything else. This
- * method drives initialization for interdependent packages directly, in parallel with this package, itself.
- * <p>
- * Of this package and its interdependencies, all packages which have not yet been registered by their URI values are
- * first created and registered. The packages are then initialized in two steps: meta-model objects for all of the
- * packages are created before any are initialized, since one package's meta-model objects may refer to those of
- * another.
- * <p>
- * Invocation of this method will not affect any packages that have already been initialized. <!-- begin-user-doc -->
+ * Creates, registers, and initializes the <b>Package</b> for this
+ * model, and for any others upon which it depends. Simple
+ * dependencies are satisfied by calling this method on all
+ * dependent packages before doing anything else. This method drives
+ * initialization for interdependent packages directly, in parallel
+ * with this package, itself.
+ * <p>Of this package and its interdependencies, all packages which
+ * have not yet been registered by their URI values are first created
+ * and registered. The packages are then initialized in two steps:
+ * meta-model objects for all of the packages are created before any
+ * are initialized, since one package's meta-model objects may refer to
+ * those of another.
+ * <p>Invocation of this method will not affect any packages that have
+ * already been initialized.
+ * <!-- begin-user-doc -->
* <!-- end-user-doc -->
- *
* @see #eNS_URI
* @see #createPackageContents()
* @see #initializePackageContents()
@@ -101,9 +105,7 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
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.getEPackage(eNS_URI) instanceof MangoPackageImpl ? EPackage.Registry.INSTANCE
@@ -126,7 +128,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public EClass getValueList()
@@ -136,7 +137,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValueList_Name()
@@ -146,7 +146,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public EReference getValueList_Values()
@@ -156,7 +155,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public EClass getValue()
@@ -166,7 +164,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getValue_Name()
@@ -176,7 +173,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public EClass getParameter()
@@ -186,7 +182,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getParameter_Name()
@@ -196,7 +191,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public EAttribute getParameter_Passing()
@@ -206,7 +200,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public EEnum getParameterPassing()
@@ -216,7 +209,6 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public MangoFactory getMangoFactory()
@@ -226,23 +218,20 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- 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 -->
- *
+ * 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
@@ -263,23 +252,20 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
/**
* <!-- 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 -->
- *
+ * 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
@@ -297,7 +283,7 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
initEClass(valueListEClass, ValueList.class, "ValueList", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getValueList_Name(), ecorePackage.getEString(), "name", null, 0, 1, ValueList.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEReference(getValueList_Values(), getValue(), null, "values", null, 0, -1, ValueList.class, !IS_TRANSIENT,
+ initEReference(getValueList_Values(), this.getValue(), null, "values", null, 0, -1, ValueList.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_COMPOSITE, IS_RESOLVE_PROXIES, !IS_UNSETTABLE, IS_UNIQUE, !IS_DERIVED,
IS_ORDERED);
@@ -308,7 +294,7 @@ public class MangoPackageImpl extends EPackageImpl implements MangoPackage
initEClass(parameterEClass, Parameter.class, "Parameter", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getParameter_Name(), ecorePackage.getEString(), "name", null, 0, 1, Parameter.class, !IS_TRANSIENT,
!IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEAttribute(getParameter_Passing(), getParameterPassing(), "passing", null, 0, 1, Parameter.class,
+ initEAttribute(getParameter_Passing(), this.getParameterPassing(), "passing", null, 0, 1, Parameter.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
// Initialize enums and add enum literals
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ParameterImpl.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ParameterImpl.java
index dcfe4867ce..cc5dacec07 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ParameterImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ParameterImpl.java
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: ParameterImpl.java,v 1.2 2008-09-18 12:56:15 estepper Exp $
+ * $Id: ParameterImpl.java,v 1.3 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango.impl;
@@ -19,18 +25,17 @@ import org.eclipse.emf.ecore.EClass;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl#getPassing <em>Passing</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ParameterImpl#getPassing <em>Passing</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class ParameterImpl extends CDOObjectImpl implements Parameter
{
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
protected ParameterImpl()
@@ -40,7 +45,6 @@ public class ParameterImpl extends CDOObjectImpl implements Parameter
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -51,7 +55,6 @@ public class ParameterImpl extends CDOObjectImpl implements Parameter
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -62,7 +65,6 @@ public class ParameterImpl extends CDOObjectImpl implements Parameter
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public String getName()
@@ -72,7 +74,6 @@ public class ParameterImpl extends CDOObjectImpl implements Parameter
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setName(String newName)
@@ -82,7 +83,6 @@ public class ParameterImpl extends CDOObjectImpl implements Parameter
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public ParameterPassing getPassing()
@@ -92,7 +92,6 @@ public class ParameterImpl extends CDOObjectImpl implements Parameter
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setPassing(ParameterPassing newPassing)
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueImpl.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueImpl.java
index d24bea25b6..ce86e84d3c 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueImpl.java
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: ValueImpl.java,v 1.3 2008-09-18 12:56:15 estepper Exp $
+ * $Id: ValueImpl.java,v 1.4 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango.impl;
@@ -18,17 +24,16 @@ import org.eclipse.emf.ecore.EClass;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ValueImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ValueImpl#getName <em>Name</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class ValueImpl extends CDOObjectImpl implements Value
{
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
protected ValueImpl()
@@ -38,7 +43,6 @@ public class ValueImpl extends CDOObjectImpl implements Value
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -49,7 +53,6 @@ public class ValueImpl extends CDOObjectImpl implements Value
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -60,7 +63,6 @@ public class ValueImpl extends CDOObjectImpl implements Value
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public String getName()
@@ -70,7 +72,6 @@ public class ValueImpl extends CDOObjectImpl implements Value
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setName(String newName)
diff --git a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueListImpl.java b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueListImpl.java
index 932a183a97..aefcf62a03 100644
--- a/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueListImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.mango/src/org/eclipse/emf/cdo/tests/mango/impl/ValueListImpl.java
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: ValueListImpl.java,v 1.4 2008-09-18 12:56:15 estepper Exp $
+ * $Id: ValueListImpl.java,v 1.5 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango.impl;
@@ -20,18 +26,17 @@ import org.eclipse.emf.ecore.EClass;
* <p>
* The following features are implemented:
* <ul>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl#getName <em>Name</em>}</li>
- * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl#getValues <em>Values</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl#getName <em>Name</em>}</li>
+ * <li>{@link org.eclipse.emf.cdo.tests.mango.impl.ValueListImpl#getValues <em>Values</em>}</li>
* </ul>
* </p>
- *
+ *
* @generated
*/
public class ValueListImpl extends CDOObjectImpl implements ValueList
{
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
protected ValueListImpl()
@@ -41,7 +46,6 @@ public class ValueListImpl extends CDOObjectImpl implements ValueList
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -52,7 +56,6 @@ public class ValueListImpl extends CDOObjectImpl implements ValueList
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@Override
@@ -63,7 +66,6 @@ public class ValueListImpl extends CDOObjectImpl implements ValueList
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public String getName()
@@ -73,7 +75,6 @@ public class ValueListImpl extends CDOObjectImpl implements ValueList
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
public void setName(String newName)
@@ -83,7 +84,6 @@ public class ValueListImpl extends CDOObjectImpl implements ValueList
/**
* <!-- begin-user-doc --> <!-- end-user-doc -->
- *
* @generated
*/
@SuppressWarnings("unchecked")
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 1ff0f6deaa..a557e5d00a 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
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: MangoAdapterFactory.java,v 1.5 2008-09-18 12:56:15 estepper Exp $
+ * $Id: MangoAdapterFactory.java,v 1.6 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango.util;
@@ -19,22 +25,21 @@ 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.mango.MangoPackage
* @generated
*/
public class MangoAdapterFactory extends AdapterFactoryImpl
{
/**
- * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The cached model package.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
protected static MangoPackage modelPackage;
/**
- * Creates an instance of the adapter factory. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Creates an instance of the adapter factory.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public MangoAdapterFactory()
@@ -46,10 +51,10 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * Returns whether this factory is applicable for the type of the object. <!-- begin-user-doc --> This implementation
+ * 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
*/
@@ -68,8 +73,8 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * The switch that delegates to the <code>createXXX</code> methods. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The switch that delegates to the <code>createXXX</code> methods.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
protected MangoSwitch<Adapter> modelSwitch = new MangoSwitch<Adapter>()
@@ -100,10 +105,9 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
};
/**
- * Creates an adapter for the <code>target</code>. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
- * @param target
- * the object to adapt.
+ * 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
*/
@@ -114,10 +118,9 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.ValueList <em>Value List</em>}
- * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.ValueList <em>Value List</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.mango.ValueList
* @generated
@@ -142,10 +145,9 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.Parameter <em>Parameter</em>}
- * '. <!-- begin-user-doc --> This default implementation returns null so that we can easily ignore cases; it's useful
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.mango.Parameter <em>Parameter</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.mango.Parameter
* @generated
@@ -156,9 +158,9 @@ public class MangoAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns 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
*/
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 c2a748c25b..5ee4350816 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
@@ -1,8 +1,14 @@
/**
- * <copyright>
- * </copyright>
+ * Copyright (c) 2004 - 2008 Eike Stepper, Germany.
+ * All rights reserved. This program and the accompanying materials
+ * are made available under the terms of the Eclipse Public License v1.0
+ * which accompanies this distribution, and is available at
+ * http://www.eclipse.org/legal/epl-v10.html
+ *
+ * Contributors:
+ * Eike Stepper - initial API and implementation
*
- * $Id: MangoSwitch.java,v 1.6 2008-09-18 12:56:15 estepper Exp $
+ * $Id: MangoSwitch.java,v 1.7 2008-12-28 17:56:34 estepper Exp $
*/
package org.eclipse.emf.cdo.tests.mango.util;
@@ -21,22 +27,21 @@ import java.util.List;
* {@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.mango.MangoPackage
* @generated
*/
public class MangoSwitch<T>
{
/**
- * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * The cached model package
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
protected static MangoPackage modelPackage;
/**
- * Creates an instance of the switch. <!-- begin-user-doc --> <!-- end-user-doc -->
- *
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
* @generated
*/
public MangoSwitch()
@@ -50,7 +55,6 @@ public class MangoSwitch<T>
/**
* 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
*/
@@ -62,7 +66,6 @@ public class MangoSwitch<T>
/**
* 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
*/
@@ -82,7 +85,6 @@ public class MangoSwitch<T>
/**
* 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
*/
@@ -95,9 +97,7 @@ public class MangoSwitch<T>
ValueList valueList = (ValueList)theEObject;
T result = caseValueList(valueList);
if (result == null)
- {
result = defaultCase(theEObject);
- }
return result;
}
case MangoPackage.VALUE:
@@ -105,9 +105,7 @@ public class MangoSwitch<T>
Value value = (Value)theEObject;
T result = caseValue(value);
if (result == null)
- {
result = defaultCase(theEObject);
- }
return result;
}
case MangoPackage.PARAMETER:
@@ -115,9 +113,7 @@ public class MangoSwitch<T>
Parameter parameter = (Parameter)theEObject;
T result = caseParameter(parameter);
if (result == null)
- {
result = defaultCase(theEObject);
- }
return result;
}
default:
@@ -126,11 +122,10 @@ public class MangoSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Value List</em>'. <!-- begin-user-doc --> This
+ * Returns the result of interpreting the object as an instance of '<em>Value List</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.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Value List</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -141,11 +136,10 @@ public class MangoSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Value</em>'. <!-- begin-user-doc --> This
+ * Returns the result of interpreting the object as an instance of '<em>Value</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.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -156,11 +150,10 @@ public class MangoSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>Parameter</em>'. <!-- begin-user-doc --> This
+ * Returns the result of interpreting the object as an instance of '<em>Parameter</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.
+ * @param object the target of the switch.
* @return the result of interpreting the object as an instance of '<em>Parameter</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -171,12 +164,11 @@ public class MangoSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. <!-- begin-user-doc --> This
+ * 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.
+ * @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

Back to the top