diff options
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java')
-rw-r--r-- | plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java | 54 |
1 files changed, 53 insertions, 1 deletions
diff --git a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java index e77c713041..058afdefdb 100644 --- a/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java +++ b/plugins/org.eclipse.emf.cdo.tests.model2/src/org/eclipse/emf/cdo/tests/model2/util/Model2Switch.java @@ -2,7 +2,7 @@ * <copyright> * </copyright> * - * $Id: Model2Switch.java,v 1.5 2008-09-18 12:56:55 estepper Exp $ + * $Id: Model2Switch.java,v 1.5.2.1 2008-10-18 11:42:09 estepper Exp $ */ package org.eclipse.emf.cdo.tests.model2.util; @@ -10,6 +10,8 @@ import org.eclipse.emf.cdo.tests.model1.Order; import org.eclipse.emf.cdo.tests.model1.PurchaseOrder; import org.eclipse.emf.cdo.tests.model2.Model2Package; import org.eclipse.emf.cdo.tests.model2.SpecialPurchaseOrder; +import org.eclipse.emf.cdo.tests.model2.Task; +import org.eclipse.emf.cdo.tests.model2.TaskContainer; import org.eclipse.emf.ecore.EClass; import org.eclipse.emf.ecore.EObject; @@ -108,6 +110,26 @@ public class Model2Switch<T> } return result; } + case Model2Package.TASK_CONTAINER: + { + TaskContainer taskContainer = (TaskContainer)theEObject; + T result = caseTaskContainer(taskContainer); + if (result == null) + { + result = defaultCase(theEObject); + } + return result; + } + case Model2Package.TASK: + { + Task task = (Task)theEObject; + T result = caseTask(task); + if (result == null) + { + result = defaultCase(theEObject); + } + return result; + } default: return defaultCase(theEObject); } @@ -130,6 +152,36 @@ public class Model2Switch<T> } /** + * Returns the result of interpreting the object as an instance of '<em>Task Container</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>Task Container</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTaskContainer(TaskContainer object) + { + return null; + } + + /** + * Returns the result of interpreting the object as an instance of '<em>Task</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>Task</em>'. + * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) + * @generated + */ + public T caseTask(Task object) + { + return null; + } + + /** * Returns the result of interpreting the object as an instance of '<em>Order</em>'. <!-- begin-user-doc --> This * implementation returns null; returning a non-null result will terminate the switch. <!-- end-user-doc --> * |