/** */ package rba.sound.util; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; import rba.core.AbstractAllocatable; import rba.core.AbstractContent; import rba.core.Allocatable; import rba.core.AllocatableSet; import rba.core.Content; import rba.core.ContentOperator; import rba.core.ContentSet; import rba.core.ContentState; import rba.core.Expression; import rba.core.ModelElement; import rba.core.NamedElement; import rba.core.Operator; import rba.core.PackagableElement; import rba.core.RuleObject; import rba.core.SetExpression; import rba.core.SugarExpression; import rba.core.SugarExpressionBase; import rba.sound.*; /** * 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 rba.sound.RBASoundPackage * @generated */ public class RBASoundSwitch extends Switch { /** * The cached model package * * @generated */ protected static RBASoundPackage modelPackage; /** * Creates an instance of the switch. * * @generated */ public RBASoundSwitch() { if (modelPackage == null) { modelPackage = RBASoundPackage.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 RBASoundPackage.SOUND_CONTENT: { SoundContent soundContent = (SoundContent) theEObject; T result = caseSoundContent(soundContent); if (result == null) result = caseContent(soundContent); if (result == null) result = caseAbstractContent(soundContent); if (result == null) result = caseRuleObject(soundContent); if (result == null) result = casePackagableElement(soundContent); if (result == null) result = caseNamedElement(soundContent); if (result == null) result = caseModelElement(soundContent); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.SOUND_CONTENT_SET: { SoundContentSet soundContentSet = (SoundContentSet) theEObject; T result = caseSoundContentSet(soundContentSet); if (result == null) result = caseContentSet(soundContentSet); if (result == null) result = caseAbstractContent(soundContentSet); if (result == null) result = caseRuleObject(soundContentSet); if (result == null) result = casePackagableElement(soundContentSet); if (result == null) result = caseNamedElement(soundContentSet); if (result == null) result = caseModelElement(soundContentSet); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.SOUND_CONTENT_STATE: { SoundContentState soundContentState = (SoundContentState) theEObject; T result = caseSoundContentState(soundContentState); if (result == null) result = caseContentState(soundContentState); if (result == null) result = caseRuleObject(soundContentState); if (result == null) result = casePackagableElement(soundContentState); if (result == null) result = caseNamedElement(soundContentState); if (result == null) result = caseModelElement(soundContentState); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.ZONE: { Zone zone = (Zone) theEObject; T result = caseZone(zone); if (result == null) result = caseAllocatable(zone); if (result == null) result = caseAbstractAllocatable(zone); if (result == null) result = caseRuleObject(zone); if (result == null) result = casePackagableElement(zone); if (result == null) result = caseNamedElement(zone); if (result == null) result = caseModelElement(zone); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.ZONE_SET: { ZoneSet zoneSet = (ZoneSet) theEObject; T result = caseZoneSet(zoneSet); if (result == null) result = caseAllocatableSet(zoneSet); if (result == null) result = caseAbstractAllocatable(zoneSet); if (result == null) result = caseRuleObject(zoneSet); if (result == null) result = casePackagableElement(zoneSet); if (result == null) result = caseNamedElement(zoneSet); if (result == null) result = caseModelElement(zoneSet); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.SOUND_CONTENT_OPERATOR: { SoundContentOperator soundContentOperator = (SoundContentOperator) theEObject; T result = caseSoundContentOperator(soundContentOperator); if (result == null) result = caseContentOperator(soundContentOperator); if (result == null) result = caseOperator(soundContentOperator); if (result == null) result = caseExpression(soundContentOperator); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.IS_SOUNDING: { IsSounding isSounding = (IsSounding) theEObject; T result = caseIsSounding(isSounding); if (result == null) result = caseSoundContentOperator(isSounding); if (result == null) result = caseContentOperator(isSounding); if (result == null) result = caseOperator(isSounding); if (result == null) result = caseExpression(isSounding); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.ZONE_OPERATOR: { ZoneOperator zoneOperator = (ZoneOperator) theEObject; T result = caseZoneOperator(zoneOperator); if (result == null) result = caseOperator(zoneOperator); if (result == null) result = caseExpression(zoneOperator); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.IS_OUTPUTTED: { IsOutputted isOutputted = (IsOutputted) theEObject; T result = caseIsOutputted(isOutputted); if (result == null) result = caseZoneOperator(isOutputted); if (result == null) result = caseOperator(isOutputted); if (result == null) result = caseExpression(isOutputted); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.IS_MUTED: { IsMuted isMuted = (IsMuted) theEObject; T result = caseIsMuted(isMuted); if (result == null) result = caseZoneOperator(isMuted); if (result == null) result = caseOperator(isMuted); if (result == null) result = caseExpression(isMuted); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.IS_ATTENUATED: { IsAttenuated isAttenuated = (IsAttenuated) theEObject; T result = caseIsAttenuated(isAttenuated); if (result == null) result = caseZoneOperator(isAttenuated); if (result == null) result = caseOperator(isAttenuated); if (result == null) result = caseExpression(isAttenuated); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.OUTPUTTING_SOUND: { OutputtingSound outputtingSound = (OutputtingSound) theEObject; T result = caseOutputtingSound(outputtingSound); if (result == null) result = caseZoneOperator(outputtingSound); if (result == null) result = caseOperator(outputtingSound); if (result == null) result = caseExpression(outputtingSound); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.ALL_INSTANCE_OF_ZONE: { AllInstanceOfZone allInstanceOfZone = (AllInstanceOfZone) theEObject; T result = caseAllInstanceOfZone(allInstanceOfZone); if (result == null) result = caseSetExpression(allInstanceOfZone); if (result == null) result = caseExpression(allInstanceOfZone); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.ALL_INSTANCE_OF_SOUND_CONTENT: { AllInstanceOfSoundContent allInstanceOfSoundContent = (AllInstanceOfSoundContent) theEObject; T result = caseAllInstanceOfSoundContent(allInstanceOfSoundContent); if (result == null) result = caseSetExpression(allInstanceOfSoundContent); if (result == null) result = caseExpression(allInstanceOfSoundContent); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.IS_OUTPUTTED_ON: { IsOutputtedOn isOutputtedOn = (IsOutputtedOn) theEObject; T result = caseIsOutputtedOn(isOutputtedOn); if (result == null) result = caseSoundContentOperator(isOutputtedOn); if (result == null) result = caseSugarExpressionBase(isOutputtedOn); if (result == null) result = caseContentOperator(isOutputtedOn); if (result == null) result = caseSugarExpression(isOutputtedOn); if (result == null) result = caseOperator(isOutputtedOn); if (result == null) result = caseExpression(isOutputtedOn); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.IS_CHANGED_OUTPUT: { IsChangedOutput isChangedOutput = (IsChangedOutput) theEObject; T result = caseIsChangedOutput(isChangedOutput); if (result == null) result = caseZoneOperator(isChangedOutput); if (result == null) result = caseSugarExpressionBase(isChangedOutput); if (result == null) result = caseOperator(isChangedOutput); if (result == null) result = caseSugarExpression(isChangedOutput); if (result == null) result = caseExpression(isChangedOutput); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.IS_TRANSLATED_SOUND_TO: { IsTranslatedSoundTo isTranslatedSoundTo = (IsTranslatedSoundTo) theEObject; T result = caseIsTranslatedSoundTo(isTranslatedSoundTo); if (result == null) result = caseZoneOperator(isTranslatedSoundTo); if (result == null) result = caseSugarExpressionBase(isTranslatedSoundTo); if (result == null) result = caseOperator(isTranslatedSoundTo); if (result == null) result = caseSugarExpression(isTranslatedSoundTo); if (result == null) result = caseExpression(isTranslatedSoundTo); if (result == null) result = defaultCase(theEObject); return result; } case RBASoundPackage.MUTE_LOWER_PRIORITY: { MuteLowerPriority muteLowerPriority = (MuteLowerPriority) theEObject; T result = caseMuteLowerPriority(muteLowerPriority); if (result == null) result = caseOperator(muteLowerPriority); if (result == null) result = caseSugarExpressionBase(muteLowerPriority); if (result == null) result = caseExpression(muteLowerPriority); if (result == null) result = caseSugarExpression(muteLowerPriority); if (result == null) result = defaultCase(theEObject); return result; } default: return defaultCase(theEObject); } } /** * Returns the result of interpreting the object as an instance of 'Sound Content'. * 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 'Sound Content'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSoundContent(SoundContent object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Sound Content Set'. * * 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 'Sound Content Set'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSoundContentSet(SoundContentSet object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Sound Content State'. * * 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 'Sound Content State'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSoundContentState(SoundContentState object) { return null; } /** * Returns the result of interpreting the object as an instance of '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 'Zone'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseZone(Zone object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Zone Set'. * 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 'Zone Set'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseZoneSet(ZoneSet object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Sound Content Operator'. * 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 'Sound Content Operator'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSoundContentOperator(SoundContentOperator object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Is Sounding'. * 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 'Is Sounding'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIsSounding(IsSounding object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Zone Operator'. * 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 'Zone Operator'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseZoneOperator(ZoneOperator object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Is Outputted'. * 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 'Is Outputted'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIsOutputted(IsOutputted object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Is Muted'. * 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 'Is Muted'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIsMuted(IsMuted object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Is Attenuated'. * 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 'Is Attenuated'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIsAttenuated(IsAttenuated object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Outputting Sound'. * 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 'Outputting Sound'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseOutputtingSound(OutputtingSound object) { return null; } /** * Returns the result of interpreting the object as an instance of 'All Instance Of 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 'All Instance Of Zone'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseAllInstanceOfZone(AllInstanceOfZone object) { return null; } /** * Returns the result of interpreting the object as an instance of 'All Instance Of Sound Content'. 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 Instance Of Sound Content'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseAllInstanceOfSoundContent(AllInstanceOfSoundContent object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Is Outputted On'. * 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 'Is Outputted On'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIsOutputtedOn(IsOutputtedOn object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Is Changed Output'. * * 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 'Is Changed Output'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIsChangedOutput(IsChangedOutput object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Is Translated Sound To'. * 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 'Is Translated Sound To'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseIsTranslatedSoundTo(IsTranslatedSoundTo object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Mute Lower Priority'. * * 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 'Mute Lower Priority'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseMuteLowerPriority(MuteLowerPriority object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Model 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 'Model Element'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseModelElement(ModelElement object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Named 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 'Named Element'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseNamedElement(NamedElement object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Packagable 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 'Packagable Element'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePackagableElement(PackagableElement object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Rule Object'. * 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 'Rule Object'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseRuleObject(RuleObject object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Abstract Content'. * 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 'Abstract Content'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseAbstractContent(AbstractContent object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Content'. * 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'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseContent(Content object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Content Set'. * 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 Set'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseContentSet(ContentSet object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Content State'. * 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 State'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseContentState(ContentState object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Abstract Allocatable'. * * 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 'Abstract Allocatable'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseAbstractAllocatable(AbstractAllocatable object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Allocatable'. * 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 'Allocatable'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseAllocatable(Allocatable object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Allocatable Set'. * 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 'Allocatable Set'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseAllocatableSet(AllocatableSet object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Expression'. * 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 'Expression'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseExpression(Expression object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Operator'. * 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 'Operator'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseOperator(Operator object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Content Operator'. * 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 Operator'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseContentOperator(ContentOperator object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Set Expression'. * 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 'Set Expression'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSetExpression(SetExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Sugar Expression'. * 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 'Sugar Expression'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSugarExpression(SugarExpression object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Sugar Expression Base'. * * 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 'Sugar Expression Base'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSugarExpressionBase(SugarExpressionBase 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; } } // RBASoundSwitch