Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon McDuff2008-11-13 14:48:46 +0000
committerSimon McDuff2008-11-13 14:48:46 +0000
commit7a380ed1d3ca7c6fcfa09ea6cda3d0192f58ac4a (patch)
treec32c37f287765c55f7b5925b4f0042f2beb4f7d6 /plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5
parent28a5d638cdb89afca9d212409ac22cf4b7225cba (diff)
downloadcdo-7a380ed1d3ca7c6fcfa09ea6cda3d0192f58ac4a.tar.gz
cdo-7a380ed1d3ca7c6fcfa09ea6cda3d0192f58ac4a.tar.xz
cdo-7a380ed1d3ca7c6fcfa09ea6cda3d0192f58ac4a.zip
[228190] Provide support for multivalued attributes
https://bugs.eclipse.org/bugs/show_bug.cgi?id=228190
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5')
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfBoolean.java44
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInteger.java44
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfLong.java44
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Factory.java26
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Package.java220
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfBooleanImpl.java74
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfIntegerImpl.java74
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfLongImpl.java74
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5FactoryImpl.java48
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5PackageImpl.java122
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5AdapterFactory.java71
-rw-r--r--plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5Switch.java86
12 files changed, 900 insertions, 27 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfBoolean.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfBoolean.java
new file mode 100644
index 0000000000..89dd41ee80
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfBoolean.java
@@ -0,0 +1,44 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: GenListOfBoolean.java,v 1.1 2008-11-13 14:48:46 smcduff Exp $
+ */
+package org.eclipse.emf.cdo.tests.model5;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen List Of Boolean</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model5.GenListOfBoolean#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfBoolean()
+ * @model
+ * @generated
+ */
+public interface GenListOfBoolean extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.Boolean}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Elements</em>' attribute list.
+ * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfBoolean_Elements()
+ * @model unique="false"
+ * @generated
+ */
+ EList<Boolean> getElements();
+
+} // GenListOfBoolean
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInteger.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInteger.java
new file mode 100644
index 0000000000..30cf79ef80
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfInteger.java
@@ -0,0 +1,44 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: GenListOfInteger.java,v 1.1 2008-11-13 14:48:46 smcduff Exp $
+ */
+package org.eclipse.emf.cdo.tests.model5;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen List Of Integer</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model5.GenListOfInteger#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfInteger()
+ * @model
+ * @generated
+ */
+public interface GenListOfInteger extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.Integer}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Elements</em>' attribute list.
+ * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfInteger_Elements()
+ * @model
+ * @generated
+ */
+ EList<Integer> getElements();
+
+} // GenListOfInteger
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfLong.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfLong.java
new file mode 100644
index 0000000000..3e28e99bbf
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/GenListOfLong.java
@@ -0,0 +1,44 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: GenListOfLong.java,v 1.1 2008-11-13 14:48:46 smcduff Exp $
+ */
+package org.eclipse.emf.cdo.tests.model5;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EObject;
+
+/**
+ * <!-- begin-user-doc --> A representation of the model object '<em><b>Gen List Of Long</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are supported:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model5.GenListOfLong#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfLong()
+ * @model
+ * @generated
+ */
+public interface GenListOfLong extends EObject
+{
+ /**
+ * Returns the value of the '<em><b>Elements</b></em>' attribute list. The list contents are of type
+ * {@link java.lang.Long}. <!-- begin-user-doc -->
+ * <p>
+ * If the meaning of the '<em>Elements</em>' attribute list isn't clear, there really should be more of a description
+ * here...
+ * </p>
+ * <!-- end-user-doc -->
+ *
+ * @return the value of the '<em>Elements</em>' attribute list.
+ * @see org.eclipse.emf.cdo.tests.model5.Model5Package#getGenListOfLong_Elements()
+ * @model
+ * @generated
+ */
+ EList<Long> getElements();
+
+} // GenListOfLong
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Factory.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Factory.java
index 9cc654bed3..8a6dfa3aee 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Factory.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Factory.java
@@ -2,7 +2,7 @@
* <copyright>
* </copyright>
*
- * $Id: Model5Factory.java,v 1.1 2008-11-07 02:50:07 smcduff Exp $
+ * $Id: Model5Factory.java,v 1.2 2008-11-13 14:48:46 smcduff Exp $
*/
package org.eclipse.emf.cdo.tests.model5;
@@ -57,6 +57,30 @@ public interface Model5Factory extends EFactory
GenListOfInt createGenListOfInt();
/**
+ * Returns a new object of class '<em>Gen List Of Integer</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen List Of Integer</em>'.
+ * @generated
+ */
+ GenListOfInteger createGenListOfInteger();
+
+ /**
+ * Returns a new object of class '<em>Gen List Of Long</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen List Of Long</em>'.
+ * @generated
+ */
+ GenListOfLong createGenListOfLong();
+
+ /**
+ * Returns a new object of class '<em>Gen List Of Boolean</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return a new object of class '<em>Gen List Of Boolean</em>'.
+ * @generated
+ */
+ GenListOfBoolean createGenListOfBoolean();
+
+ /**
* Returns a new object of class '<em>Gen List Of String</em>'. <!-- begin-user-doc --> <!-- end-user-doc -->
*
* @return a new object of class '<em>Gen List Of String</em>'.
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Package.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Package.java
index a2767d0c6d..5ffac24c8c 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Package.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/Model5Package.java
@@ -2,7 +2,7 @@
* <copyright>
* </copyright>
*
- * $Id: Model5Package.java,v 1.1 2008-11-07 02:50:07 smcduff Exp $
+ * $Id: Model5Package.java,v 1.2 2008-11-13 14:48:46 smcduff Exp $
*/
package org.eclipse.emf.cdo.tests.model5;
@@ -143,24 +143,37 @@ public interface Model5Package extends EPackage
* @see org.eclipse.emf.cdo.tests.model5.impl.Model5PackageImpl#getGenListOfInt()
* @generated
*/
- int GEN_LIST_OF_INT = 3;
+ int GEN_LIST_OF_INT = 4;
/**
- * The feature id for the '<em><b>Elements</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfIntegerImpl
+ * <em>Gen List Of Integer</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
+ * @see org.eclipse.emf.cdo.tests.model5.impl.GenListOfIntegerImpl
+ * @see org.eclipse.emf.cdo.tests.model5.impl.Model5PackageImpl#getGenListOfInteger()
* @generated
- * @ordered
*/
- int GEN_LIST_OF_INT__ELEMENTS = 0;
+ int GEN_LIST_OF_INTEGER = 5;
/**
- * The number of structural features of the '<em>Gen List Of Int</em>' class. <!-- begin-user-doc --> <!--
- * end-user-doc -->
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfLongImpl
+ * <em>Gen List Of Long</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
+ * @see org.eclipse.emf.cdo.tests.model5.impl.GenListOfLongImpl
+ * @see org.eclipse.emf.cdo.tests.model5.impl.Model5PackageImpl#getGenListOfLong()
* @generated
- * @ordered
*/
- int GEN_LIST_OF_INT_FEATURE_COUNT = 1;
+ int GEN_LIST_OF_LONG = 6;
+
+ /**
+ * The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfBooleanImpl
+ * <em>Gen List Of Boolean</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model5.impl.GenListOfBooleanImpl
+ * @see org.eclipse.emf.cdo.tests.model5.impl.Model5PackageImpl#getGenListOfBoolean()
+ * @generated
+ */
+ int GEN_LIST_OF_BOOLEAN = 7;
/**
* The meta object id for the '{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfStringImpl
@@ -170,7 +183,7 @@ public interface Model5Package extends EPackage
* @see org.eclipse.emf.cdo.tests.model5.impl.Model5PackageImpl#getGenListOfString()
* @generated
*/
- int GEN_LIST_OF_STRING = 4;
+ int GEN_LIST_OF_STRING = 3;
/**
* The feature id for the '<em><b>Elements</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
@@ -190,6 +203,74 @@ public interface Model5Package extends EPackage
int GEN_LIST_OF_STRING_FEATURE_COUNT = 1;
/**
+ * The feature id for the '<em><b>Elements</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_LIST_OF_INT__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen List Of Int</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_LIST_OF_INT_FEATURE_COUNT = 1;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_LIST_OF_INTEGER__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen List Of Integer</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_LIST_OF_INTEGER_FEATURE_COUNT = 1;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_LIST_OF_LONG__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen List Of Long</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_LIST_OF_LONG_FEATURE_COUNT = 1;
+
+ /**
+ * The feature id for the '<em><b>Elements</b></em>' attribute list. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_LIST_OF_BOOLEAN__ELEMENTS = 0;
+
+ /**
+ * The number of structural features of the '<em>Gen List Of Boolean</em>' class. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ * @ordered
+ */
+ int GEN_LIST_OF_BOOLEAN_FEATURE_COUNT = 1;
+
+ /**
* Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.TestFeatureMap
* <em>Test Feature Map</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -275,6 +356,71 @@ public interface Model5Package extends EPackage
EAttribute getGenListOfInt_Elements();
/**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfInteger
+ * <em>Gen List Of Integer</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen List Of Integer</em>'.
+ * @see org.eclipse.emf.cdo.tests.model5.GenListOfInteger
+ * @generated
+ */
+ EClass getGenListOfInteger();
+
+ /**
+ * Returns the meta object for the attribute list '
+ * {@link org.eclipse.emf.cdo.tests.model5.GenListOfInteger#getElements <em>Elements</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model5.GenListOfInteger#getElements()
+ * @see #getGenListOfInteger()
+ * @generated
+ */
+ EAttribute getGenListOfInteger_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfLong <em>Gen List Of Long</em>}
+ * '. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen List Of Long</em>'.
+ * @see org.eclipse.emf.cdo.tests.model5.GenListOfLong
+ * @generated
+ */
+ EClass getGenListOfLong();
+
+ /**
+ * Returns the meta object for the attribute list '{@link org.eclipse.emf.cdo.tests.model5.GenListOfLong#getElements
+ * <em>Elements</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model5.GenListOfLong#getElements()
+ * @see #getGenListOfLong()
+ * @generated
+ */
+ EAttribute getGenListOfLong_Elements();
+
+ /**
+ * Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfBoolean
+ * <em>Gen List Of Boolean</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @return the meta object for class '<em>Gen List Of Boolean</em>'.
+ * @see org.eclipse.emf.cdo.tests.model5.GenListOfBoolean
+ * @generated
+ */
+ EClass getGenListOfBoolean();
+
+ /**
+ * Returns the meta object for the attribute list '
+ * {@link org.eclipse.emf.cdo.tests.model5.GenListOfBoolean#getElements <em>Elements</em>}'. <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @return the meta object for the attribute list '<em>Elements</em>'.
+ * @see org.eclipse.emf.cdo.tests.model5.GenListOfBoolean#getElements()
+ * @see #getGenListOfBoolean()
+ * @generated
+ */
+ EAttribute getGenListOfBoolean_Elements();
+
+ /**
* Returns the meta object for class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfString
* <em>Gen List Of String</em>}'. <!-- begin-user-doc --> <!-- end-user-doc -->
*
@@ -391,6 +537,60 @@ public interface Model5Package extends EPackage
EAttribute GEN_LIST_OF_INT__ELEMENTS = eINSTANCE.getGenListOfInt_Elements();
/**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfIntegerImpl
+ * <em>Gen List Of Integer</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model5.impl.GenListOfIntegerImpl
+ * @see org.eclipse.emf.cdo.tests.model5.impl.Model5PackageImpl#getGenListOfInteger()
+ * @generated
+ */
+ EClass GEN_LIST_OF_INTEGER = eINSTANCE.getGenListOfInteger();
+
+ /**
+ * The meta object literal for the '<em><b>Elements</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute GEN_LIST_OF_INTEGER__ELEMENTS = eINSTANCE.getGenListOfInteger_Elements();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfLongImpl
+ * <em>Gen List Of Long</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model5.impl.GenListOfLongImpl
+ * @see org.eclipse.emf.cdo.tests.model5.impl.Model5PackageImpl#getGenListOfLong()
+ * @generated
+ */
+ EClass GEN_LIST_OF_LONG = eINSTANCE.getGenListOfLong();
+
+ /**
+ * The meta object literal for the '<em><b>Elements</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute GEN_LIST_OF_LONG__ELEMENTS = eINSTANCE.getGenListOfLong_Elements();
+
+ /**
+ * The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfBooleanImpl
+ * <em>Gen List Of Boolean</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @see org.eclipse.emf.cdo.tests.model5.impl.GenListOfBooleanImpl
+ * @see org.eclipse.emf.cdo.tests.model5.impl.Model5PackageImpl#getGenListOfBoolean()
+ * @generated
+ */
+ EClass GEN_LIST_OF_BOOLEAN = eINSTANCE.getGenListOfBoolean();
+
+ /**
+ * The meta object literal for the '<em><b>Elements</b></em>' attribute list feature. <!-- begin-user-doc --> <!--
+ * end-user-doc -->
+ *
+ * @generated
+ */
+ EAttribute GEN_LIST_OF_BOOLEAN__ELEMENTS = eINSTANCE.getGenListOfBoolean_Elements();
+
+ /**
* The meta object literal for the '{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfStringImpl
* <em>Gen List Of String</em>}' class. <!-- begin-user-doc --> <!-- end-user-doc -->
*
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfBooleanImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfBooleanImpl.java
new file mode 100644
index 0000000000..f9dd1b94c2
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfBooleanImpl.java
@@ -0,0 +1,74 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: GenListOfBooleanImpl.java,v 1.1 2008-11-13 14:48:45 smcduff Exp $
+ */
+package org.eclipse.emf.cdo.tests.model5.impl;
+
+import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean;
+import org.eclipse.emf.cdo.tests.model5.Model5Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen List Of Boolean</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfBooleanImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenListOfBooleanImpl extends CDOObjectImpl implements GenListOfBoolean
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenListOfBooleanImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model5Package.Literals.GEN_LIST_OF_BOOLEAN;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<Boolean> getElements()
+ {
+ return (EList<Boolean>)eGet(Model5Package.Literals.GEN_LIST_OF_BOOLEAN__ELEMENTS, true);
+ }
+
+} // GenListOfBooleanImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfIntegerImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfIntegerImpl.java
new file mode 100644
index 0000000000..62e0a59b99
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfIntegerImpl.java
@@ -0,0 +1,74 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: GenListOfIntegerImpl.java,v 1.1 2008-11-13 14:48:45 smcduff Exp $
+ */
+package org.eclipse.emf.cdo.tests.model5.impl;
+
+import org.eclipse.emf.cdo.tests.model5.GenListOfInteger;
+import org.eclipse.emf.cdo.tests.model5.Model5Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen List Of Integer</b></em>'. <!--
+ * end-user-doc -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfIntegerImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenListOfIntegerImpl extends CDOObjectImpl implements GenListOfInteger
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenListOfIntegerImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model5Package.Literals.GEN_LIST_OF_INTEGER;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<Integer> getElements()
+ {
+ return (EList<Integer>)eGet(Model5Package.Literals.GEN_LIST_OF_INTEGER__ELEMENTS, true);
+ }
+
+} // GenListOfIntegerImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfLongImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfLongImpl.java
new file mode 100644
index 0000000000..716bcea31d
--- /dev/null
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/GenListOfLongImpl.java
@@ -0,0 +1,74 @@
+/**
+ * <copyright>
+ * </copyright>
+ *
+ * $Id: GenListOfLongImpl.java,v 1.1 2008-11-13 14:48:45 smcduff Exp $
+ */
+package org.eclipse.emf.cdo.tests.model5.impl;
+
+import org.eclipse.emf.cdo.tests.model5.GenListOfLong;
+import org.eclipse.emf.cdo.tests.model5.Model5Package;
+
+import org.eclipse.emf.internal.cdo.CDOObjectImpl;
+
+import org.eclipse.emf.common.util.EList;
+import org.eclipse.emf.ecore.EClass;
+
+/**
+ * <!-- begin-user-doc --> An implementation of the model object '<em><b>Gen List Of Long</b></em>'. <!-- end-user-doc
+ * -->
+ * <p>
+ * The following features are implemented:
+ * <ul>
+ * <li>{@link org.eclipse.emf.cdo.tests.model5.impl.GenListOfLongImpl#getElements <em>Elements</em>}</li>
+ * </ul>
+ * </p>
+ *
+ * @generated
+ */
+public class GenListOfLongImpl extends CDOObjectImpl implements GenListOfLong
+{
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected GenListOfLongImpl()
+ {
+ super();
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected EClass eStaticClass()
+ {
+ return Model5Package.Literals.GEN_LIST_OF_LONG;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @Override
+ protected int eStaticFeatureCount()
+ {
+ return 0;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ @SuppressWarnings("unchecked")
+ public EList<Long> getElements()
+ {
+ return (EList<Long>)eGet(Model5Package.Literals.GEN_LIST_OF_LONG__ELEMENTS, true);
+ }
+
+} // GenListOfLongImpl
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5FactoryImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5FactoryImpl.java
index ca4b5a09c1..ff72d289e1 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5FactoryImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5FactoryImpl.java
@@ -2,12 +2,15 @@
* <copyright>
* </copyright>
*
- * $Id: Model5FactoryImpl.java,v 1.1 2008-11-07 02:50:07 smcduff Exp $
+ * $Id: Model5FactoryImpl.java,v 1.2 2008-11-13 14:48:46 smcduff Exp $
*/
package org.eclipse.emf.cdo.tests.model5.impl;
import org.eclipse.emf.cdo.tests.model5.Doctor;
+import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean;
import org.eclipse.emf.cdo.tests.model5.GenListOfInt;
+import org.eclipse.emf.cdo.tests.model5.GenListOfInteger;
+import org.eclipse.emf.cdo.tests.model5.GenListOfLong;
import org.eclipse.emf.cdo.tests.model5.GenListOfString;
import org.eclipse.emf.cdo.tests.model5.Manager;
import org.eclipse.emf.cdo.tests.model5.Model5Factory;
@@ -76,10 +79,16 @@ public class Model5FactoryImpl extends EFactoryImpl implements Model5Factory
return createManager();
case Model5Package.DOCTOR:
return createDoctor();
- case Model5Package.GEN_LIST_OF_INT:
- return createGenListOfInt();
case Model5Package.GEN_LIST_OF_STRING:
return createGenListOfString();
+ case Model5Package.GEN_LIST_OF_INT:
+ return createGenListOfInt();
+ case Model5Package.GEN_LIST_OF_INTEGER:
+ return createGenListOfInteger();
+ case Model5Package.GEN_LIST_OF_LONG:
+ return createGenListOfLong();
+ case Model5Package.GEN_LIST_OF_BOOLEAN:
+ return createGenListOfBoolean();
default:
throw new IllegalArgumentException("The class '" + eClass.getName() + "' is not a valid classifier");
}
@@ -134,6 +143,39 @@ public class Model5FactoryImpl extends EFactoryImpl implements Model5Factory
*
* @generated
*/
+ public GenListOfInteger createGenListOfInteger()
+ {
+ GenListOfIntegerImpl genListOfInteger = new GenListOfIntegerImpl();
+ return genListOfInteger;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenListOfLong createGenListOfLong()
+ {
+ GenListOfLongImpl genListOfLong = new GenListOfLongImpl();
+ return genListOfLong;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public GenListOfBoolean createGenListOfBoolean()
+ {
+ GenListOfBooleanImpl genListOfBoolean = new GenListOfBooleanImpl();
+ return genListOfBoolean;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public GenListOfString createGenListOfString()
{
GenListOfStringImpl genListOfString = new GenListOfStringImpl();
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5PackageImpl.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5PackageImpl.java
index c37126d480..c9e6e11a07 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5PackageImpl.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/impl/Model5PackageImpl.java
@@ -2,12 +2,15 @@
* <copyright>
* </copyright>
*
- * $Id: Model5PackageImpl.java,v 1.1 2008-11-07 02:50:07 smcduff Exp $
+ * $Id: Model5PackageImpl.java,v 1.2 2008-11-13 14:48:46 smcduff Exp $
*/
package org.eclipse.emf.cdo.tests.model5.impl;
import org.eclipse.emf.cdo.tests.model5.Doctor;
+import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean;
import org.eclipse.emf.cdo.tests.model5.GenListOfInt;
+import org.eclipse.emf.cdo.tests.model5.GenListOfInteger;
+import org.eclipse.emf.cdo.tests.model5.GenListOfLong;
import org.eclipse.emf.cdo.tests.model5.GenListOfString;
import org.eclipse.emf.cdo.tests.model5.Manager;
import org.eclipse.emf.cdo.tests.model5.Model5Factory;
@@ -60,6 +63,27 @@ public class Model5PackageImpl extends EPackageImpl implements Model5Package
*
* @generated
*/
+ private EClass genListOfIntegerEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genListOfLongEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ private EClass genListOfBooleanEClass = null;
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
private EClass genListOfStringEClass = null;
/**
@@ -216,6 +240,66 @@ public class Model5PackageImpl extends EPackageImpl implements Model5Package
*
* @generated
*/
+ public EClass getGenListOfInteger()
+ {
+ return genListOfIntegerEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getGenListOfInteger_Elements()
+ {
+ return (EAttribute)genListOfIntegerEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenListOfLong()
+ {
+ return genListOfLongEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getGenListOfLong_Elements()
+ {
+ return (EAttribute)genListOfLongEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EClass getGenListOfBoolean()
+ {
+ return genListOfBooleanEClass;
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public EAttribute getGenListOfBoolean_Elements()
+ {
+ return (EAttribute)genListOfBooleanEClass.getEStructuralFeatures().get(0);
+ }
+
+ /**
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
+ * @generated
+ */
public EClass getGenListOfString()
{
return genListOfStringEClass;
@@ -272,11 +356,20 @@ public class Model5PackageImpl extends EPackageImpl implements Model5Package
doctorEClass = createEClass(DOCTOR);
+ genListOfStringEClass = createEClass(GEN_LIST_OF_STRING);
+ createEAttribute(genListOfStringEClass, GEN_LIST_OF_STRING__ELEMENTS);
+
genListOfIntEClass = createEClass(GEN_LIST_OF_INT);
createEAttribute(genListOfIntEClass, GEN_LIST_OF_INT__ELEMENTS);
- genListOfStringEClass = createEClass(GEN_LIST_OF_STRING);
- createEAttribute(genListOfStringEClass, GEN_LIST_OF_STRING__ELEMENTS);
+ genListOfIntegerEClass = createEClass(GEN_LIST_OF_INTEGER);
+ createEAttribute(genListOfIntegerEClass, GEN_LIST_OF_INTEGER__ELEMENTS);
+
+ genListOfLongEClass = createEClass(GEN_LIST_OF_LONG);
+ createEAttribute(genListOfLongEClass, GEN_LIST_OF_LONG__ELEMENTS);
+
+ genListOfBooleanEClass = createEClass(GEN_LIST_OF_BOOLEAN);
+ createEAttribute(genListOfBooleanEClass, GEN_LIST_OF_BOOLEAN__ELEMENTS);
}
/**
@@ -328,15 +421,32 @@ public class Model5PackageImpl extends EPackageImpl implements Model5Package
initEClass(doctorEClass, Doctor.class, "Doctor", !IS_ABSTRACT, !IS_INTERFACE, IS_GENERATED_INSTANCE_CLASS);
+ initEClass(genListOfStringEClass, GenListOfString.class, "GenListOfString", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGenListOfString_Elements(), ecorePackage.getEString(), "elements", null, 0, -1,
+ GenListOfString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
initEClass(genListOfIntEClass, GenListOfInt.class, "GenListOfInt", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
initEAttribute(getGenListOfInt_Elements(), ecorePackage.getEInt(), "elements", null, 0, -1, GenListOfInt.class,
!IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
- initEClass(genListOfStringEClass, GenListOfString.class, "GenListOfString", !IS_ABSTRACT, !IS_INTERFACE,
+ initEClass(genListOfIntegerEClass, GenListOfInteger.class, "GenListOfInteger", !IS_ABSTRACT, !IS_INTERFACE,
IS_GENERATED_INSTANCE_CLASS);
- initEAttribute(getGenListOfString_Elements(), ecorePackage.getEString(), "elements", null, 0, -1,
- GenListOfString.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ initEAttribute(getGenListOfInteger_Elements(), ecorePackage.getEIntegerObject(), "elements", null, 0, -1,
+ GenListOfInteger.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE,
+ !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genListOfLongEClass, GenListOfLong.class, "GenListOfLong", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGenListOfLong_Elements(), ecorePackage.getELong(), "elements", null, 0, -1, GenListOfLong.class,
+ !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, IS_UNIQUE, !IS_DERIVED, IS_ORDERED);
+
+ initEClass(genListOfBooleanEClass, GenListOfBoolean.class, "GenListOfBoolean", !IS_ABSTRACT, !IS_INTERFACE,
+ IS_GENERATED_INSTANCE_CLASS);
+ initEAttribute(getGenListOfBoolean_Elements(), ecorePackage.getEBoolean(), "elements", null, 0, -1,
+ GenListOfBoolean.class, !IS_TRANSIENT, !IS_VOLATILE, IS_CHANGEABLE, !IS_UNSETTABLE, !IS_ID, !IS_UNIQUE,
!IS_DERIVED, IS_ORDERED);
// Create resource
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5AdapterFactory.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5AdapterFactory.java
index 51e097107f..26b4e49195 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5AdapterFactory.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5AdapterFactory.java
@@ -2,12 +2,15 @@
* <copyright>
* </copyright>
*
- * $Id: Model5AdapterFactory.java,v 1.1 2008-11-07 02:50:07 smcduff Exp $
+ * $Id: Model5AdapterFactory.java,v 1.2 2008-11-13 14:48:46 smcduff Exp $
*/
package org.eclipse.emf.cdo.tests.model5.util;
import org.eclipse.emf.cdo.tests.model5.Doctor;
+import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean;
import org.eclipse.emf.cdo.tests.model5.GenListOfInt;
+import org.eclipse.emf.cdo.tests.model5.GenListOfInteger;
+import org.eclipse.emf.cdo.tests.model5.GenListOfLong;
import org.eclipse.emf.cdo.tests.model5.GenListOfString;
import org.eclipse.emf.cdo.tests.model5.Manager;
import org.eclipse.emf.cdo.tests.model5.Model5Package;
@@ -95,15 +98,33 @@ public class Model5AdapterFactory extends AdapterFactoryImpl
}
@Override
+ public Adapter caseGenListOfString(GenListOfString object)
+ {
+ return createGenListOfStringAdapter();
+ }
+
+ @Override
public Adapter caseGenListOfInt(GenListOfInt object)
{
return createGenListOfIntAdapter();
}
@Override
- public Adapter caseGenListOfString(GenListOfString object)
+ public Adapter caseGenListOfInteger(GenListOfInteger object)
{
- return createGenListOfStringAdapter();
+ return createGenListOfIntegerAdapter();
+ }
+
+ @Override
+ public Adapter caseGenListOfLong(GenListOfLong object)
+ {
+ return createGenListOfLongAdapter();
+ }
+
+ @Override
+ public Adapter caseGenListOfBoolean(GenListOfBoolean object)
+ {
+ return createGenListOfBooleanAdapter();
}
@Override
@@ -184,6 +205,50 @@ public class Model5AdapterFactory extends AdapterFactoryImpl
}
/**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfInteger
+ * <em>Gen List Of Integer</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.model5.GenListOfInteger
+ * @generated
+ */
+ public Adapter createGenListOfIntegerAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfLong
+ * <em>Gen List Of Long</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.model5.GenListOfLong
+ * @generated
+ */
+ public Adapter createGenListOfLongAdapter()
+ {
+ return null;
+ }
+
+ /**
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfBoolean
+ * <em>Gen List Of Boolean</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.model5.GenListOfBoolean
+ * @generated
+ */
+ public Adapter createGenListOfBooleanAdapter()
+ {
+ return null;
+ }
+
+ /**
* Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.tests.model5.GenListOfString
* <em>Gen List Of String</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. <!--
diff --git a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5Switch.java b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5Switch.java
index dd4a2c9689..2be0ced55f 100644
--- a/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5Switch.java
+++ b/plugins/org.eclipse.emf.cdo.tests.model5/src/org/eclipse/emf/cdo/tests/model5/util/Model5Switch.java
@@ -2,12 +2,15 @@
* <copyright>
* </copyright>
*
- * $Id: Model5Switch.java,v 1.1 2008-11-07 02:50:07 smcduff Exp $
+ * $Id: Model5Switch.java,v 1.2 2008-11-13 14:48:46 smcduff Exp $
*/
package org.eclipse.emf.cdo.tests.model5.util;
import org.eclipse.emf.cdo.tests.model5.Doctor;
+import org.eclipse.emf.cdo.tests.model5.GenListOfBoolean;
import org.eclipse.emf.cdo.tests.model5.GenListOfInt;
+import org.eclipse.emf.cdo.tests.model5.GenListOfInteger;
+import org.eclipse.emf.cdo.tests.model5.GenListOfLong;
import org.eclipse.emf.cdo.tests.model5.GenListOfString;
import org.eclipse.emf.cdo.tests.model5.Manager;
import org.eclipse.emf.cdo.tests.model5.Model5Package;
@@ -122,6 +125,16 @@ public class Model5Switch<T>
}
return result;
}
+ case Model5Package.GEN_LIST_OF_STRING:
+ {
+ GenListOfString genListOfString = (GenListOfString)theEObject;
+ T result = caseGenListOfString(genListOfString);
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
case Model5Package.GEN_LIST_OF_INT:
{
GenListOfInt genListOfInt = (GenListOfInt)theEObject;
@@ -132,10 +145,30 @@ public class Model5Switch<T>
}
return result;
}
- case Model5Package.GEN_LIST_OF_STRING:
+ case Model5Package.GEN_LIST_OF_INTEGER:
{
- GenListOfString genListOfString = (GenListOfString)theEObject;
- T result = caseGenListOfString(genListOfString);
+ GenListOfInteger genListOfInteger = (GenListOfInteger)theEObject;
+ T result = caseGenListOfInteger(genListOfInteger);
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case Model5Package.GEN_LIST_OF_LONG:
+ {
+ GenListOfLong genListOfLong = (GenListOfLong)theEObject;
+ T result = caseGenListOfLong(genListOfLong);
+ if (result == null)
+ {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case Model5Package.GEN_LIST_OF_BOOLEAN:
+ {
+ GenListOfBoolean genListOfBoolean = (GenListOfBoolean)theEObject;
+ T result = caseGenListOfBoolean(genListOfBoolean);
if (result == null)
{
result = defaultCase(theEObject);
@@ -208,6 +241,51 @@ public class Model5Switch<T>
}
/**
+ * Returns the result of interpreting the object as an instance of '<em>Gen List Of Integer</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen List Of Integer</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenListOfInteger(GenListOfInteger object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Gen List Of Long</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen List Of Long</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenListOfLong(GenListOfLong object)
+ {
+ return null;
+ }
+
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Gen List Of Boolean</em>'. <!-- begin-user-doc
+ * --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
+ *
+ * @param object
+ * the target of the switch.
+ * @return the result of interpreting the object as an instance of '<em>Gen List Of Boolean</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseGenListOfBoolean(GenListOfBoolean object)
+ {
+ return null;
+ }
+
+ /**
* Returns the result of interpreting the object as an instance of '<em>Gen List Of String</em>'. <!-- begin-user-doc
* --> This implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc -->
*

Back to the top