/**
* generated by Xtext 2.10.0
*/
package hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.util;
import hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.*;
import org.eclipse.emf.ecore.EObject;
import org.eclipse.emf.ecore.EPackage;
import org.eclipse.emf.ecore.util.Switch;
/**
*
* The Switch for the model's inheritance hierarchy.
* It supports the call {@link #doSwitch(EObject) doSwitch(object)}
* to invoke the caseXXX
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.
*
* @see hu.bme.mit.inf.dslreasoner.application.applicationConfiguration.ApplicationConfigurationPackage
* @generated
*/
public class ApplicationConfigurationSwitch extends Switch
{
/**
* The cached model package
*
*
* @generated
*/
protected static ApplicationConfigurationPackage modelPackage;
/**
* Creates an instance of the switch.
*
*
* @generated
*/
public ApplicationConfigurationSwitch()
{
if (modelPackage == null)
{
modelPackage = ApplicationConfigurationPackage.eINSTANCE;
}
}
/**
* Checks whether this is a switch for the given package.
*
*
* @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 caseXXX
for each class of the model until one returns a non null result; it yields that result.
*
*
* @return the first non-null result returned by a caseXXX
call.
* @generated
*/
@Override
protected T doSwitch(int classifierID, EObject theEObject)
{
switch (classifierID)
{
case ApplicationConfigurationPackage.CONFIGURATION_SCRIPT:
{
ConfigurationScript configurationScript = (ConfigurationScript)theEObject;
T result = caseConfigurationScript(configurationScript);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.COMMAND:
{
Command command = (Command)theEObject;
T result = caseCommand(command);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.DECLARATION:
{
Declaration declaration = (Declaration)theEObject;
T result = caseDeclaration(declaration);
if (result == null) result = caseCommand(declaration);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.IMPORT:
{
Import import_ = (Import)theEObject;
T result = caseImport(import_);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.EPACKAGE_IMPORT:
{
EPackageImport ePackageImport = (EPackageImport)theEObject;
T result = caseEPackageImport(ePackageImport);
if (result == null) result = caseImport(ePackageImport);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.VIATRA_IMPORT:
{
ViatraImport viatraImport = (ViatraImport)theEObject;
T result = caseViatraImport(viatraImport);
if (result == null) result = caseImport(viatraImport);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.METAMODEL_SPECIFICATION:
{
MetamodelSpecification metamodelSpecification = (MetamodelSpecification)theEObject;
T result = caseMetamodelSpecification(metamodelSpecification);
if (result == null) result = caseMetamodel(metamodelSpecification);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.METAMODEL_ENTRY:
{
MetamodelEntry metamodelEntry = (MetamodelEntry)theEObject;
T result = caseMetamodelEntry(metamodelEntry);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.ALL_PACKAGE_ENTRY:
{
AllPackageEntry allPackageEntry = (AllPackageEntry)theEObject;
T result = caseAllPackageEntry(allPackageEntry);
if (result == null) result = caseMetamodelEntry(allPackageEntry);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.METAMODEL_ELEMENT:
{
MetamodelElement metamodelElement = (MetamodelElement)theEObject;
T result = caseMetamodelElement(metamodelElement);
if (result == null) result = caseMetamodelEntry(metamodelElement);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.METAMODEL_DECLARATION:
{
MetamodelDeclaration metamodelDeclaration = (MetamodelDeclaration)theEObject;
T result = caseMetamodelDeclaration(metamodelDeclaration);
if (result == null) result = caseDeclaration(metamodelDeclaration);
if (result == null) result = caseCommand(metamodelDeclaration);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.METAMODEL_REFERENCE:
{
MetamodelReference metamodelReference = (MetamodelReference)theEObject;
T result = caseMetamodelReference(metamodelReference);
if (result == null) result = caseMetamodel(metamodelReference);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ApplicationConfigurationPackage.METAMODEL:
{
Metamodel metamodel = (Metamodel)theEObject;
T result = caseMetamodel(metamodel);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of 'Configuration Script'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Configuration Script'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConfigurationScript(ConfigurationScript object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Command'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Command'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCommand(Command object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Declaration'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Declaration'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseDeclaration(Declaration object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Import'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Import'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseImport(Import object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'EPackage Import'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'EPackage Import'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEPackageImport(EPackageImport object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Viatra Import'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Viatra Import'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseViatraImport(ViatraImport object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Metamodel Specification'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Metamodel Specification'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMetamodelSpecification(MetamodelSpecification object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Metamodel Entry'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Metamodel Entry'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMetamodelEntry(MetamodelEntry object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'All Package Entry'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'All Package Entry'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAllPackageEntry(AllPackageEntry object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Metamodel Element'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Metamodel Element'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMetamodelElement(MetamodelElement object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Metamodel Declaration'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Metamodel Declaration'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMetamodelDeclaration(MetamodelDeclaration object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Metamodel Reference'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Metamodel Reference'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMetamodelReference(MetamodelReference object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Metamodel'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'Metamodel'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseMetamodel(Metamodel object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'EObject'.
*
* This implementation returns null;
* returning a non-null result will terminate the switch, but this is the last case anyway.
*
* @param object the target of the switch.
* @return the result of interpreting the object as an instance of 'EObject'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject)
* @generated
*/
@Override
public T defaultCase(EObject object)
{
return null;
}
} //ApplicationConfigurationSwitch