Class DockerFileSwitch<T>
- java.lang.Object
- 
- org.eclipse.emf.ecore.util.Switch<T>
- 
- org.palladiosimulator.somox.docker.dockerFile.util.DockerFileSwitch<T>
 
 
- 
 public class DockerFileSwitch<T> extends Switch<T> The Switch for the model's inheritance hierarchy. It supports the calldoSwitch(object)to invoke thecaseXXXmethod 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:
- DockerFilePackage
- Generated class or method.
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected static DockerFilePackagemodelPackageThe cached model package
 - 
Constructor SummaryConstructors Constructor Description DockerFileSwitch()Creates an instance of the switch.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description TcaseAddDestination(AddDestination object)Returns the result of interpreting the object as an instance of 'Add Destination'.TcaseCmd(Cmd object)Returns the result of interpreting the object as an instance of 'Cmd'.TcaseDockerfile(Dockerfile object)Returns the result of interpreting the object as an instance of 'Dockerfile'.TcaseEntrypoint(Entrypoint object)Returns the result of interpreting the object as an instance of 'Entrypoint'.TcaseEnv(Env object)Returns the result of interpreting the object as an instance of 'Env'.TcaseEnvWithEqual(EnvWithEqual object)Returns the result of interpreting the object as an instance of 'Env With Equal'.TcaseEnvWithSpace(EnvWithSpace object)Returns the result of interpreting the object as an instance of 'Env With Space'.TcaseExpose(Expose object)Returns the result of interpreting the object as an instance of 'Expose'.TcaseFrom(From object)Returns the result of interpreting the object as an instance of 'From'.TcaseInstruction(Instruction object)Returns the result of interpreting the object as an instance of 'Instruction'.TcaseJSON_ARRAY(JSON_ARRAY object)Returns the result of interpreting the object as an instance of 'JSON ARRAY'.TcaseMaintainer(Maintainer object)Returns the result of interpreting the object as an instance of 'Maintainer'.TcaseOnbuild(Onbuild object)Returns the result of interpreting the object as an instance of 'Onbuild'.TcaseRun(Run object)Returns the result of interpreting the object as an instance of 'Run'.TcaseRunWithNoShell(RunWithNoShell object)Returns the result of interpreting the object as an instance of 'Run With No Shell'.TcaseRunWithShell(RunWithShell object)Returns the result of interpreting the object as an instance of 'Run With Shell'.TcaseUser(User object)Returns the result of interpreting the object as an instance of 'User'.TcaseVolume(Volume object)Returns the result of interpreting the object as an instance of 'Volume'.TcaseWorkdir(Workdir object)Returns the result of interpreting the object as an instance of 'Workdir'.TdefaultCase(EObject object)Returns the result of interpreting the object as an instance of 'EObject'.protected TdoSwitch(int classifierID, EObject theEObject)CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.protected booleanisSwitchFor(EPackage ePackage)Checks whether this is a switch for the given package.
 
- 
- 
- 
Field Detail- 
modelPackageprotected static DockerFilePackage modelPackage The cached model package- Generated class or method.
 
 
- 
 - 
Method Detail- 
isSwitchForprotected boolean isSwitchFor(EPackage ePackage) Checks whether this is a switch for the given package.- Specified by:
- isSwitchForin class- Switch<T>
- Parameters:
- ePackage- the package in question.
- Returns:
- whether this is a switch for the given package.
- Generated class or method.
 
 - 
doSwitchprotected T doSwitch(int classifierID, EObject theEObject) CallscaseXXXfor each class of the model until one returns a non null result; it yields that result.
 - 
caseDockerfilepublic T caseDockerfile(Dockerfile object) Returns the result of interpreting the object as an instance of 'Dockerfile'. 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 'Dockerfile'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseInstructionpublic T caseInstruction(Instruction object) Returns the result of interpreting the object as an instance of 'Instruction'. 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 'Instruction'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseCmdpublic T caseCmd(Cmd object) Returns the result of interpreting the object as an instance of 'Cmd'. 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 'Cmd'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseAddDestinationpublic T caseAddDestination(AddDestination object) Returns the result of interpreting the object as an instance of 'Add Destination'. 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 'Add Destination'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseEntrypointpublic T caseEntrypoint(Entrypoint object) Returns the result of interpreting the object as an instance of 'Entrypoint'. 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 'Entrypoint'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseVolumepublic T caseVolume(Volume object) Returns the result of interpreting the object as an instance of 'Volume'. 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 'Volume'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseUserpublic T caseUser(User object) Returns the result of interpreting the object as an instance of 'User'. 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 'User'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseOnbuildpublic T caseOnbuild(Onbuild object) Returns the result of interpreting the object as an instance of 'Onbuild'. 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 'Onbuild'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseFrompublic T caseFrom(From object) Returns the result of interpreting the object as an instance of 'From'. 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 'From'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseMaintainerpublic T caseMaintainer(Maintainer object) Returns the result of interpreting the object as an instance of 'Maintainer'. 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 'Maintainer'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseEnvpublic T caseEnv(Env object) Returns the result of interpreting the object as an instance of 'Env'. 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 'Env'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseExposepublic T caseExpose(Expose object) Returns the result of interpreting the object as an instance of 'Expose'. 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 'Expose'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseJSON_ARRAYpublic T caseJSON_ARRAY(JSON_ARRAY object) Returns the result of interpreting the object as an instance of 'JSON ARRAY'. 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 'JSON ARRAY'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseEnvWithSpacepublic T caseEnvWithSpace(EnvWithSpace object) Returns the result of interpreting the object as an instance of 'Env With Space'. 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 'Env With Space'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseEnvWithEqualpublic T caseEnvWithEqual(EnvWithEqual object) Returns the result of interpreting the object as an instance of 'Env With Equal'. 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 'Env With Equal'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseWorkdirpublic T caseWorkdir(Workdir object) Returns the result of interpreting the object as an instance of 'Workdir'. 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 'Workdir'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseRunpublic T caseRun(Run object) Returns the result of interpreting the object as an instance of 'Run'. 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 'Run'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseRunWithShellpublic T caseRunWithShell(RunWithShell object) Returns the result of interpreting the object as an instance of 'Run With Shell'. 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 'Run With Shell'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
caseRunWithNoShellpublic T caseRunWithNoShell(RunWithNoShell object) Returns the result of interpreting the object as an instance of 'Run With No Shell'. 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 'Run With No Shell'.
- See Also:
- doSwitch(EObject)
- Generated class or method.
 
 - 
defaultCasepublic 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.- Overrides:
- defaultCasein class- 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)
- Generated class or method.
 
 
- 
 
-