Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMartin Fluegge2010-06-06 14:39:45 +0000
committerMartin Fluegge2010-06-06 14:39:45 +0000
commitda36bd46832db377b9f670735ec3265ec15f3410 (patch)
tree459630952de970e91405fb6efc9ef94378356056 /plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util
parenta55d29d37931b44d3c1d8464be9e75b24e9fcc9a (diff)
downloadcdo-da36bd46832db377b9f670735ec3265ec15f3410.tar.gz
cdo-da36bd46832db377b9f670735ec3265ec15f3410.tar.xz
cdo-da36bd46832db377b9f670735ec3265ec15f3410.zip
[308232] [Dawn] Develop collaborative support for GMF on CDO
https://bugs.eclipse.org/bugs/show_bug.cgi?id=308232
Diffstat (limited to 'plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util')
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreAdapterFactory.java239
-rw-r--r--plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreSwitch.java296
2 files changed, 269 insertions, 266 deletions
diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreAdapterFactory.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreAdapterFactory.java
index 4d51178bfe..cd68af8526 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreAdapterFactory.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreAdapterFactory.java
@@ -11,44 +11,47 @@
*/
package org.eclipse.emf.cdo.dawn.examples.acore.util;
-import org.eclipse.emf.cdo.dawn.examples.acore.*;
+import org.eclipse.emf.cdo.dawn.examples.acore.AAttribute;
+import org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass;
+import org.eclipse.emf.cdo.dawn.examples.acore.AClass;
+import org.eclipse.emf.cdo.dawn.examples.acore.AClassChild;
+import org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot;
+import org.eclipse.emf.cdo.dawn.examples.acore.AInterface;
+import org.eclipse.emf.cdo.dawn.examples.acore.AOperation;
+import org.eclipse.emf.cdo.dawn.examples.acore.AParameter;
+import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
-
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
-
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 -->
+ * <!-- 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.dawn.examples.acore.AcorePackage
* @generated
*/
public class AcoreAdapterFactory extends AdapterFactoryImpl
{
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n";
/**
- * The cached model package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * The cached model package. <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected static AcorePackage 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 AcoreAdapterFactory()
@@ -60,10 +63,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
}
/**
- * 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 -->
+ * 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
*/
@@ -82,66 +85,72 @@ public class AcoreAdapterFactory 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 AcoreSwitch<Adapter> modelSwitch =
- new AcoreSwitch<Adapter>()
+ protected AcoreSwitch<Adapter> modelSwitch = new AcoreSwitch<Adapter>()
+ {
+ @Override
+ public Adapter caseAClass(AClass object)
+ {
+ return createAClassAdapter();
+ }
+
+ @Override
+ public Adapter caseAInterface(AInterface object)
+ {
+ return createAInterfaceAdapter();
+ }
+
+ @Override
+ public Adapter caseACoreRoot(ACoreRoot object)
+ {
+ return createACoreRootAdapter();
+ }
+
+ @Override
+ public Adapter caseAAttribute(AAttribute object)
+ {
+ return createAAttributeAdapter();
+ }
+
+ @Override
+ public Adapter caseAOperation(AOperation object)
+ {
+ return createAOperationAdapter();
+ }
+
+ @Override
+ public Adapter caseABasicClass(ABasicClass object)
{
- @Override
- public Adapter caseAClass(AClass object)
- {
- return createAClassAdapter();
- }
- @Override
- public Adapter caseAInterface(AInterface object)
- {
- return createAInterfaceAdapter();
- }
- @Override
- public Adapter caseACoreRoot(ACoreRoot object)
- {
- return createACoreRootAdapter();
- }
- @Override
- public Adapter caseAAttribute(AAttribute object)
- {
- return createAAttributeAdapter();
- }
- @Override
- public Adapter caseAOperation(AOperation object)
- {
- return createAOperationAdapter();
- }
- @Override
- public Adapter caseABasicClass(ABasicClass object)
- {
- return createABasicClassAdapter();
- }
- @Override
- public Adapter caseAParameter(AParameter object)
- {
- return createAParameterAdapter();
- }
- @Override
- public Adapter caseAClassChild(AClassChild object)
- {
- return createAClassChildAdapter();
- }
- @Override
- public Adapter defaultCase(EObject object)
- {
- return createEObjectAdapter();
- }
- };
+ return createABasicClassAdapter();
+ }
+
+ @Override
+ public Adapter caseAParameter(AParameter object)
+ {
+ return createAParameterAdapter();
+ }
+
+ @Override
+ public Adapter caseAClassChild(AClassChild object)
+ {
+ return createAClassChildAdapter();
+ }
+
+ @Override
+ public Adapter defaultCase(EObject object)
+ {
+ return createEObjectAdapter();
+ }
+ };
/**
- * 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
*/
@@ -151,13 +160,11 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
return modelSwitch.doSwitch((EObject)target);
}
-
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass <em>AClass</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 -->
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClass
+ * <em>AClass</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.dawn.examples.acore.AClass
* @generated
@@ -168,11 +175,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface <em>AInterface</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 -->
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AInterface
+ * <em>AInterface</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.dawn.examples.acore.AInterface
* @generated
@@ -183,11 +189,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot <em>ACore Root</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 -->
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot
+ * <em>ACore Root</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.dawn.examples.acore.ACoreRoot
* @generated
@@ -198,11 +203,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute <em>AAttribute</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 -->
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AAttribute
+ * <em>AAttribute</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.dawn.examples.acore.AAttribute
* @generated
@@ -213,11 +217,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation <em>AOperation</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 -->
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AOperation
+ * <em>AOperation</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.dawn.examples.acore.AOperation
* @generated
@@ -228,11 +231,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass <em>ABasic Class</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 -->
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass
+ * <em>ABasic Class</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.dawn.examples.acore.ABasicClass
* @generated
@@ -243,11 +245,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter <em>AParameter</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 -->
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AParameter
+ * <em>AParameter</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.dawn.examples.acore.AParameter
* @generated
@@ -258,11 +259,10 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild <em>AClass Child</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 -->
+ * Creates a new adapter for an object of class '{@link org.eclipse.emf.cdo.dawn.examples.acore.AClassChild
+ * <em>AClass Child</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.dawn.examples.acore.AClassChild
* @generated
@@ -273,10 +273,9 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
}
/**
- * Creates a new adapter for the default case.
- * <!-- begin-user-doc -->
- * This default implementation returns null.
- * <!-- end-user-doc -->
+ * Creates a new adapter for the default case. <!-- begin-user-doc --> This default implementation returns null. <!--
+ * end-user-doc -->
+ *
* @return the new adapter.
* @generated
*/
@@ -285,4 +284,4 @@ public class AcoreAdapterFactory extends AdapterFactoryImpl
return null;
}
-} //AcoreAdapterFactory
+} // AcoreAdapterFactory
diff --git a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreSwitch.java b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreSwitch.java
index e263f403da..bc6129c677 100644
--- a/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreSwitch.java
+++ b/plugins/org.eclipse.emf.cdo.dawn.examples.acore/src/org/eclipse/emf/cdo/dawn/examples/acore/util/AcoreSwitch.java
@@ -11,47 +11,49 @@
*/
package org.eclipse.emf.cdo.dawn.examples.acore.util;
-import java.util.List;
-
-import org.eclipse.emf.cdo.dawn.examples.acore.*;
+import org.eclipse.emf.cdo.dawn.examples.acore.AAttribute;
+import org.eclipse.emf.cdo.dawn.examples.acore.ABasicClass;
+import org.eclipse.emf.cdo.dawn.examples.acore.AClass;
+import org.eclipse.emf.cdo.dawn.examples.acore.AClassChild;
+import org.eclipse.emf.cdo.dawn.examples.acore.ACoreRoot;
+import org.eclipse.emf.cdo.dawn.examples.acore.AInterface;
+import org.eclipse.emf.cdo.dawn.examples.acore.AOperation;
+import org.eclipse.emf.cdo.dawn.examples.acore.AParameter;
+import org.eclipse.emf.cdo.dawn.examples.acore.AcorePackage;
import org.eclipse.emf.ecore.EClass;
import org.eclipse.emf.ecore.EObject;
+import java.util.List;
+
/**
- * <!-- 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 -->
+ * <!-- 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.eclipse.emf.cdo.dawn.examples.acore.AcorePackage
* @generated
*/
public class AcoreSwitch<T>
{
/**
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
public static final String copyright = "Copyright (c) 2004 - 2010 Eike Stepper (Berlin, Germany).\r\nAll rights reserved. This program and the accompanying materials\r\nare made available under the terms of the Eclipse Public License v1.0\r\nwhich accompanies this distribution, and is available at\r\nhttp://www.eclipse.org/legal/epl-v10.html\r\n \r\nContributors:\r\n Martin Fluegge - initial API and implementation\r\n";
/**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
+ * The cached model package <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @generated
*/
protected static AcorePackage 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 AcoreSwitch()
@@ -64,8 +66,8 @@ public class AcoreSwitch<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 -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@@ -76,8 +78,8 @@ public class AcoreSwitch<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 -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@@ -90,17 +92,14 @@ public class AcoreSwitch<T>
else
{
List<EClass> eSuperTypes = theEClass.getESuperTypes();
- return
- eSuperTypes.isEmpty() ?
- defaultCase(theEObject) :
- doSwitch(eSuperTypes.get(0), theEObject);
+ return eSuperTypes.isEmpty() ? defaultCase(theEObject) : doSwitch(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 -->
+ * <!-- begin-user-doc --> <!-- end-user-doc -->
+ *
* @return the first non-null result returned by a <code>caseXXX</code> call.
* @generated
*/
@@ -108,77 +107,89 @@ public class AcoreSwitch<T>
{
switch (classifierID)
{
- case AcorePackage.ACLASS:
- {
- AClass aClass = (AClass)theEObject;
- T result = caseAClass(aClass);
- if (result == null) result = caseABasicClass(aClass);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case AcorePackage.AINTERFACE:
- {
- AInterface aInterface = (AInterface)theEObject;
- T result = caseAInterface(aInterface);
- if (result == null) result = caseABasicClass(aInterface);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case AcorePackage.ACORE_ROOT:
- {
- ACoreRoot aCoreRoot = (ACoreRoot)theEObject;
- T result = caseACoreRoot(aCoreRoot);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case AcorePackage.AATTRIBUTE:
- {
- AAttribute aAttribute = (AAttribute)theEObject;
- T result = caseAAttribute(aAttribute);
- if (result == null) result = caseAClassChild(aAttribute);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case AcorePackage.AOPERATION:
- {
- AOperation aOperation = (AOperation)theEObject;
- T result = caseAOperation(aOperation);
- if (result == null) result = caseAClassChild(aOperation);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case AcorePackage.ABASIC_CLASS:
- {
- ABasicClass aBasicClass = (ABasicClass)theEObject;
- T result = caseABasicClass(aBasicClass);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case AcorePackage.APARAMETER:
- {
- AParameter aParameter = (AParameter)theEObject;
- T result = caseAParameter(aParameter);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case AcorePackage.ACLASS_CHILD:
- {
- AClassChild aClassChild = (AClassChild)theEObject;
- T result = caseAClassChild(aClassChild);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(theEObject);
+ case AcorePackage.ACLASS:
+ {
+ AClass aClass = (AClass)theEObject;
+ T result = caseAClass(aClass);
+ if (result == null)
+ result = caseABasicClass(aClass);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case AcorePackage.AINTERFACE:
+ {
+ AInterface aInterface = (AInterface)theEObject;
+ T result = caseAInterface(aInterface);
+ if (result == null)
+ result = caseABasicClass(aInterface);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case AcorePackage.ACORE_ROOT:
+ {
+ ACoreRoot aCoreRoot = (ACoreRoot)theEObject;
+ T result = caseACoreRoot(aCoreRoot);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case AcorePackage.AATTRIBUTE:
+ {
+ AAttribute aAttribute = (AAttribute)theEObject;
+ T result = caseAAttribute(aAttribute);
+ if (result == null)
+ result = caseAClassChild(aAttribute);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case AcorePackage.AOPERATION:
+ {
+ AOperation aOperation = (AOperation)theEObject;
+ T result = caseAOperation(aOperation);
+ if (result == null)
+ result = caseAClassChild(aOperation);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case AcorePackage.ABASIC_CLASS:
+ {
+ ABasicClass aBasicClass = (ABasicClass)theEObject;
+ T result = caseABasicClass(aBasicClass);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case AcorePackage.APARAMETER:
+ {
+ AParameter aParameter = (AParameter)theEObject;
+ T result = caseAParameter(aParameter);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case AcorePackage.ACLASS_CHILD:
+ {
+ AClassChild aClassChild = (AClassChild)theEObject;
+ T result = caseAClassChild(aClassChild);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
/**
- * Returns the result of interpreting the object as an instance of '<em>AClass</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 interpreting the object as an instance of '<em>AClass</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>AClass</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -189,12 +200,11 @@ public class AcoreSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>AInterface</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 interpreting the object as an instance of '<em>AInterface</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>AInterface</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -205,12 +215,11 @@ public class AcoreSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>ACore 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 interpreting the object as an instance of '<em>ACore 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 interpreting the object as an instance of '<em>ACore Root</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -221,12 +230,11 @@ public class AcoreSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>AAttribute</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 interpreting the object as an instance of '<em>AAttribute</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>AAttribute</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -237,12 +245,11 @@ public class AcoreSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>AOperation</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 interpreting the object as an instance of '<em>AOperation</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>AOperation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -253,12 +260,11 @@ public class AcoreSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>ABasic Class</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 interpreting the object as an instance of '<em>ABasic Class</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>ABasic Class</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -269,12 +275,11 @@ public class AcoreSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>AParameter</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 interpreting the object as an instance of '<em>AParameter</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>AParameter</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -285,12 +290,11 @@ public class AcoreSwitch<T>
}
/**
- * Returns the result of interpreting the object as an instance of '<em>AClass Child</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 interpreting the object as an instance of '<em>AClass Child</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>AClass Child</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -301,12 +305,12 @@ public class AcoreSwitch<T>
}
/**
- * 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.
+ * 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.
* @return the result of interpreting the object as an instance of '<em>EObject</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
@@ -316,4 +320,4 @@ public class AcoreSwitch<T>
return null;
}
-} //AcoreSwitch
+} // AcoreSwitch

Back to the top