/** | |
* Copyright (c) 2016 CEA LIST. | |
* | |
* All rights reserved. This program and the accompanying materials | |
* are made available under the terms of the Eclipse Public License v1.0 | |
* which accompanies this distribution, and is available at | |
* http://www.eclipse.org/legal/epl-v10.html | |
* | |
* Contributors: | |
* Arnault Lapitre (CEA LIST) arnault.lapitre@cea.fr | |
* - Initial API and Implementation | |
*/ | |
package org.eclipse.efm.core.workflow.common.util; | |
import org.eclipse.efm.core.workflow.NamedObject; | |
import org.eclipse.efm.core.workflow.common.*; | |
import org.eclipse.emf.ecore.EObject; | |
import org.eclipse.emf.ecore.EPackage; | |
import org.eclipse.emf.ecore.util.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.eclipse.efm.core.workflow.common.CommonPackage | |
* @generated | |
*/ | |
public class CommonSwitch<T> extends Switch<T> { | |
/** | |
* The cached model package | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
protected static CommonPackage modelPackage; | |
/** | |
* Creates an instance of the switch. | |
* <!-- begin-user-doc --> | |
* <!-- end-user-doc --> | |
* @generated | |
*/ | |
public CommonSwitch() { | |
if (modelPackage == null) { | |
modelPackage = CommonPackage.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 CommonPackage.WORKSPACE: { | |
Workspace workspace = (Workspace)theEObject; | |
T result = caseWorkspace(workspace); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.LOCATION: { | |
Location location = (Location)theEObject; | |
T result = caseLocation(location); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.PROJECT: { | |
Project project = (Project)theEObject; | |
T result = caseProject(project); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.GRAPH_EXPLORATION_LIMIT: { | |
GraphExplorationLimit graphExplorationLimit = (GraphExplorationLimit)theEObject; | |
T result = caseGraphExplorationLimit(graphExplorationLimit); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.GRAPH_EXPLORATION_QUEUE: { | |
GraphExplorationQueue graphExplorationQueue = (GraphExplorationQueue)theEObject; | |
T result = caseGraphExplorationQueue(graphExplorationQueue); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.CONSOLE_LOG_FORMAT: { | |
ConsoleLogFormat consoleLogFormat = (ConsoleLogFormat)theEObject; | |
T result = caseConsoleLogFormat(consoleLogFormat); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.TRACE_ELEMENT: { | |
TraceElement traceElement = (TraceElement)theEObject; | |
T result = caseTraceElement(traceElement); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.TRACE_SPECIFICATION: { | |
TraceSpecification traceSpecification = (TraceSpecification)theEObject; | |
T result = caseTraceSpecification(traceSpecification); | |
if (result == null) result = caseNamedObject(traceSpecification); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.MANIFEST: { | |
Manifest manifest = (Manifest)theEObject; | |
T result = caseManifest(manifest); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.SYMBEX_OPTION: { | |
SymbexOption symbexOption = (SymbexOption)theEObject; | |
T result = caseSymbexOption(symbexOption); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.SHELL_MODE: { | |
ShellMode shellMode = (ShellMode)theEObject; | |
T result = caseShellMode(shellMode); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.COVERAGE_HEURISTIC: { | |
CoverageHeuristic coverageHeuristic = (CoverageHeuristic)theEObject; | |
T result = caseCoverageHeuristic(coverageHeuristic); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.DEVELOPER_TUNING_OPTION: { | |
DeveloperTuningOption developerTuningOption = (DeveloperTuningOption)theEObject; | |
T result = caseDeveloperTuningOption(developerTuningOption); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
case CommonPackage.REDUNDANCY_DETECTION: { | |
RedundancyDetection redundancyDetection = (RedundancyDetection)theEObject; | |
T result = caseRedundancyDetection(redundancyDetection); | |
if (result == null) result = defaultCase(theEObject); | |
return result; | |
} | |
default: return defaultCase(theEObject); | |
} | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Workspace</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>Workspace</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseWorkspace(Workspace object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Location</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>Location</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseLocation(Location object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Project</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>Project</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseProject(Project object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Graph Exploration Limit</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>Graph Exploration Limit</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseGraphExplorationLimit(GraphExplorationLimit object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Graph Exploration Queue</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>Graph Exploration Queue</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseGraphExplorationQueue(GraphExplorationQueue object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Console Log Format</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>Console Log Format</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseConsoleLogFormat(ConsoleLogFormat object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Trace 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>Trace Element</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseTraceElement(TraceElement object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Trace Specification</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>Trace Specification</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseTraceSpecification(TraceSpecification object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Manifest</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>Manifest</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseManifest(Manifest object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Symbex Option</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>Symbex Option</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseSymbexOption(SymbexOption object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Shell Mode</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>Shell Mode</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseShellMode(ShellMode object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Coverage Heuristic</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>Coverage Heuristic</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseCoverageHeuristic(CoverageHeuristic object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Developer Tuning Option</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>Developer Tuning Option</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseDeveloperTuningOption(DeveloperTuningOption object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Redundancy Detection</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>Redundancy Detection</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseRedundancyDetection(RedundancyDetection object) { | |
return null; | |
} | |
/** | |
* Returns the result of interpreting the object as an instance of '<em>Named Object</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 Object</em>'. | |
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) | |
* @generated | |
*/ | |
public T caseNamedObject(NamedObject 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; | |
} | |
} //CommonSwitch |