Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/src-gen/org/eclipse/papyrus/uml/textedit/valuespecification/xtext/umlValueSpecification/util/UmlValueSpecificationSwitch.java')
-rw-r--r--plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/src-gen/org/eclipse/papyrus/uml/textedit/valuespecification/xtext/umlValueSpecification/util/UmlValueSpecificationSwitch.java508
1 files changed, 262 insertions, 246 deletions
diff --git a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/src-gen/org/eclipse/papyrus/uml/textedit/valuespecification/xtext/umlValueSpecification/util/UmlValueSpecificationSwitch.java b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/src-gen/org/eclipse/papyrus/uml/textedit/valuespecification/xtext/umlValueSpecification/util/UmlValueSpecificationSwitch.java
index 16cf0ac3d93..0126e558797 100644
--- a/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/src-gen/org/eclipse/papyrus/uml/textedit/valuespecification/xtext/umlValueSpecification/util/UmlValueSpecificationSwitch.java
+++ b/plugins/uml/textedit/org.eclipse.papyrus.uml.textedit.valuespecification.xtext/src-gen/org/eclipse/papyrus/uml/textedit/valuespecification/xtext/umlValueSpecification/util/UmlValueSpecificationSwitch.java
@@ -4,10 +4,16 @@ package org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecif
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
-
import org.eclipse.emf.ecore.util.Switch;
-
-import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.*;
+import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.AbstractRule;
+import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.LiteralBooleanRule;
+import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.LiteralIntegerOrUnlimitedNaturalRule;
+import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.LiteralNullRule;
+import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.LiteralRealRule;
+import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.LiteralStringRule;
+import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.UmlValueSpecificationPackage;
+import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.UndefinedRule;
+import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.VisibilityKind;
/**
* <!-- begin-user-doc -->
@@ -19,262 +25,272 @@ import org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecifi
* until a non-null result is returned,
* which is the result of the switch.
* <!-- end-user-doc -->
+ *
* @see org.eclipse.papyrus.uml.textedit.valuespecification.xtext.umlValueSpecification.UmlValueSpecificationPackage
* @generated
*/
-public class UmlValueSpecificationSwitch<T> extends Switch<T>
-{
- /**
- * The cached model package
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- protected static UmlValueSpecificationPackage modelPackage;
+public class UmlValueSpecificationSwitch<T> extends Switch<T> {
+ /**
+ * The cached model package
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ protected static UmlValueSpecificationPackage modelPackage;
- /**
- * Creates an instance of the switch.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @generated
- */
- public UmlValueSpecificationSwitch()
- {
- if (modelPackage == null)
- {
- modelPackage = UmlValueSpecificationPackage.eINSTANCE;
- }
- }
+ /**
+ * Creates an instance of the switch.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @generated
+ */
+ public UmlValueSpecificationSwitch() {
+ if (modelPackage == null) {
+ modelPackage = UmlValueSpecificationPackage.eINSTANCE;
+ }
+ }
- /**
- * Checks whether this is a switch for the given package.
- * <!-- begin-user-doc -->
- * <!-- end-user-doc -->
- * @param ePackage the package in question.
- * @return whether this is a switch for the given package.
- * @generated
- */
- @Override
- protected boolean isSwitchFor(EPackage ePackage)
- {
- return ePackage == modelPackage;
- }
+ /**
+ * Checks whether this is a switch for the given package.
+ * <!-- begin-user-doc -->
+ * <!-- end-user-doc -->
+ *
+ * @param ePackage
+ * the package in question.
+ * @return whether this is a switch for the given package.
+ * @generated
+ */
+ @Override
+ protected boolean isSwitchFor(EPackage ePackage) {
+ return ePackage == modelPackage;
+ }
- /**
- * 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 UmlValueSpecificationPackage.ABSTRACT_RULE:
- {
- AbstractRule abstractRule = (AbstractRule)theEObject;
- T result = caseAbstractRule(abstractRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UmlValueSpecificationPackage.LITERAL_BOOLEAN_RULE:
- {
- LiteralBooleanRule literalBooleanRule = (LiteralBooleanRule)theEObject;
- T result = caseLiteralBooleanRule(literalBooleanRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UmlValueSpecificationPackage.LITERAL_INTEGER_OR_UNLIMITED_NATURAL_RULE:
- {
- LiteralIntegerOrUnlimitedNaturalRule literalIntegerOrUnlimitedNaturalRule = (LiteralIntegerOrUnlimitedNaturalRule)theEObject;
- T result = caseLiteralIntegerOrUnlimitedNaturalRule(literalIntegerOrUnlimitedNaturalRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UmlValueSpecificationPackage.LITERAL_REAL_RULE:
- {
- LiteralRealRule literalRealRule = (LiteralRealRule)theEObject;
- T result = caseLiteralRealRule(literalRealRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UmlValueSpecificationPackage.LITERAL_NULL_RULE:
- {
- LiteralNullRule literalNullRule = (LiteralNullRule)theEObject;
- T result = caseLiteralNullRule(literalNullRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UmlValueSpecificationPackage.LITERAL_STRING_RULE:
- {
- LiteralStringRule literalStringRule = (LiteralStringRule)theEObject;
- T result = caseLiteralStringRule(literalStringRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UmlValueSpecificationPackage.UNDEFINED_RULE:
- {
- UndefinedRule undefinedRule = (UndefinedRule)theEObject;
- T result = caseUndefinedRule(undefinedRule);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- case UmlValueSpecificationPackage.VISIBILITY_KIND:
- {
- VisibilityKind visibilityKind = (VisibilityKind)theEObject;
- T result = caseVisibilityKind(visibilityKind);
- if (result == null) result = defaultCase(theEObject);
- return result;
- }
- default: return defaultCase(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 -->
+ *
+ * @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 UmlValueSpecificationPackage.ABSTRACT_RULE: {
+ AbstractRule abstractRule = (AbstractRule) theEObject;
+ T result = caseAbstractRule(abstractRule);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlValueSpecificationPackage.LITERAL_BOOLEAN_RULE: {
+ LiteralBooleanRule literalBooleanRule = (LiteralBooleanRule) theEObject;
+ T result = caseLiteralBooleanRule(literalBooleanRule);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlValueSpecificationPackage.LITERAL_INTEGER_OR_UNLIMITED_NATURAL_RULE: {
+ LiteralIntegerOrUnlimitedNaturalRule literalIntegerOrUnlimitedNaturalRule = (LiteralIntegerOrUnlimitedNaturalRule) theEObject;
+ T result = caseLiteralIntegerOrUnlimitedNaturalRule(literalIntegerOrUnlimitedNaturalRule);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlValueSpecificationPackage.LITERAL_REAL_RULE: {
+ LiteralRealRule literalRealRule = (LiteralRealRule) theEObject;
+ T result = caseLiteralRealRule(literalRealRule);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlValueSpecificationPackage.LITERAL_NULL_RULE: {
+ LiteralNullRule literalNullRule = (LiteralNullRule) theEObject;
+ T result = caseLiteralNullRule(literalNullRule);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlValueSpecificationPackage.LITERAL_STRING_RULE: {
+ LiteralStringRule literalStringRule = (LiteralStringRule) theEObject;
+ T result = caseLiteralStringRule(literalStringRule);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlValueSpecificationPackage.UNDEFINED_RULE: {
+ UndefinedRule undefinedRule = (UndefinedRule) theEObject;
+ T result = caseUndefinedRule(undefinedRule);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ case UmlValueSpecificationPackage.VISIBILITY_KIND: {
+ VisibilityKind visibilityKind = (VisibilityKind) theEObject;
+ T result = caseVisibilityKind(visibilityKind);
+ if (result == null)
+ result = defaultCase(theEObject);
+ return result;
+ }
+ default:
+ return defaultCase(theEObject);
+ }
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Abstract Rule</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>Abstract Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseAbstractRule(AbstractRule object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Abstract Rule</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>Abstract Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseAbstractRule(AbstractRule object) {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Literal Boolean Rule</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>Literal Boolean Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLiteralBooleanRule(LiteralBooleanRule object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Literal Boolean Rule</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>Literal Boolean Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLiteralBooleanRule(LiteralBooleanRule object) {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Literal Integer Or Unlimited Natural Rule</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>Literal Integer Or Unlimited Natural Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLiteralIntegerOrUnlimitedNaturalRule(LiteralIntegerOrUnlimitedNaturalRule object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Literal Integer Or Unlimited Natural Rule</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>Literal Integer Or Unlimited Natural Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLiteralIntegerOrUnlimitedNaturalRule(LiteralIntegerOrUnlimitedNaturalRule object) {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Literal Real Rule</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>Literal Real Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLiteralRealRule(LiteralRealRule object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Literal Real Rule</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>Literal Real Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLiteralRealRule(LiteralRealRule object) {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Literal Null Rule</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>Literal Null Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLiteralNullRule(LiteralNullRule object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Literal Null Rule</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>Literal Null Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLiteralNullRule(LiteralNullRule object) {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Literal String Rule</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>Literal String Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseLiteralStringRule(LiteralStringRule object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Literal String Rule</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>Literal String Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseLiteralStringRule(LiteralStringRule object) {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Undefined Rule</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>Undefined Rule</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseUndefinedRule(UndefinedRule object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Undefined Rule</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>Undefined Rule</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseUndefinedRule(UndefinedRule object) {
+ return null;
+ }
- /**
- * Returns the result of interpreting the object as an instance of '<em>Visibility Kind</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>Visibility Kind</em>'.
- * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
- * @generated
- */
- public T caseVisibilityKind(VisibilityKind object)
- {
- return null;
- }
+ /**
+ * Returns the result of interpreting the object as an instance of '<em>Visibility Kind</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>Visibility Kind</em>'.
+ * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
+ * @generated
+ */
+ public T caseVisibilityKind(VisibilityKind object) {
+ return null;
+ }
- /**
- * 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
- */
- @Override
- public T defaultCase(EObject object)
- {
- return null;
- }
+ /**
+ * 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
+ */
+ @Override
+ public T defaultCase(EObject object) {
+ return null;
+ }
-} //UmlValueSpecificationSwitch
+} // UmlValueSpecificationSwitch

Back to the top