org.eclipse.gmt.modisco.omg.kdm.platform.util
Class PlatformSwitch<T>

java.lang.Object
  extended by org.eclipse.gmt.modisco.omg.kdm.platform.util.PlatformSwitch<T>

public class PlatformSwitch<T>
extends java.lang.Object

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
Generated:

Constructor Summary
PlatformSwitch()
          Creates an instance of the switch.
 
Method Summary
 T caseAbstractActionRelationship(AbstractActionRelationship object)
          Returns the result of interpreting the object as an instance of 'Abstract Action Relationship'.
 T caseAbstractPlatformElement(AbstractPlatformElement object)
          Returns the result of interpreting the object as an instance of 'Abstract Platform Element'.
 T caseAbstractPlatformRelationship(AbstractPlatformRelationship object)
          Returns the result of interpreting the object as an instance of 'Abstract Platform Relationship'.
 T caseBindsTo(BindsTo object)
          Returns the result of interpreting the object as an instance of 'Binds To'.
 T caseDataManager(DataManager object)
          Returns the result of interpreting the object as an instance of 'Data Manager'.
 T caseDefinedBy(DefinedBy object)
          Returns the result of interpreting the object as an instance of 'Defined By'.
 T caseDeployedComponent(DeployedComponent object)
          Returns the result of interpreting the object as an instance of 'Deployed Component'.
 T caseDeployedResource(DeployedResource object)
          Returns the result of interpreting the object as an instance of 'Deployed Resource'.
 T caseDeployedSoftwareSystem(DeployedSoftwareSystem object)
          Returns the result of interpreting the object as an instance of 'Deployed Software System'.
 T caseElement(Element object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T caseExecutionResource(ExecutionResource object)
          Returns the result of interpreting the object as an instance of 'Execution Resource'.
 T caseExternalActor(ExternalActor object)
          Returns the result of interpreting the object as an instance of 'External Actor'.
 T caseFileResource(FileResource object)
          Returns the result of interpreting the object as an instance of 'File Resource'.
 T caseKDMEntity(KDMEntity object)
          Returns the result of interpreting the object as an instance of 'KDM Entity'.
 T caseKDMFramework(KDMFramework object)
          Returns the result of interpreting the object as an instance of 'KDM Framework'.
 T caseKDMModel(KDMModel object)
          Returns the result of interpreting the object as an instance of 'KDM Model'.
 T caseKDMRelationship(KDMRelationship object)
          Returns the result of interpreting the object as an instance of 'KDM Relationship'.
 T caseLoads(Loads object)
          Returns the result of interpreting the object as an instance of 'Loads'.
 T caseLockResource(LockResource object)
          Returns the result of interpreting the object as an instance of 'Lock Resource'.
 T caseMachine(Machine object)
          Returns the result of interpreting the object as an instance of 'Machine'.
 T caseManagesResource(ManagesResource object)
          Returns the result of interpreting the object as an instance of 'Manages Resource'.
 T caseMarshalledResource(MarshalledResource object)
          Returns the result of interpreting the object as an instance of 'Marshalled Resource'.
 T caseMessagingResource(MessagingResource object)
          Returns the result of interpreting the object as an instance of 'Messaging Resource'.
 T caseModelElement(ModelElement object)
          Returns the result of interpreting the object as an instance of 'Model Element'.
 T caseNamingResource(NamingResource object)
          Returns the result of interpreting the object as an instance of 'Naming Resource'.
 T casePlatformAction(PlatformAction object)
          Returns the result of interpreting the object as an instance of 'Action'.
 T casePlatformElement(PlatformElement object)
          Returns the result of interpreting the object as an instance of 'Element'.
 T casePlatformEvent(PlatformEvent object)
          Returns the result of interpreting the object as an instance of 'Event'.
 T casePlatformModel(PlatformModel object)
          Returns the result of interpreting the object as an instance of 'Model'.
 T casePlatformRelationship(PlatformRelationship object)
          Returns the result of interpreting the object as an instance of 'Relationship'.
 T caseProcess(Process object)
          Returns the result of interpreting the object as an instance of 'Process'.
 T caseReadsResource(ReadsResource object)
          Returns the result of interpreting the object as an instance of 'Reads Resource'.
 T caseRequires(Requires object)
          Returns the result of interpreting the object as an instance of 'Requires'.
 T caseResourceType(ResourceType object)
          Returns the result of interpreting the object as an instance of 'Resource Type'.
 T caseRuntimeResource(RuntimeResource object)
          Returns the result of interpreting the object as an instance of 'Runtime Resource'.
 T caseSpawns(Spawns object)
          Returns the result of interpreting the object as an instance of 'Spawns'.
 T caseStreamResource(StreamResource object)
          Returns the result of interpreting the object as an instance of 'Stream Resource'.
 T caseThread(Thread object)
          Returns the result of interpreting the object as an instance of 'Thread'.
 T caseWritesResource(WritesResource object)
          Returns the result of interpreting the object as an instance of 'Writes Resource'.
 T defaultCase(EObject object)
          Returns the result of interpreting the object as an instance of 'EObject'.
 T doSwitch(EObject theEObject)
          Calls caseXXX for each class of the model until one returns a non null result; it yields that result.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlatformSwitch

public PlatformSwitch()
Creates an instance of the switch.

Generated:
Method Detail

doSwitch

public T doSwitch(EObject theEObject)
Calls caseXXX for each class of the model until one returns a non null result; it yields that result.

Returns:
the first non-null result returned by a caseXXX call.
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

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)
Generated:

defaultCase

public T defaultCase(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.

Parameters:
object - the target of the switch.
Returns:
the result of interpreting the object as an instance of 'EObject'.
See Also:
#doSwitch(org.eclipse.emf.ecore.EObject)
Generated: