/** */ package satellite.util; import org.eclipse.emf.ecore.EObject; import org.eclipse.emf.ecore.EPackage; import org.eclipse.emf.ecore.util.Switch; import satellite.*; /** * * 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 satellite.SatellitePackage * @generated */ public class SatelliteSwitch extends Switch { /** * The cached model package * * * @generated */ protected static SatellitePackage modelPackage; /** * Creates an instance of the switch. * * * @generated */ public SatelliteSwitch() { if (modelPackage == null) { modelPackage = SatellitePackage.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 SatellitePackage.CONSTELLATION_MISSION: { ConstellationMission constellationMission = (ConstellationMission) theEObject; T result = caseConstellationMission(constellationMission); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.INTERFEROMETRY_MISSION: { InterferometryMission interferometryMission = (InterferometryMission) theEObject; T result = caseInterferometryMission(interferometryMission); if (result == null) result = caseConstellationMission(interferometryMission); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.COMMUNICATING_ELEMENT: { CommunicatingElement communicatingElement = (CommunicatingElement) theEObject; T result = caseCommunicatingElement(communicatingElement); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.GROUND_STATION_NETWORK: { GroundStationNetwork groundStationNetwork = (GroundStationNetwork) theEObject; T result = caseGroundStationNetwork(groundStationNetwork); if (result == null) result = caseCommunicatingElement(groundStationNetwork); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.SPACECRAFT: { Spacecraft spacecraft = (Spacecraft) theEObject; T result = caseSpacecraft(spacecraft); if (result == null) result = caseCommunicatingElement(spacecraft); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.COMM_SUBSYSTEM: { CommSubsystem commSubsystem = (CommSubsystem) theEObject; T result = caseCommSubsystem(commSubsystem); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.PAYLOAD: { Payload payload = (Payload) theEObject; T result = casePayload(payload); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.INTERFEROMETRY_PAYLOAD: { InterferometryPayload interferometryPayload = (InterferometryPayload) theEObject; T result = caseInterferometryPayload(interferometryPayload); if (result == null) result = casePayload(interferometryPayload); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.CUBE_SAT3_U: { CubeSat3U cubeSat3U = (CubeSat3U) theEObject; T result = caseCubeSat3U(cubeSat3U); if (result == null) result = caseCubeSat(cubeSat3U); if (result == null) result = caseSpacecraft(cubeSat3U); if (result == null) result = caseCommunicatingElement(cubeSat3U); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.CUBE_SAT6_U: { CubeSat6U cubeSat6U = (CubeSat6U) theEObject; T result = caseCubeSat6U(cubeSat6U); if (result == null) result = caseCubeSat(cubeSat6U); if (result == null) result = caseSpacecraft(cubeSat6U); if (result == null) result = caseCommunicatingElement(cubeSat6U); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.SMALL_SAT: { SmallSat smallSat = (SmallSat) theEObject; T result = caseSmallSat(smallSat); if (result == null) result = caseSpacecraft(smallSat); if (result == null) result = caseCommunicatingElement(smallSat); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.CUBE_SAT: { CubeSat cubeSat = (CubeSat) theEObject; T result = caseCubeSat(cubeSat); if (result == null) result = caseSpacecraft(cubeSat); if (result == null) result = caseCommunicatingElement(cubeSat); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.UHF_COMM_SUBSYSTEM: { UHFCommSubsystem uhfCommSubsystem = (UHFCommSubsystem) theEObject; T result = caseUHFCommSubsystem(uhfCommSubsystem); if (result == null) result = caseCommSubsystem(uhfCommSubsystem); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.XCOMM_SUBSYSTEM: { XCommSubsystem xCommSubsystem = (XCommSubsystem) theEObject; T result = caseXCommSubsystem(xCommSubsystem); if (result == null) result = caseCommSubsystem(xCommSubsystem); if (result == null) result = defaultCase(theEObject); return result; } case SatellitePackage.KA_COMM_SUBSYSTEM: { KaCommSubsystem kaCommSubsystem = (KaCommSubsystem) theEObject; T result = caseKaCommSubsystem(kaCommSubsystem); if (result == null) result = caseCommSubsystem(kaCommSubsystem); if (result == null) result = defaultCase(theEObject); return result; } default: return defaultCase(theEObject); } } /** * Returns the result of interpreting the object as an instance of 'Constellation Mission'. * * 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 'Constellation Mission'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseConstellationMission(ConstellationMission object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Interferometry Mission'. * * 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 'Interferometry Mission'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseInterferometryMission(InterferometryMission object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Communicating 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 'Communicating Element'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseCommunicatingElement(CommunicatingElement object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Ground Station Network'. * * 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 'Ground Station Network'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseGroundStationNetwork(GroundStationNetwork object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Spacecraft'. * * 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 'Spacecraft'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSpacecraft(Spacecraft object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Comm Subsystem'. * * 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 'Comm Subsystem'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseCommSubsystem(CommSubsystem object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Payload'. * * 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 'Payload'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T casePayload(Payload object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Interferometry Payload'. * * 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 'Interferometry Payload'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseInterferometryPayload(InterferometryPayload object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Cube Sat3 U'. * * 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 'Cube Sat3 U'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseCubeSat3U(CubeSat3U object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Cube Sat6 U'. * * 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 'Cube Sat6 U'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseCubeSat6U(CubeSat6U object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Small Sat'. * * 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 'Small Sat'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseSmallSat(SmallSat object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Cube Sat'. * * 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 'Cube Sat'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseCubeSat(CubeSat object) { return null; } /** * Returns the result of interpreting the object as an instance of 'UHF Comm Subsystem'. * * 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 'UHF Comm Subsystem'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseUHFCommSubsystem(UHFCommSubsystem object) { return null; } /** * Returns the result of interpreting the object as an instance of 'XComm Subsystem'. * * 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 'XComm Subsystem'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseXCommSubsystem(XCommSubsystem object) { return null; } /** * Returns the result of interpreting the object as an instance of 'Ka Comm Subsystem'. * * 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 'Ka Comm Subsystem'. * @see #doSwitch(org.eclipse.emf.ecore.EObject) doSwitch(EObject) * @generated */ public T caseKaCommSubsystem(KaCommSubsystem 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; } } //SatelliteSwitch