projet-genie-logiciel-systeme/workspace/fr.n7.game/src-gen/xtext/game/util/GameAdapterFactory.java
2021-12-03 08:36:23 +01:00

474 lines
14 KiB
Java

/**
* generated by Xtext 2.23.0
*/
package xtext.game.util;
import org.eclipse.emf.common.notify.Adapter;
import org.eclipse.emf.common.notify.Notifier;
import org.eclipse.emf.common.notify.impl.AdapterFactoryImpl;
import org.eclipse.emf.ecore.EObject;
import xtext.game.*;
/**
* <!-- begin-user-doc -->
* The <b>Adapter Factory</b> for the model.
* It provides an adapter <code>createXXX</code> method for each class of the model.
* <!-- end-user-doc -->
* @see xtext.game.GamePackage
* @generated
*/
public class GameAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected static GamePackage modelPackage;
/**
* Creates an instance of the adapter factory.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
public GameAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = GamePackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
* <!-- begin-user-doc -->
* This implementation returns <code>true</code> if the object is either the model's package or is an instance object of the model.
* <!-- end-user-doc -->
* @return whether this factory is applicable for the type of the object.
* @generated
*/
@Override
public boolean isFactoryForType(Object object)
{
if (object == modelPackage)
{
return true;
}
if (object instanceof EObject)
{
return ((EObject)object).eClass().getEPackage() == modelPackage;
}
return false;
}
/**
* The switch that delegates to the <code>createXXX</code> methods.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @generated
*/
protected GameSwitch<Adapter> modelSwitch =
new GameSwitch<Adapter>()
{
@Override
public Adapter caseJeu(Jeu object)
{
return createJeuAdapter();
}
@Override
public Adapter caseExplorateur(Explorateur object)
{
return createExplorateurAdapter();
}
@Override
public Adapter caseTerritoire(Territoire object)
{
return createTerritoireAdapter();
}
@Override
public Adapter caseLieu(Lieu object)
{
return createLieuAdapter();
}
@Override
public Adapter caseChemin(Chemin object)
{
return createCheminAdapter();
}
@Override
public Adapter caseObjet(Objet object)
{
return createObjetAdapter();
}
@Override
public Adapter caseTransformation(Transformation object)
{
return createTransformationAdapter();
}
@Override
public Adapter caseConnaissance(Connaissance object)
{
return createConnaissanceAdapter();
}
@Override
public Adapter casePersonne(Personne object)
{
return createPersonneAdapter();
}
@Override
public Adapter caseInteraction(Interaction object)
{
return createInteractionAdapter();
}
@Override
public Adapter caseAction(Action object)
{
return createActionAdapter();
}
@Override
public Adapter caseDescription(Description object)
{
return createDescriptionAdapter();
}
@Override
public Adapter caseCondition(Condition object)
{
return createConditionAdapter();
}
@Override
public Adapter caseConditionEt(ConditionEt object)
{
return createConditionEtAdapter();
}
@Override
public Adapter caseConditionTest(ConditionTest object)
{
return createConditionTestAdapter();
}
@Override
public Adapter caseConditionConnaissance(ConditionConnaissance object)
{
return createConditionConnaissanceAdapter();
}
@Override
public Adapter caseNOTConditionConnaissance(NOTConditionConnaissance object)
{
return createNOTConditionConnaissanceAdapter();
}
@Override
public Adapter caseConditionObjet(ConditionObjet object)
{
return createConditionObjetAdapter();
}
@Override
public Adapter defaultCase(EObject object)
{
return createEObjectAdapter();
}
};
/**
* Creates an adapter for the <code>target</code>.
* <!-- begin-user-doc -->
* <!-- end-user-doc -->
* @param target the object to adapt.
* @return the adapter for the <code>target</code>.
* @generated
*/
@Override
public Adapter createAdapter(Notifier target)
{
return modelSwitch.doSwitch((EObject)target);
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Jeu <em>Jeu</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Jeu
* @generated
*/
public Adapter createJeuAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Explorateur <em>Explorateur</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Explorateur
* @generated
*/
public Adapter createExplorateurAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Territoire <em>Territoire</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Territoire
* @generated
*/
public Adapter createTerritoireAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Lieu <em>Lieu</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Lieu
* @generated
*/
public Adapter createLieuAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Chemin <em>Chemin</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Chemin
* @generated
*/
public Adapter createCheminAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Objet <em>Objet</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Objet
* @generated
*/
public Adapter createObjetAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Transformation <em>Transformation</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Transformation
* @generated
*/
public Adapter createTransformationAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Connaissance <em>Connaissance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Connaissance
* @generated
*/
public Adapter createConnaissanceAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Personne <em>Personne</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Personne
* @generated
*/
public Adapter createPersonneAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Interaction <em>Interaction</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Interaction
* @generated
*/
public Adapter createInteractionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Action <em>Action</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Action
* @generated
*/
public Adapter createActionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Description <em>Description</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Description
* @generated
*/
public Adapter createDescriptionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.Condition <em>Condition</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.Condition
* @generated
*/
public Adapter createConditionAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.ConditionEt <em>Condition Et</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.ConditionEt
* @generated
*/
public Adapter createConditionEtAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.ConditionTest <em>Condition Test</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.ConditionTest
* @generated
*/
public Adapter createConditionTestAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.ConditionConnaissance <em>Condition Connaissance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.ConditionConnaissance
* @generated
*/
public Adapter createConditionConnaissanceAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.NOTConditionConnaissance <em>NOT Condition Connaissance</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.NOTConditionConnaissance
* @generated
*/
public Adapter createNOTConditionConnaissanceAdapter()
{
return null;
}
/**
* Creates a new adapter for an object of class '{@link xtext.game.ConditionObjet <em>Condition Objet</em>}'.
* <!-- begin-user-doc -->
* This default implementation returns null so that we can easily ignore cases;
* it's useful to ignore a case when inheritance will catch all the cases anyway.
* <!-- end-user-doc -->
* @return the new adapter.
* @see xtext.game.ConditionObjet
* @generated
*/
public Adapter createConditionObjetAdapter()
{
return null;
}
/**
* Creates a new adapter for the default case.
* <!-- begin-user-doc -->
* This default implementation returns null.
* <!-- end-user-doc -->
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter()
{
return null;
}
} //GameAdapterFactory