/**
* 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.*;
/**
*
* The Adapter Factory for the model.
* It provides an adapter createXXX
method for each class of the model.
*
* @see xtext.game.GamePackage
* @generated
*/
public class GameAdapterFactory extends AdapterFactoryImpl
{
/**
* The cached model package.
*
*
* @generated
*/
protected static GamePackage modelPackage;
/**
* Creates an instance of the adapter factory.
*
*
* @generated
*/
public GameAdapterFactory()
{
if (modelPackage == null)
{
modelPackage = GamePackage.eINSTANCE;
}
}
/**
* Returns whether this factory is applicable for the type of the object.
*
* This implementation returns true
if the object is either the model's package or is an instance object of the model.
*
* @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 createXXX
methods.
*
*
* @generated
*/
protected GameSwitch modelSwitch =
new GameSwitch()
{
@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 target
.
*
*
* @param target the object to adapt.
* @return the adapter for the target
.
* @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 Jeu}'.
*
* 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.
*
* @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 Explorateur}'.
*
* 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.
*
* @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 Territoire}'.
*
* 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.
*
* @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 Lieu}'.
*
* 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.
*
* @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 Chemin}'.
*
* 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.
*
* @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 Objet}'.
*
* 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.
*
* @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 Transformation}'.
*
* 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.
*
* @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 Connaissance}'.
*
* 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.
*
* @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 Personne}'.
*
* 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.
*
* @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 Interaction}'.
*
* 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.
*
* @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 Action}'.
*
* 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.
*
* @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 Description}'.
*
* 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.
*
* @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 Condition}'.
*
* 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.
*
* @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 Condition Et}'.
*
* 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.
*
* @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 Condition Test}'.
*
* 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.
*
* @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 Condition Connaissance}'.
*
* 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.
*
* @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 NOT Condition Connaissance}'.
*
* 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.
*
* @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 Condition Objet}'.
*
* 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.
*
* @return the new adapter.
* @see xtext.game.ConditionObjet
* @generated
*/
public Adapter createConditionObjetAdapter()
{
return null;
}
/**
* Creates a new adapter for the default case.
*
* This default implementation returns null.
*
* @return the new adapter.
* @generated
*/
public Adapter createEObjectAdapter()
{
return null;
}
} //GameAdapterFactory