blob: 80a95d5c9dcab518f7561182e53954c3f96d9e47 [file] [log] [blame]
/**
* <copyright>
* </copyright>
*
* $Id$
*/
package org.eclipse.stem.evolvingcrossspeciesmodel.util;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
import org.eclipse.stem.core.common.Identifiable;
import org.eclipse.stem.core.common.PrimitiveTypeOperations;
import org.eclipse.stem.core.common.SanityChecker;
import org.eclipse.stem.core.graph.DynamicLabel;
import org.eclipse.stem.core.graph.DynamicNodeLabel;
import org.eclipse.stem.core.graph.IntegrationLabel;
import org.eclipse.stem.core.graph.IntegrationLabelValue;
import org.eclipse.stem.core.graph.Label;
import org.eclipse.stem.core.graph.LabelValue;
import org.eclipse.stem.core.graph.NodeLabel;
import org.eclipse.stem.core.model.Decorator;
import org.eclipse.stem.core.model.IntegrationDecorator;
import org.eclipse.stem.core.model.NodeDecorator;
import org.eclipse.stem.core.modifier.Modifiable;
import org.eclipse.stem.diseasemodels.evolving.EvolvingDiseaseModel;
import org.eclipse.stem.diseasemodels.evolving.EvolvingSIDiseaseModel;
import org.eclipse.stem.diseasemodels.evolving.EvolvingSIRDiseaseModel;
import org.eclipse.stem.diseasemodels.standard.DiseaseModel;
import org.eclipse.stem.diseasemodels.standard.DiseaseModelLabel;
import org.eclipse.stem.diseasemodels.standard.DiseaseModelLabelValue;
import org.eclipse.stem.diseasemodels.standard.SI;
import org.eclipse.stem.diseasemodels.standard.SILabelValue;
import org.eclipse.stem.diseasemodels.standard.SIRLabelValue;
import org.eclipse.stem.diseasemodels.standard.StandardDiseaseModel;
import org.eclipse.stem.diseasemodels.standard.StandardDiseaseModelLabel;
import org.eclipse.stem.diseasemodels.standard.StandardDiseaseModelLabelValue;
import org.eclipse.stem.evolvingcrossspeciesmodel.*;
/**
* <!-- 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.stem.evolvingcrossspeciesmodel.EvolvingCrossSpeciesModelPackage
* @generated
*/
public class EvolvingCrossSpeciesModelSwitch<T1> extends Switch<T1> {
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static EvolvingCrossSpeciesModelPackage modelPackage;
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public EvolvingCrossSpeciesModelSwitch() {
if (modelPackage == null) {
modelPackage = EvolvingCrossSpeciesModelPackage.eINSTANCE;
}
}
/**
* 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
*/
@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 T1 doSwitch(int classifierID, EObject theEObject) {
switch (classifierID) {
case EvolvingCrossSpeciesModelPackage.EVOLVING_CROSS_SPECIES_MODEL_LABEL: {
EvolvingCrossSpeciesModelLabel evolvingCrossSpeciesModelLabel = (EvolvingCrossSpeciesModelLabel)theEObject;
T1 result = caseEvolvingCrossSpeciesModelLabel(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseStandardDiseaseModelLabel(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseDiseaseModelLabel(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseIntegrationLabel(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseDynamicNodeLabel(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseDynamicLabel(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseNodeLabel(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseLabel(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseIdentifiable(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseComparable(evolvingCrossSpeciesModelLabel);
if (result == null) result = caseSanityChecker(evolvingCrossSpeciesModelLabel);
if (result == null) result = defaultCase(theEObject);
return result;
}
case EvolvingCrossSpeciesModelPackage.EVOLVING_CROSS_SPECIES_MODEL_LABEL_VALUE: {
EvolvingCrossSpeciesModelLabelValue evolvingCrossSpeciesModelLabelValue = (EvolvingCrossSpeciesModelLabelValue)theEObject;
T1 result = caseEvolvingCrossSpeciesModelLabelValue(evolvingCrossSpeciesModelLabelValue);
if (result == null) result = caseSIRLabelValue(evolvingCrossSpeciesModelLabelValue);
if (result == null) result = caseSILabelValue(evolvingCrossSpeciesModelLabelValue);
if (result == null) result = caseStandardDiseaseModelLabelValue(evolvingCrossSpeciesModelLabelValue);
if (result == null) result = caseDiseaseModelLabelValue(evolvingCrossSpeciesModelLabelValue);
if (result == null) result = caseIntegrationLabelValue(evolvingCrossSpeciesModelLabelValue);
if (result == null) result = caseLabelValue(evolvingCrossSpeciesModelLabelValue);
if (result == null) result = casePrimitiveTypeOperations(evolvingCrossSpeciesModelLabelValue);
if (result == null) result = caseSanityChecker(evolvingCrossSpeciesModelLabelValue);
if (result == null) result = defaultCase(theEObject);
return result;
}
case EvolvingCrossSpeciesModelPackage.EVOLVING_CROSS_SPECIES_MODEL: {
EvolvingCrossSpeciesModel evolvingCrossSpeciesModel = (EvolvingCrossSpeciesModel)theEObject;
T1 result = caseEvolvingCrossSpeciesModel(evolvingCrossSpeciesModel);
if (result == null) result = caseEvolvingSIRDiseaseModel(evolvingCrossSpeciesModel);
if (result == null) result = caseEvolvingSIDiseaseModel(evolvingCrossSpeciesModel);
if (result == null) result = caseSI(evolvingCrossSpeciesModel);
if (result == null) result = caseEvolvingDiseaseModel(evolvingCrossSpeciesModel);
if (result == null) result = caseStandardDiseaseModel(evolvingCrossSpeciesModel);
if (result == null) result = caseDiseaseModel(evolvingCrossSpeciesModel);
if (result == null) result = caseIntegrationDecorator(evolvingCrossSpeciesModel);
if (result == null) result = caseModifiable(evolvingCrossSpeciesModel);
if (result == null) result = caseNodeDecorator(evolvingCrossSpeciesModel);
if (result == null) result = caseDecorator(evolvingCrossSpeciesModel);
if (result == null) result = caseIdentifiable(evolvingCrossSpeciesModel);
if (result == null) result = caseComparable(evolvingCrossSpeciesModel);
if (result == null) result = caseSanityChecker(evolvingCrossSpeciesModel);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Label</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>Label</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseEvolvingCrossSpeciesModelLabel(EvolvingCrossSpeciesModelLabel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Label Value</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>Label Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseEvolvingCrossSpeciesModelLabelValue(EvolvingCrossSpeciesModelLabelValue object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Evolving Cross Species 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>Evolving Cross Species Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseEvolvingCrossSpeciesModel(EvolvingCrossSpeciesModel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Comparable</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>Comparable</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public <T> T1 caseComparable(Comparable<T> object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Sanity Checker</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>Sanity Checker</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseSanityChecker(SanityChecker object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Identifiable</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>Identifiable</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseIdentifiable(Identifiable object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Label</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>Label</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseLabel(Label object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Dynamic Label</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>Dynamic Label</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseDynamicLabel(DynamicLabel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Node Label</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>Node Label</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseNodeLabel(NodeLabel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Dynamic Node Label</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>Dynamic Node Label</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseDynamicNodeLabel(DynamicNodeLabel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Integration Label</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>Integration Label</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseIntegrationLabel(IntegrationLabel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Disease Model Label</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>Disease Model Label</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseDiseaseModelLabel(DiseaseModelLabel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Disease Model Label</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>Disease Model Label</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseStandardDiseaseModelLabel(StandardDiseaseModelLabel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Label Value</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>Label Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseLabelValue(LabelValue object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Primitive Type Operations</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>Primitive Type Operations</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 casePrimitiveTypeOperations(PrimitiveTypeOperations object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Integration Label Value</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>Integration Label Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseIntegrationLabelValue(IntegrationLabelValue object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Disease Model Label Value</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>Disease Model Label Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseDiseaseModelLabelValue(DiseaseModelLabelValue object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Disease Model Label Value</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>Disease Model Label Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseStandardDiseaseModelLabelValue(StandardDiseaseModelLabelValue object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>SI Label Value</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>SI Label Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseSILabelValue(SILabelValue object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>SIR Label Value</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>SIR Label Value</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseSIRLabelValue(SIRLabelValue object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Decorator</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>Decorator</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseDecorator(Decorator object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Node Decorator</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>Node Decorator</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseNodeDecorator(NodeDecorator object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Integration Decorator</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>Integration Decorator</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseIntegrationDecorator(IntegrationDecorator object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Modifiable</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>Modifiable</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseModifiable(Modifiable object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Disease 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>Disease Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseDiseaseModel(DiseaseModel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Disease 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>Disease Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseStandardDiseaseModel(StandardDiseaseModel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>SI</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>SI</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseSI(SI object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Disease 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>Disease Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseEvolvingDiseaseModel(EvolvingDiseaseModel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>SI Disease 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>SI Disease Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseEvolvingSIDiseaseModel(EvolvingSIDiseaseModel object) {
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>SIR Disease 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>SIR Disease Model</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T1 caseEvolvingSIRDiseaseModel(EvolvingSIRDiseaseModel 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 T1 defaultCase(EObject object) {
return null;
}
} //EvolvingCrossSpeciesModelSwitch