Class PlatformSwitch<T>

java.lang.Object
org.eclipse.emf.ecore.util.Switch<T>
org.eclipse.gmt.modisco.omg.kdm.platform.util.PlatformSwitch<T>

public class PlatformSwitch<T>
extends org.eclipse.emf.ecore.util.Switch<T>
The Switch for the model's inheritance hierarchy. It supports the call 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 Also:
PlatformPackage
  • Field Details

    • modelPackage

      protected static PlatformPackage modelPackage
      The cached model package
  • Constructor Details

    • PlatformSwitch

      public PlatformSwitch()
      Creates an instance of the switch.
  • Method Details

    • isSwitchFor

      protected boolean isSwitchFor​(org.eclipse.emf.ecore.EPackage ePackage)
      Checks whether this is a switch for the given package.
      Specified by:
      isSwitchFor in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      ePackage - the package in question.
      Returns:
      whether this is a switch for the given package.
    • doSwitch

      protected T doSwitch​(int classifierID, org.eclipse.emf.ecore.EObject theEObject)
      Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
      Overrides:
      doSwitch in class org.eclipse.emf.ecore.util.Switch<T>
      Returns:
      the first non-null result returned by a caseXXX call.
    • caseAbstractPlatformElement

      public T caseAbstractPlatformElement​(AbstractPlatformElement object)
      Returns the result of interpreting the object as an instance of 'Abstract Platform Element'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Platform Element'.
      See Also:
      doSwitch(EObject)
    • casePlatformModel

      public T casePlatformModel​(PlatformModel object)
      Returns the result of interpreting the object as an instance of 'Model'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Model'.
      See Also:
      doSwitch(EObject)
    • caseAbstractPlatformRelationship

      public T caseAbstractPlatformRelationship​(AbstractPlatformRelationship object)
      Returns the result of interpreting the object as an instance of 'Abstract Platform Relationship'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Platform Relationship'.
      See Also:
      doSwitch(EObject)
    • caseRequires

      public T caseRequires​(Requires object)
      Returns the result of interpreting the object as an instance of 'Requires'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Requires'.
      See Also:
      doSwitch(EObject)
    • caseResourceType

      public T caseResourceType​(ResourceType object)
      Returns the result of interpreting the object as an instance of 'Resource Type'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Resource Type'.
      See Also:
      doSwitch(EObject)
    • caseNamingResource

      public T caseNamingResource​(NamingResource object)
      Returns the result of interpreting the object as an instance of 'Naming Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Naming Resource'.
      See Also:
      doSwitch(EObject)
    • caseMarshalledResource

      public T caseMarshalledResource​(MarshalledResource object)
      Returns the result of interpreting the object as an instance of 'Marshalled Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Marshalled Resource'.
      See Also:
      doSwitch(EObject)
    • caseMessagingResource

      public T caseMessagingResource​(MessagingResource object)
      Returns the result of interpreting the object as an instance of 'Messaging Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Messaging Resource'.
      See Also:
      doSwitch(EObject)
    • caseFileResource

      public T caseFileResource​(FileResource object)
      Returns the result of interpreting the object as an instance of 'File Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'File Resource'.
      See Also:
      doSwitch(EObject)
    • caseExecutionResource

      public T caseExecutionResource​(ExecutionResource object)
      Returns the result of interpreting the object as an instance of 'Execution Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Execution Resource'.
      See Also:
      doSwitch(EObject)
    • casePlatformAction

      public T casePlatformAction​(PlatformAction object)
      Returns the result of interpreting the object as an instance of 'Action'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Action'.
      See Also:
      doSwitch(EObject)
    • caseExternalActor

      public T caseExternalActor​(ExternalActor object)
      Returns the result of interpreting the object as an instance of 'External Actor'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'External Actor'.
      See Also:
      doSwitch(EObject)
    • caseDataManager

      public T caseDataManager​(DataManager object)
      Returns the result of interpreting the object as an instance of 'Data Manager'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Data Manager'.
      See Also:
      doSwitch(EObject)
    • caseBindsTo

      public T caseBindsTo​(BindsTo object)
      Returns the result of interpreting the object as an instance of 'Binds To'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Binds To'.
      See Also:
      doSwitch(EObject)
    • casePlatformElement

      public T casePlatformElement​(PlatformElement object)
      Returns the result of interpreting the object as an instance of 'Element'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Element'.
      See Also:
      doSwitch(EObject)
    • casePlatformRelationship

      public T casePlatformRelationship​(PlatformRelationship object)
      Returns the result of interpreting the object as an instance of 'Relationship'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Relationship'.
      See Also:
      doSwitch(EObject)
    • casePlatformEvent

      public T casePlatformEvent​(PlatformEvent object)
      Returns the result of interpreting the object as an instance of 'Event'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Event'.
      See Also:
      doSwitch(EObject)
    • caseLockResource

      public T caseLockResource​(LockResource object)
      Returns the result of interpreting the object as an instance of 'Lock Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Lock Resource'.
      See Also:
      doSwitch(EObject)
    • caseDeployedSoftwareSystem

      public T caseDeployedSoftwareSystem​(DeployedSoftwareSystem object)
      Returns the result of interpreting the object as an instance of 'Deployed Software System'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Deployed Software System'.
      See Also:
      doSwitch(EObject)
    • caseMachine

      public T caseMachine​(Machine object)
      Returns the result of interpreting the object as an instance of 'Machine'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Machine'.
      See Also:
      doSwitch(EObject)
    • caseDeployedComponent

      public T caseDeployedComponent​(DeployedComponent object)
      Returns the result of interpreting the object as an instance of 'Deployed Component'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Deployed Component'.
      See Also:
      doSwitch(EObject)
    • caseDeployedResource

      public T caseDeployedResource​(DeployedResource object)
      Returns the result of interpreting the object as an instance of 'Deployed Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Deployed Resource'.
      See Also:
      doSwitch(EObject)
    • caseLoads

      public T caseLoads​(Loads object)
      Returns the result of interpreting the object as an instance of 'Loads'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Loads'.
      See Also:
      doSwitch(EObject)
    • caseSpawns

      public T caseSpawns​(Spawns object)
      Returns the result of interpreting the object as an instance of 'Spawns'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Spawns'.
      See Also:
      doSwitch(EObject)
    • caseRuntimeResource

      public T caseRuntimeResource​(RuntimeResource object)
      Returns the result of interpreting the object as an instance of 'Runtime Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Runtime Resource'.
      See Also:
      doSwitch(EObject)
    • caseThread

      public T caseThread​(Thread object)
      Returns the result of interpreting the object as an instance of 'Thread'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Thread'.
      See Also:
      doSwitch(EObject)
    • caseProcess

      public T caseProcess​(Process object)
      Returns the result of interpreting the object as an instance of 'Process'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Process'.
      See Also:
      doSwitch(EObject)
    • caseReadsResource

      public T caseReadsResource​(ReadsResource object)
      Returns the result of interpreting the object as an instance of 'Reads Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Reads Resource'.
      See Also:
      doSwitch(EObject)
    • caseWritesResource

      public T caseWritesResource​(WritesResource object)
      Returns the result of interpreting the object as an instance of 'Writes Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Writes Resource'.
      See Also:
      doSwitch(EObject)
    • caseManagesResource

      public T caseManagesResource​(ManagesResource object)
      Returns the result of interpreting the object as an instance of 'Manages Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Manages Resource'.
      See Also:
      doSwitch(EObject)
    • caseDefinedBy

      public T caseDefinedBy​(DefinedBy object)
      Returns the result of interpreting the object as an instance of 'Defined By'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Defined By'.
      See Also:
      doSwitch(EObject)
    • caseStreamResource

      public T caseStreamResource​(StreamResource object)
      Returns the result of interpreting the object as an instance of 'Stream Resource'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Stream Resource'.
      See Also:
      doSwitch(EObject)
    • caseElement

      public T caseElement​(Element object)
      Returns the result of interpreting the object as an instance of 'Element'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Element'.
      See Also:
      doSwitch(EObject)
    • caseModelElement

      public T caseModelElement​(ModelElement object)
      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.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Model Element'.
      See Also:
      doSwitch(EObject)
    • caseKDMEntity

      public T caseKDMEntity​(KDMEntity object)
      Returns the result of interpreting the object as an instance of 'KDM Entity'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'KDM Entity'.
      See Also:
      doSwitch(EObject)
    • caseKDMFramework

      public T caseKDMFramework​(KDMFramework object)
      Returns the result of interpreting the object as an instance of 'KDM Framework'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'KDM Framework'.
      See Also:
      doSwitch(EObject)
    • caseKDMModel

      public T caseKDMModel​(KDMModel object)
      Returns the result of interpreting the object as an instance of 'KDM Model'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'KDM Model'.
      See Also:
      doSwitch(EObject)
    • caseKDMRelationship

      public T caseKDMRelationship​(KDMRelationship object)
      Returns the result of interpreting the object as an instance of 'KDM Relationship'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'KDM Relationship'.
      See Also:
      doSwitch(EObject)
    • caseAbstractActionRelationship

      public T caseAbstractActionRelationship​(AbstractActionRelationship object)
      Returns the result of interpreting the object as an instance of 'Abstract Action Relationship'. This implementation returns null; returning a non-null result will terminate the switch.
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'Abstract Action Relationship'.
      See Also:
      doSwitch(EObject)
    • defaultCase

      public T defaultCase​(org.eclipse.emf.ecore.EObject object)
      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.
      Overrides:
      defaultCase in class org.eclipse.emf.ecore.util.Switch<T>
      Parameters:
      object - the target of the switch.
      Returns:
      the result of interpreting the object as an instance of 'EObject'.
      See Also:
      Switch.doSwitch(org.eclipse.emf.ecore.EObject)