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