/** */ package org.jboss.tools.windup.windup.util; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; import org.jboss.tools.windup.windup.*; /** * <!-- 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.jboss.tools.windup.windup.WindupPackage * @generated */ public class WindupSwitch<T> extends Switch<T> { /** * The cached model package * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static WindupPackage modelPackage; /** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public WindupSwitch() { if (modelPackage == null) { modelPackage = WindupPackage.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; } /** * 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 WindupPackage.NAMED_ELEMENT: { NamedElement namedElement = (NamedElement)theEObject; T result = caseNamedElement(namedElement); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.CONFIGURATION_ELEMENT: { ConfigurationElement configurationElement = (ConfigurationElement)theEObject; T result = caseConfigurationElement(configurationElement); if (result == null) result = caseParameterized(configurationElement); if (result == null) result = caseNamedElement(configurationElement); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.PARAMETER: { Parameter parameter = (Parameter)theEObject; T result = caseParameter(parameter); if (result == null) result = caseNamedElement(parameter); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.PARAMETERIZED: { Parameterized parameterized = (Parameterized)theEObject; T result = caseParameterized(parameterized); if (result == null) result = caseNamedElement(parameterized); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.WINDUP_MODEL: { WindupModel windupModel = (WindupModel)theEObject; T result = caseWindupModel(windupModel); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.INPUT: { Input input = (Input)theEObject; T result = caseInput(input); if (result == null) result = caseNamedElement(input); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.WINDUP_RESULT: { WindupResult windupResult = (WindupResult)theEObject; T result = caseWindupResult(windupResult); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.ISSUE: { Issue issue = (Issue)theEObject; T result = caseIssue(issue); if (result == null) result = caseMarkerElement(issue); if (result == null) result = caseNamedElement(issue); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.HINT: { Hint hint = (Hint)theEObject; T result = caseHint(hint); if (result == null) result = caseIssue(hint); if (result == null) result = caseMarkerElement(hint); if (result == null) result = caseNamedElement(hint); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.CLASSIFICATION: { Classification classification = (Classification)theEObject; T result = caseClassification(classification); if (result == null) result = caseIssue(classification); if (result == null) result = caseMarkerElement(classification); if (result == null) result = caseNamedElement(classification); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.LINK: { Link link = (Link)theEObject; T result = caseLink(link); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.QUICK_FIX: { QuickFix quickFix = (QuickFix)theEObject; T result = caseQuickFix(quickFix); if (result == null) result = caseMarkerElement(quickFix); if (result == null) result = caseNamedElement(quickFix); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.MIGRATION_PATH: { MigrationPath migrationPath = (MigrationPath)theEObject; T result = caseMigrationPath(migrationPath); if (result == null) result = caseNamedElement(migrationPath); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.TECHNOLOGY: { Technology technology = (Technology)theEObject; T result = caseTechnology(technology); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.PAIR: { Pair pair = (Pair)theEObject; T result = casePair(pair); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.CUSTOM_RULE_PROVIDER: { CustomRuleProvider customRuleProvider = (CustomRuleProvider)theEObject; T result = caseCustomRuleProvider(customRuleProvider); if (result == null) result = defaultCase(theEObject); return result; } case WindupPackage.MARKER_ELEMENT: { MarkerElement markerElement = (MarkerElement)theEObject; T result = caseMarkerElement(markerElement); if (result == null) result = caseNamedElement(markerElement); if (result == null) result = defaultCase(theEObject); return result; } default: return defaultCase(theEObject); } } /** * Returns the result of interpreting the object as an instance of '<em>Named Element</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>Named Element</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNamedElement(NamedElement object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Configuration Element</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>Configuration Element</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseConfigurationElement(ConfigurationElement object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Parameter</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>Parameter</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseParameter(Parameter object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Parameterized</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>Parameterized</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseParameterized(Parameterized object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Model</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>Model</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseWindupModel(WindupModel object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Input</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>Input</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseInput(Input object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Result</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>Result</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseWindupResult(WindupResult object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Issue</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>Issue</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIssue(Issue object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Hint</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>Hint</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseHint(Hint object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Classification</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>Classification</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseClassification(Classification object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Link</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>Link</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseLink(Link object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Quick Fix</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>Quick Fix</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseQuickFix(QuickFix object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Migration Path</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>Migration Path</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseMigrationPath(MigrationPath object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Technology</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>Technology</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseTechnology(Technology object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Pair</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>Pair</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePair(Pair object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Custom Rule Provider</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>Custom Rule Provider</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseCustomRuleProvider(CustomRuleProvider object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Marker Element</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>Marker Element</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseMarkerElement(MarkerElement 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; } } //WindupSwitch