org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.util.ServiceCutterConfigurationDSLSwitch Maven / Gradle / Ivy
/**
* generated by Xtext 2.20.0
*/
package org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.util;
import org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.*;
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 org.contextmapper.servicecutter.dsl.serviceCutterConfigurationDSL.ServiceCutterConfigurationDSLPackage
* @generated
*/
public class ServiceCutterConfigurationDSLSwitch extends Switch
{
/**
* The cached model package
*
*
* @generated
*/
protected static ServiceCutterConfigurationDSLPackage modelPackage;
/**
* Creates an instance of the switch.
*
*
* @generated
*/
public ServiceCutterConfigurationDSLSwitch()
{
if (modelPackage == null)
{
modelPackage = ServiceCutterConfigurationDSLPackage.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 ServiceCutterConfigurationDSLPackage.SERVICE_CUTTER_USER_REPRESENTATIONS_MODEL:
{
ServiceCutterUserRepresentationsModel serviceCutterUserRepresentationsModel = (ServiceCutterUserRepresentationsModel)theEObject;
T result = caseServiceCutterUserRepresentationsModel(serviceCutterUserRepresentationsModel);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.USE_CASE:
{
UseCase useCase = (UseCase)theEObject;
T result = caseUseCase(useCase);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.COMPATIBILITIES:
{
Compatibilities compatibilities = (Compatibilities)theEObject;
T result = caseCompatibilities(compatibilities);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.CHARACTERISTIC:
{
Characteristic characteristic = (Characteristic)theEObject;
T result = caseCharacteristic(characteristic);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.AVAILABILITY_CRITICALITY:
{
AvailabilityCriticality availabilityCriticality = (AvailabilityCriticality)theEObject;
T result = caseAvailabilityCriticality(availabilityCriticality);
if (result == null) result = caseCharacteristic(availabilityCriticality);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.CONSISTENCY_CRITICALITY:
{
ConsistencyCriticality consistencyCriticality = (ConsistencyCriticality)theEObject;
T result = caseConsistencyCriticality(consistencyCriticality);
if (result == null) result = caseCharacteristic(consistencyCriticality);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.CONTENT_VOLATILITY:
{
ContentVolatility contentVolatility = (ContentVolatility)theEObject;
T result = caseContentVolatility(contentVolatility);
if (result == null) result = caseCharacteristic(contentVolatility);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.SECURITY_CRITICALITY:
{
SecurityCriticality securityCriticality = (SecurityCriticality)theEObject;
T result = caseSecurityCriticality(securityCriticality);
if (result == null) result = caseCharacteristic(securityCriticality);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.STORAGE_SIMILARITY:
{
StorageSimilarity storageSimilarity = (StorageSimilarity)theEObject;
T result = caseStorageSimilarity(storageSimilarity);
if (result == null) result = caseCharacteristic(storageSimilarity);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.STRUCTURAL_VOLATILITY:
{
StructuralVolatility structuralVolatility = (StructuralVolatility)theEObject;
T result = caseStructuralVolatility(structuralVolatility);
if (result == null) result = caseCharacteristic(structuralVolatility);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.RELATED_GROUP:
{
RelatedGroup relatedGroup = (RelatedGroup)theEObject;
T result = caseRelatedGroup(relatedGroup);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.AGGREGATE:
{
Aggregate aggregate = (Aggregate)theEObject;
T result = caseAggregate(aggregate);
if (result == null) result = caseRelatedGroup(aggregate);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.ENTITY:
{
Entity entity = (Entity)theEObject;
T result = caseEntity(entity);
if (result == null) result = caseRelatedGroup(entity);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.PREDEFINED_SERVICE:
{
PredefinedService predefinedService = (PredefinedService)theEObject;
T result = casePredefinedService(predefinedService);
if (result == null) result = caseRelatedGroup(predefinedService);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.SECURITY_ACCESS_GROUP:
{
SecurityAccessGroup securityAccessGroup = (SecurityAccessGroup)theEObject;
T result = caseSecurityAccessGroup(securityAccessGroup);
if (result == null) result = caseRelatedGroup(securityAccessGroup);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.SEPARATED_SECURITY_ZONE:
{
SeparatedSecurityZone separatedSecurityZone = (SeparatedSecurityZone)theEObject;
T result = caseSeparatedSecurityZone(separatedSecurityZone);
if (result == null) result = caseRelatedGroup(separatedSecurityZone);
if (result == null) result = defaultCase(theEObject);
return result;
}
case ServiceCutterConfigurationDSLPackage.SHARED_OWNER_GROUP:
{
SharedOwnerGroup sharedOwnerGroup = (SharedOwnerGroup)theEObject;
T result = caseSharedOwnerGroup(sharedOwnerGroup);
if (result == null) result = caseRelatedGroup(sharedOwnerGroup);
if (result == null) result = defaultCase(theEObject);
return result;
}
default: return defaultCase(theEObject);
}
}
/**
* Returns the result of interpreting the object as an instance of 'Service Cutter User Representations Model'.
*
* 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 'Service Cutter User Representations Model'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseServiceCutterUserRepresentationsModel(ServiceCutterUserRepresentationsModel object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Use Case'.
*
* 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 'Use Case'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseUseCase(UseCase object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Compatibilities'.
*
* 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 'Compatibilities'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCompatibilities(Compatibilities object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Characteristic'.
*
* 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 'Characteristic'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseCharacteristic(Characteristic object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Availability Criticality'.
*
* 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 'Availability Criticality'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAvailabilityCriticality(AvailabilityCriticality object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Consistency Criticality'.
*
* 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 'Consistency Criticality'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseConsistencyCriticality(ConsistencyCriticality object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Content Volatility'.
*
* 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 'Content Volatility'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseContentVolatility(ContentVolatility object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Security Criticality'.
*
* 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 'Security Criticality'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSecurityCriticality(SecurityCriticality object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Storage Similarity'.
*
* 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 'Storage Similarity'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseStorageSimilarity(StorageSimilarity object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Structural Volatility'.
*
* 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 'Structural Volatility'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseStructuralVolatility(StructuralVolatility object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Related Group'.
*
* 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 'Related Group'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseRelatedGroup(RelatedGroup object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Aggregate'.
*
* 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 'Aggregate'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseAggregate(Aggregate object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Entity'.
*
* 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 'Entity'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseEntity(Entity object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Predefined Service'.
*
* 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 'Predefined Service'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T casePredefinedService(PredefinedService object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Security Access Group'.
*
* 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 'Security Access Group'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSecurityAccessGroup(SecurityAccessGroup object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Separated Security Zone'.
*
* 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 'Separated Security Zone'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSeparatedSecurityZone(SeparatedSecurityZone object)
{
return null;
}
/**
* Returns the result of interpreting the object as an instance of 'Shared Owner Group'.
*
* 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 'Shared Owner Group'.
* @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject)
* @generated
*/
public T caseSharedOwnerGroup(SharedOwnerGroup 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;
}
} //ServiceCutterConfigurationDSLSwitch