diff options
Diffstat (limited to 'tests/org.eclipse.emf.teneo.samples/src/org/example/mindmap/util/MindmapSwitch.java')
-rwxr-xr-x | tests/org.eclipse.emf.teneo.samples/src/org/example/mindmap/util/MindmapSwitch.java | 242 |
1 files changed, 121 insertions, 121 deletions
diff --git a/tests/org.eclipse.emf.teneo.samples/src/org/example/mindmap/util/MindmapSwitch.java b/tests/org.eclipse.emf.teneo.samples/src/org/example/mindmap/util/MindmapSwitch.java index edb0c9c99..feb3e776b 100755 --- a/tests/org.eclipse.emf.teneo.samples/src/org/example/mindmap/util/MindmapSwitch.java +++ b/tests/org.eclipse.emf.teneo.samples/src/org/example/mindmap/util/MindmapSwitch.java @@ -20,31 +20,26 @@ import org.example.mindmap.ThreadItem; import org.example.mindmap.Topic; /** - * <!-- begin-user-doc --> - * The <b>Switch</b> for the model's inheritance hierarchy. - * It supports the call {@link #doSwitch(EObject) doSwitch(object)} - * to invoke the <code>caseXXX</code> method for each class of the model, - * starting with the actual class of the object - * and proceeding up the inheritance hierarchy - * until a non-null result is returned, - * which is the result of the switch. + * <!-- begin-user-doc --> The <b>Switch</b> for the model's inheritance hierarchy. It supports the + * call {@link #doSwitch(EObject) doSwitch(object)} to invoke the <code>caseXXX</code> method for + * each class of the model, starting with the actual class of the object and proceeding up the + * inheritance hierarchy until a non-null result is returned, which is the result of the switch. * <!-- end-user-doc --> + * * @see org.example.mindmap.MindmapPackage * @generated */ public class MindmapSwitch { /** - * The cached model package - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * The cached model package <!-- begin-user-doc --> <!-- end-user-doc --> + * * @generated */ protected static MindmapPackage 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 MindmapSwitch() { @@ -54,9 +49,9 @@ public class MindmapSwitch { } /** - * 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 --> + * 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 */ @@ -65,87 +60,92 @@ public class MindmapSwitch { } /** - * 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 --> + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it + * yields that result. <!-- begin-user-doc --> <!-- end-user-doc --> + * * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ protected Object doSwitch(EClass theEClass, EObject theEObject) { if (theEClass.eContainer() == modelPackage) { return doSwitch(theEClass.getClassifierID(), theEObject); - } - else { + } else { List eSuperTypes = theEClass.getESuperTypes(); - return - eSuperTypes.isEmpty() ? - defaultCase(theEObject) : - doSwitch((EClass)eSuperTypes.get(0), theEObject); + return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch( + (EClass) eSuperTypes.get(0), theEObject); } } /** - * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. - * <!-- begin-user-doc --> - * <!-- end-user-doc --> + * Calls <code>caseXXX</code> for each class of the model until one returns a non null result; it + * yields that result. <!-- begin-user-doc --> <!-- end-user-doc --> + * * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ protected Object doSwitch(int classifierID, EObject theEObject) { switch (classifierID) { - case MindmapPackage.DOCUMENT_ROOT: { - DocumentRoot documentRoot = (DocumentRoot)theEObject; - Object result = caseDocumentRoot(documentRoot); - if (result == null) result = defaultCase(theEObject); - return result; - } - case MindmapPackage.MAP: { - Map map = (Map)theEObject; - Object result = caseMap(map); - if (result == null) result = defaultCase(theEObject); - return result; - } - case MindmapPackage.RELATIONSHIP: { - Relationship relationship = (Relationship)theEObject; - Object result = caseRelationship(relationship); - if (result == null) result = defaultCase(theEObject); - return result; - } - case MindmapPackage.RESOURCE: { - Resource resource = (Resource)theEObject; - Object result = caseResource(resource); - if (result == null) result = defaultCase(theEObject); - return result; - } - case MindmapPackage.THREAD: { - org.example.mindmap.Thread thread = (org.example.mindmap.Thread)theEObject; - Object result = caseThread(thread); - if (result == null) result = defaultCase(theEObject); - return result; - } - case MindmapPackage.THREAD_ITEM: { - ThreadItem threadItem = (ThreadItem)theEObject; - Object result = caseThreadItem(threadItem); - if (result == null) result = defaultCase(theEObject); - return result; - } - case MindmapPackage.TOPIC: { - Topic topic = (Topic)theEObject; - Object result = caseTopic(topic); - if (result == null) result = defaultCase(theEObject); - return result; - } - default: return defaultCase(theEObject); + case MindmapPackage.DOCUMENT_ROOT: { + DocumentRoot documentRoot = (DocumentRoot) theEObject; + Object result = caseDocumentRoot(documentRoot); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case MindmapPackage.MAP: { + Map map = (Map) theEObject; + Object result = caseMap(map); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case MindmapPackage.RELATIONSHIP: { + Relationship relationship = (Relationship) theEObject; + Object result = caseRelationship(relationship); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case MindmapPackage.RESOURCE: { + Resource resource = (Resource) theEObject; + Object result = caseResource(resource); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case MindmapPackage.THREAD: { + org.example.mindmap.Thread thread = (org.example.mindmap.Thread) theEObject; + Object result = caseThread(thread); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case MindmapPackage.THREAD_ITEM: { + ThreadItem threadItem = (ThreadItem) theEObject; + Object result = caseThreadItem(threadItem); + if (result == null) + result = defaultCase(theEObject); + return result; + } + case MindmapPackage.TOPIC: { + Topic topic = (Topic) theEObject; + Object result = caseTopic(topic); + if (result == null) + result = defaultCase(theEObject); + return result; + } + default: + return defaultCase(theEObject); } } /** - * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'. - * <!-- begin-user-doc --> - * This implementation returns null; - * returning a non-null result will terminate the switch. - * <!-- end-user-doc --> - * @param object the target of the switch. + * Returns the result of interpretting the object as an instance of '<em>Document Root</em>'. <!-- + * begin-user-doc --> This implementation returns null; returning a non-null result will terminate + * the switch. <!-- end-user-doc --> + * + * @param object + * the target of the switch. * @return the result of interpretting the object as an instance of '<em>Document Root</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -155,12 +155,12 @@ public class MindmapSwitch { } /** - * Returns the result of interpretting the object as an instance of '<em>Map</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. + * Returns the result of interpretting the object as an instance of '<em>Map</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 interpretting the object as an instance of '<em>Map</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -170,12 +170,12 @@ public class MindmapSwitch { } /** - * Returns the result of interpretting the object as an instance of '<em>Relationship</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. + * Returns the result of interpretting the object as an instance of '<em>Relationship</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 interpretting the object as an instance of '<em>Relationship</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -185,12 +185,12 @@ public class MindmapSwitch { } /** - * Returns the result of interpretting the object as an instance of '<em>Resource</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. + * Returns the result of interpretting the object as an instance of '<em>Resource</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 interpretting the object as an instance of '<em>Resource</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -200,12 +200,12 @@ public class MindmapSwitch { } /** - * Returns the result of interpretting the object as an instance of '<em>Thread</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. + * Returns the result of interpretting the object as an instance of '<em>Thread</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 interpretting the object as an instance of '<em>Thread</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -215,12 +215,12 @@ public class MindmapSwitch { } /** - * Returns the result of interpretting the object as an instance of '<em>Thread Item</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. + * Returns the result of interpretting the object as an instance of '<em>Thread Item</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 interpretting the object as an instance of '<em>Thread Item</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -230,12 +230,12 @@ public class MindmapSwitch { } /** - * Returns the result of interpretting the object as an instance of '<em>Topic</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. + * Returns the result of interpretting the object as an instance of '<em>Topic</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 interpretting the object as an instance of '<em>Topic</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated @@ -245,12 +245,12 @@ public class MindmapSwitch { } /** - * Returns the result of interpretting 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. + * Returns the result of interpretting the object as an instance of '<em>EObject</em>'. <!-- + * begin-user-doc --> This implementation returns null; returning a non-null result will terminate + * the switch, but this is the last case anyway. <!-- end-user-doc --> + * + * @param object + * the target of the switch. * @return the result of interpretting the object as an instance of '<em>EObject</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) * @generated @@ -259,4 +259,4 @@ public class MindmapSwitch { return null; } -} //MindmapSwitch +} // MindmapSwitch |