/** */ package net.certware.intent.state.stateSpecification.util; import net.certware.intent.state.stateSpecification.*; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; /** * <!-- begin-user-doc --> * The <b>Switch</b> for the model's inheritance hierarchy. * It supports the call {@link #doSwitch(EObject) doSwitch(object)} * to invoke the <code>caseXXX</code> 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. * <!-- end-user-doc --> * @see net.certware.intent.state.stateSpecification.StateSpecificationPackage * @generated */ public class StateSpecificationSwitch<T> extends Switch<T> { /** * The cached model package * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ protected static StateSpecificationPackage modelPackage; /** * Creates an instance of the switch. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @generated */ public StateSpecificationSwitch() { if (modelPackage == null) { modelPackage = StateSpecificationPackage.eINSTANCE; } } /** * Checks whether this is a switch for the given package. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @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 <code>caseXXX</code> for each class of the model until one returns a non null result; it yields that result. * <!-- begin-user-doc --> * <!-- end-user-doc --> * @return the first non-null result returned by a <code>caseXXX</code> call. * @generated */ @Override protected T doSwitch(int classifierID, EObject theEObject) { switch (classifierID) { case StateSpecificationPackage.SPECIFICATION: { Specification specification = (Specification)theEObject; T result = caseSpecification(specification); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.MODE_ELEMENT_TYPE: { ModeElementType modeElementType = (ModeElementType)theEObject; T result = caseModeElementType(modeElementType); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.COMPONENT: { Component component = (Component)theEObject; T result = caseComponent(component); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.MODE_ELEMENT: { ModeElement modeElement = (ModeElement)theEObject; T result = caseModeElement(modeElement); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.STATE_ELEMENT: { StateElement stateElement = (StateElement)theEObject; T result = caseStateElement(stateElement); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.STATE_VARIABLE: { StateVariable stateVariable = (StateVariable)theEObject; T result = caseStateVariable(stateVariable); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.STATE: { State state = (State)theEObject; T result = caseState(state); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.MODE_VARIABLE: { ModeVariable modeVariable = (ModeVariable)theEObject; T result = caseModeVariable(modeVariable); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.MODE: { Mode mode = (Mode)theEObject; T result = caseMode(mode); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.DEVICE: { Device device = (Device)theEObject; T result = caseDevice(device); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.DEVICE_INPUT: { DeviceInput deviceInput = (DeviceInput)theEObject; T result = caseDeviceInput(deviceInput); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.DEVICE_OUTPUT: { DeviceOutput deviceOutput = (DeviceOutput)theEObject; T result = caseDeviceOutput(deviceOutput); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.COMPONENT_INPUT: { ComponentInput componentInput = (ComponentInput)theEObject; T result = caseComponentInput(componentInput); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.COMPONENT_OUTPUT: { ComponentOutput componentOutput = (ComponentOutput)theEObject; T result = caseComponentOutput(componentOutput); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.BIG_UNIT_VALUE: { BigUnitValue bigUnitValue = (BigUnitValue)theEObject; T result = caseBigUnitValue(bigUnitValue); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.STATE_VALUE: { StateValue stateValue = (StateValue)theEObject; T result = caseStateValue(stateValue); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.STATE_LIST: { StateList stateList = (StateList)theEObject; T result = caseStateList(stateList); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.TRIGGER: { Trigger trigger = (Trigger)theEObject; T result = caseTrigger(trigger); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.TRIGGER_TABLE: { TriggerTable triggerTable = (TriggerTable)theEObject; T result = caseTriggerTable(triggerTable); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.VALUE_RANGE: { ValueRange valueRange = (ValueRange)theEObject; T result = caseValueRange(valueRange); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.VALUE_LIST: { ValueList valueList = (ValueList)theEObject; T result = caseValueList(valueList); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.OUTPUT: { Output output = (Output)theEObject; T result = caseOutput(output); if (result == null) result = defaultCase(theEObject); return result; } case StateSpecificationPackage.INPUT: { Input input = (Input)theEObject; T result = caseInput(input); if (result == null) result = defaultCase(theEObject); return result; } default: return defaultCase(theEObject); } } /** * Returns the result of interpreting the object as an instance of '<em>Specification</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Specification</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSpecification(Specification object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Mode Element Type</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Mode Element Type</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseModeElementType(ModeElementType object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Component</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Component</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseComponent(Component object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Mode Element</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Mode Element</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseModeElement(ModeElement object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>State Element</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>State Element</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseStateElement(StateElement object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>State Variable</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>State Variable</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseStateVariable(StateVariable object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>State</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>State</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseState(State object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Mode Variable</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Mode Variable</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseModeVariable(ModeVariable object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Mode</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Mode</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseMode(Mode object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Device</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Device</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseDevice(Device object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Device Input</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Device Input</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseDeviceInput(DeviceInput object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Device Output</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Device Output</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseDeviceOutput(DeviceOutput object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Component Input</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Component Input</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseComponentInput(ComponentInput object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Component Output</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Component Output</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseComponentOutput(ComponentOutput object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Big Unit Value</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Big Unit Value</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseBigUnitValue(BigUnitValue object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>State Value</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>State Value</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseStateValue(StateValue object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>State List</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>State List</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseStateList(StateList object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Trigger</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Trigger</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseTrigger(Trigger object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Trigger Table</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Trigger Table</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseTriggerTable(TriggerTable object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Value Range</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Value Range</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseValueRange(ValueRange object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Value List</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Value List</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseValueList(ValueList object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Output</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Output</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseOutput(Output object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>Input</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>Input</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseInput(Input object) { return null; } /** * Returns the result of interpreting the object as an instance of '<em>EObject</em>'. * <!-- begin-user-doc --> * This implementation returns null; * returning a non-null result will terminate the switch, but this is the last case anyway. * <!-- end-user-doc --> * @param object the target of the switch. * @return the result of interpreting the object as an instance of '<em>EObject</em>'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) * @generated */ @Override public T defaultCase(EObject object) { return null; } } //StateSpecificationSwitch