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 Summary
Fields Modifier and Type Field Description protected static PlatformPackagemodelPackageThe cached model package -
Constructor Summary
Constructors Constructor Description PlatformSwitch()Creates an instance of the switch. -
Method Summary
Modifier and Type Method Description TcaseAbstractActionRelationship(AbstractActionRelationship object)Returns the result of interpreting the object as an instance of 'Abstract Action Relationship'.TcaseAbstractPlatformElement(AbstractPlatformElement object)Returns the result of interpreting the object as an instance of 'Abstract Platform Element'.TcaseAbstractPlatformRelationship(AbstractPlatformRelationship object)Returns the result of interpreting the object as an instance of 'Abstract Platform Relationship'.TcaseBindsTo(BindsTo object)Returns the result of interpreting the object as an instance of 'Binds To'.TcaseDataManager(DataManager object)Returns the result of interpreting the object as an instance of 'Data Manager'.TcaseDefinedBy(DefinedBy object)Returns the result of interpreting the object as an instance of 'Defined By'.TcaseDeployedComponent(DeployedComponent object)Returns the result of interpreting the object as an instance of 'Deployed Component'.TcaseDeployedResource(DeployedResource object)Returns the result of interpreting the object as an instance of 'Deployed Resource'.TcaseDeployedSoftwareSystem(DeployedSoftwareSystem object)Returns the result of interpreting the object as an instance of 'Deployed Software System'.TcaseElement(Element object)Returns the result of interpreting the object as an instance of 'Element'.TcaseExecutionResource(ExecutionResource object)Returns the result of interpreting the object as an instance of 'Execution Resource'.TcaseExternalActor(ExternalActor object)Returns the result of interpreting the object as an instance of 'External Actor'.TcaseFileResource(FileResource object)Returns the result of interpreting the object as an instance of 'File Resource'.TcaseKDMEntity(KDMEntity object)Returns the result of interpreting the object as an instance of 'KDM Entity'.TcaseKDMFramework(KDMFramework object)Returns the result of interpreting the object as an instance of 'KDM Framework'.TcaseKDMModel(KDMModel object)Returns the result of interpreting the object as an instance of 'KDM Model'.TcaseKDMRelationship(KDMRelationship object)Returns the result of interpreting the object as an instance of 'KDM Relationship'.TcaseLoads(Loads object)Returns the result of interpreting the object as an instance of 'Loads'.TcaseLockResource(LockResource object)Returns the result of interpreting the object as an instance of 'Lock Resource'.TcaseMachine(Machine object)Returns the result of interpreting the object as an instance of 'Machine'.TcaseManagesResource(ManagesResource object)Returns the result of interpreting the object as an instance of 'Manages Resource'.TcaseMarshalledResource(MarshalledResource object)Returns the result of interpreting the object as an instance of 'Marshalled Resource'.TcaseMessagingResource(MessagingResource object)Returns the result of interpreting the object as an instance of 'Messaging Resource'.TcaseModelElement(ModelElement object)Returns the result of interpreting the object as an instance of 'Model Element'.TcaseNamingResource(NamingResource object)Returns the result of interpreting the object as an instance of 'Naming Resource'.TcasePlatformAction(PlatformAction object)Returns the result of interpreting the object as an instance of 'Action'.TcasePlatformElement(PlatformElement object)Returns the result of interpreting the object as an instance of 'Element'.TcasePlatformEvent(PlatformEvent object)Returns the result of interpreting the object as an instance of 'Event'.TcasePlatformModel(PlatformModel object)Returns the result of interpreting the object as an instance of 'Model'.TcasePlatformRelationship(PlatformRelationship object)Returns the result of interpreting the object as an instance of 'Relationship'.TcaseProcess(Process object)Returns the result of interpreting the object as an instance of 'Process'.TcaseReadsResource(ReadsResource object)Returns the result of interpreting the object as an instance of 'Reads Resource'.TcaseRequires(Requires object)Returns the result of interpreting the object as an instance of 'Requires'.TcaseResourceType(ResourceType object)Returns the result of interpreting the object as an instance of 'Resource Type'.TcaseRuntimeResource(RuntimeResource object)Returns the result of interpreting the object as an instance of 'Runtime Resource'.TcaseSpawns(Spawns object)Returns the result of interpreting the object as an instance of 'Spawns'.TcaseStreamResource(StreamResource object)Returns the result of interpreting the object as an instance of 'Stream Resource'.TcaseThread(Thread object)Returns the result of interpreting the object as an instance of 'Thread'.TcaseWritesResource(WritesResource object)Returns the result of interpreting the object as an instance of 'Writes Resource'.TdefaultCase(org.eclipse.emf.ecore.EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, org.eclipse.emf.ecore.EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(org.eclipse.emf.ecore.EPackage ePackage)Checks whether this is a switch for the given package.Methods inherited from class org.eclipse.emf.ecore.util.Switch
doSwitch, doSwitch
-
Field Details
-
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:
isSwitchForin classorg.eclipse.emf.ecore.util.Switch<T>- Parameters:
ePackage- the package in question.- Returns:
- whether this is a switch for the given package.
-
doSwitch
CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.- Overrides:
doSwitchin classorg.eclipse.emf.ecore.util.Switch<T>- Returns:
- the first non-null result returned by a
caseXXXcall.
-
caseAbstractPlatformElement
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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:
defaultCasein classorg.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)
-