projet-genie-logiciel-systeme/workspace/fr.n7.game/src-gen/fr/n7/gAME/util/GAMESwitch.java

515 lines
17 KiB
Java
Raw Normal View History

2021-11-30 17:25:45 +00:00
/**
* generated by Xtext 2.23.0
*/
2021-12-03 08:38:29 +00:00
package fr.n7.gAME.util;
2021-12-03 07:37:31 +00:00
2021-12-03 08:38:29 +00:00
import fr.n7.gAME.*;
2021-11-30 17:25:45 +00:00
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 -->
2021-12-03 08:38:29 +00:00
* @see fr.n7.gAME.GAMEPackage
2021-11-30 17:25:45 +00:00
* @generated
*/
2021-12-03 08:38:29 +00:00
public class GAMESwitch<T> extends Switch<T>
2021-11-30 17:25:45 +00:00
{
/**
* The cached model package
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
2021-12-03 08:38:29 +00:00
protected static GAMEPackage modelPackage;
2021-11-30 17:25:45 +00:00
/**
* Creates an instance of the switch.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
2021-12-03 08:38:29 +00:00
public GAMESwitch()
2021-11-30 17:25:45 +00:00
{
if (modelPackage == null)
{
2021-12-03 08:38:29 +00:00
modelPackage = GAMEPackage.eINSTANCE;
2021-11-30 17:25:45 +00:00
}
}
/**
* 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)
{
2021-12-03 08:38:29 +00:00
case GAMEPackage.JEU:
2021-11-30 17:25:45 +00:00
{
Jeu jeu = (Jeu)theEObject;
T result = caseJeu(jeu);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.EXPLORATEUR:
2021-11-30 17:25:45 +00:00
{
Explorateur explorateur = (Explorateur)theEObject;
T result = caseExplorateur(explorateur);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.TERRITOIRE:
2021-11-30 17:25:45 +00:00
{
Territoire territoire = (Territoire)theEObject;
T result = caseTerritoire(territoire);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.LIEU:
2021-11-30 17:25:45 +00:00
{
Lieu lieu = (Lieu)theEObject;
T result = caseLieu(lieu);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.CHEMIN:
2021-11-30 17:25:45 +00:00
{
Chemin chemin = (Chemin)theEObject;
T result = caseChemin(chemin);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.OBJET:
2021-11-30 17:25:45 +00:00
{
Objet objet = (Objet)theEObject;
T result = caseObjet(objet);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.TRANSFORMATION:
2021-11-30 17:25:45 +00:00
{
Transformation transformation = (Transformation)theEObject;
T result = caseTransformation(transformation);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.CONNAISSANCE:
2021-11-30 17:25:45 +00:00
{
Connaissance connaissance = (Connaissance)theEObject;
T result = caseConnaissance(connaissance);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.PERSONNE:
2021-11-30 17:25:45 +00:00
{
Personne personne = (Personne)theEObject;
T result = casePersonne(personne);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.INTERACTION:
2021-11-30 17:25:45 +00:00
{
Interaction interaction = (Interaction)theEObject;
T result = caseInteraction(interaction);
2021-11-30 17:25:45 +00:00
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.ACTION:
2021-11-30 17:25:45 +00:00
{
Action action = (Action)theEObject;
T result = caseAction(action);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.DESCRIPTION:
2021-11-30 17:25:45 +00:00
{
Description description = (Description)theEObject;
T result = caseDescription(description);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.CONDITION:
2021-11-30 17:25:45 +00:00
{
Condition condition = (Condition)theEObject;
T result = caseCondition(condition);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.CONDITION_ET:
2021-11-30 17:25:45 +00:00
{
ConditionEt conditionEt = (ConditionEt)theEObject;
T result = caseConditionEt(conditionEt);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.CONDITION_TEST:
2021-11-30 17:25:45 +00:00
{
ConditionTest conditionTest = (ConditionTest)theEObject;
T result = caseConditionTest(conditionTest);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.CONDITION_CONNAISSANCE:
2021-11-30 17:25:45 +00:00
{
ConditionConnaissance conditionConnaissance = (ConditionConnaissance)theEObject;
T result = caseConditionConnaissance(conditionConnaissance);
if (result == null) result = caseConditionTest(conditionConnaissance);
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.NOT_CONDITION_CONNAISSANCE:
2021-11-30 17:25:45 +00:00
{
NOTConditionConnaissance notConditionConnaissance = (NOTConditionConnaissance)theEObject;
T result = caseNOTConditionConnaissance(notConditionConnaissance);
if (result == null) result = caseConditionTest(notConditionConnaissance);
2021-11-30 17:25:45 +00:00
if (result == null) result = defaultCase(theEObject);
return result;
}
2021-12-03 08:38:29 +00:00
case GAMEPackage.CONDITION_OBJET:
2021-11-30 17:25:45 +00:00
{
ConditionObjet conditionObjet = (ConditionObjet)theEObject;
T result = caseConditionObjet(conditionObjet);
if (result == null) result = caseConditionTest(conditionObjet);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of '<em>Jeu</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>Jeu</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseJeu(Jeu object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Explorateur</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>Explorateur</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseExplorateur(Explorateur object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Territoire</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>Territoire</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTerritoire(Territoire object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Lieu</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>Lieu</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseLieu(Lieu object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Chemin</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>Chemin</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseChemin(Chemin object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Objet</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>Objet</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseObjet(Objet object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Transformation</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>Transformation</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseTransformation(Transformation object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Connaissance</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>Connaissance</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConnaissance(Connaissance object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Personne</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>Personne</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePersonne(Personne object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Interaction</em>'.
2021-11-30 17:25:45 +00:00
* <!-- 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>Interaction</em>'.
2021-11-30 17:25:45 +00:00
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseInteraction(Interaction object)
2021-11-30 17:25:45 +00:00
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Action</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>Action</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAction(Action object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Description</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>Description</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDescription(Description object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Condition</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>Condition</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCondition(Condition object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Condition Et</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>Condition Et</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConditionEt(ConditionEt object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Condition Test</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>Condition Test</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConditionTest(ConditionTest object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Condition Connaissance</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>Condition Connaissance</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConditionConnaissance(ConditionConnaissance object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>NOT Condition Connaissance</em>'.
2021-11-30 17:25:45 +00:00
* <!-- 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>NOT Condition Connaissance</em>'.
2021-11-30 17:25:45 +00:00
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseNOTConditionConnaissance(NOTConditionConnaissance object)
2021-11-30 17:25:45 +00:00
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of '<em>Condition Objet</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>Condition Objet</em>'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConditionObjet(ConditionObjet 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;
}
2021-12-03 08:38:29 +00:00
} //GAMESwitch