Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java')
-rw-r--r--plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java157
1 files changed, 105 insertions, 52 deletions
diff --git a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java
index 8a19a516f82..49afe116be4 100644
--- a/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java
+++ b/plugins/infra/emf/org.eclipse.papyrus.infra.emf.newchild/src-gen/org/eclipse/papyrus/infra/emf/newchild/ncpolicy/util/NcpolicySwitch.java
@@ -25,13 +25,13 @@ import org.eclipse.papyrus.infra.emf.newchild.ncpolicy.ReplacePolicy;
/**
* <!-- 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,
+ * 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.papyrus.infra.emf.newchild.ncpolicy.NcpolicyPackage
* @generated
*/
@@ -40,6 +40,7 @@ public class NcpolicySwitch<T> extends Switch<T> {
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
protected static NcpolicyPackage modelPackage;
@@ -48,6 +49,7 @@ public class NcpolicySwitch<T> extends Switch<T> {
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @generated
*/
public NcpolicySwitch() {
@@ -60,6 +62,7 @@ public class NcpolicySwitch<T> extends Switch<T> {
* Checks whether this is a switch for the given package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
+ *
* @parameter ePackage the package in question.
* @return whether this is a switch for the given package.
* @generated
@@ -73,56 +76,84 @@ public class NcpolicySwitch<T> extends Switch<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
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
- case NcpolicyPackage.NEW_EMF_CHILD_MENU: {
- NewEMFChildMenu newEMFChildMenu = (NewEMFChildMenu)theEObject;
- T result = caseNewEMFChildMenu(newEMFChildMenu);
- if (result == null) result = caseMenu(newEMFChildMenu);
- if (result == null) result = caseMenuContainer(newEMFChildMenu);
- if (result == null) result = caseMenuItem(newEMFChildMenu);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ case NcpolicyPackage.NEW_EMF_CHILD_MENU: {
+ NewEMFChildMenu newEMFChildMenu = (NewEMFChildMenu) theEObject;
+ T result = caseNewEMFChildMenu(newEMFChildMenu);
+ if (result == null) {
+ result = caseMenu(newEMFChildMenu);
}
- case NcpolicyPackage.NEW_CHILD_POLICY_SET: {
- NewChildPolicySet newChildPolicySet = (NewChildPolicySet)theEObject;
- T result = caseNewChildPolicySet(newChildPolicySet);
- if (result == null) result = caseDisplayUnit(newChildPolicySet);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = caseMenuContainer(newEMFChildMenu);
}
- case NcpolicyPackage.NEW_CHILD_POLICY: {
- NewChildPolicy newChildPolicy = (NewChildPolicy)theEObject;
- T result = caseNewChildPolicy(newChildPolicy);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = caseMenuItem(newEMFChildMenu);
}
- case NcpolicyPackage.FILTER_POLICY: {
- FilterPolicy filterPolicy = (FilterPolicy)theEObject;
- T result = caseFilterPolicy(filterPolicy);
- if (result == null) result = caseNewChildPolicy(filterPolicy);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- case NcpolicyPackage.REPLACE_POLICY: {
- ReplacePolicy replacePolicy = (ReplacePolicy)theEObject;
- T result = caseReplacePolicy(replacePolicy);
- if (result == null) result = caseNewChildPolicy(replacePolicy);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ return result;
+ }
+ case NcpolicyPackage.NEW_CHILD_POLICY_SET: {
+ NewChildPolicySet newChildPolicySet = (NewChildPolicySet) theEObject;
+ T result = caseNewChildPolicySet(newChildPolicySet);
+ if (result == null) {
+ result = caseDisplayUnit(newChildPolicySet);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- case NcpolicyPackage.CUSTOM_POLICY: {
- CustomPolicy customPolicy = (CustomPolicy)theEObject;
- T result = caseCustomPolicy(customPolicy);
- if (result == null) result = caseNewChildPolicy(customPolicy);
- if (result == null) result = defaultCase(theEObject);
- return result;
+ return result;
+ }
+ case NcpolicyPackage.NEW_CHILD_POLICY: {
+ NewChildPolicy newChildPolicy = (NewChildPolicy) theEObject;
+ T result = caseNewChildPolicy(newChildPolicy);
+ if (result == null) {
+ result = defaultCase(theEObject);
}
- default: return defaultCase(theEObject);
+ return result;
+ }
+ case NcpolicyPackage.FILTER_POLICY: {
+ FilterPolicy filterPolicy = (FilterPolicy) theEObject;
+ T result = caseFilterPolicy(filterPolicy);
+ if (result == null) {
+ result = caseNewChildPolicy(filterPolicy);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case NcpolicyPackage.REPLACE_POLICY: {
+ ReplacePolicy replacePolicy = (ReplacePolicy) theEObject;
+ T result = caseReplacePolicy(replacePolicy);
+ if (result == null) {
+ result = caseNewChildPolicy(replacePolicy);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ case NcpolicyPackage.CUSTOM_POLICY: {
+ CustomPolicy customPolicy = (CustomPolicy) theEObject;
+ T result = caseCustomPolicy(customPolicy);
+ if (result == null) {
+ result = caseNewChildPolicy(customPolicy);
+ }
+ if (result == null) {
+ result = defaultCase(theEObject);
+ }
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
}
}
@@ -132,7 +163,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>New EMF Child Menu</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -147,7 +180,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>New Child Policy Set</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -162,7 +197,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>New Child Policy</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -177,7 +214,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>Filter Policy</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -192,7 +231,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>Replace Policy</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -207,7 +248,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>Custom Policy</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -222,7 +265,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>Menu Container</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -237,7 +282,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>Menu Item</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -252,7 +299,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>Menu</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -267,7 +316,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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>Display Unit</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
@@ -282,7 +333,9 @@ public class NcpolicySwitch<T> extends Switch<T> {
* 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
@@ -292,4 +345,4 @@ public class NcpolicySwitch<T> extends Switch<T> {
return null;
}
-} //NcpolicySwitch
+} // NcpolicySwitch

Back to the top