Class ComposeFileSwitch<T>


  • public class ComposeFileSwitch<T>
    extends 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:
    ComposeFilePackage
    Generated class or method.
    • Field Detail

      • modelPackage

        protected static ComposeFilePackage modelPackage
        The cached model package
        Generated class or method.
    • Constructor Detail

      • ComposeFileSwitch

        public ComposeFileSwitch()
        Creates an instance of the switch.
        Generated class or method.
    • Method Detail

      • isSwitchFor

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

        protected T doSwitch​(int classifierID,
                             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 Switch<T>
        Returns:
        the first non-null result returned by a caseXXX call.
        Generated class or method.
      • caseDockerCompose

        public T caseDockerCompose​(DockerCompose object)
        Returns the result of interpreting the object as an instance of 'Docker Compose'. 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 'Docker Compose'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseService

        public T caseService​(Service object)
        Returns the result of interpreting the object as an instance of 'Service'. 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 'Service'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBuild

        public T caseBuild​(Build object)
        Returns the result of interpreting the object as an instance of 'Build'. 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 'Build'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseBuildLongSyntax

        public T caseBuildLongSyntax​(BuildLongSyntax object)
        Returns the result of interpreting the object as an instance of 'Build Long Syntax'. 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 'Build Long Syntax'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseDeployConfigs

        public T caseDeployConfigs​(DeployConfigs object)
        Returns the result of interpreting the object as an instance of 'Deploy Configs'. 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 'Deploy Configs'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseDeployConfigsLongSyntax

        public T caseDeployConfigsLongSyntax​(DeployConfigsLongSyntax object)
        Returns the result of interpreting the object as an instance of 'Deploy Configs Long Syntax'. 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 'Deploy Configs Long Syntax'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseCredentialSpec

        public T caseCredentialSpec​(CredentialSpec object)
        Returns the result of interpreting the object as an instance of 'Credential Spec'. 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 'Credential Spec'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseDeploy

        public T caseDeploy​(Deploy object)
        Returns the result of interpreting the object as an instance of 'Deploy'. 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 'Deploy'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePlacement

        public T casePlacement​(Placement object)
        Returns the result of interpreting the object as an instance of 'Placement'. 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 'Placement'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseRestartPolicy

        public T caseRestartPolicy​(RestartPolicy object)
        Returns the result of interpreting the object as an instance of 'Restart Policy'. 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 'Restart Policy'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseConfig

        public T caseConfig​(Config object)
        Returns the result of interpreting the object as an instance of 'Config'. 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 'Config'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseHealthcheck

        public T caseHealthcheck​(Healthcheck object)
        Returns the result of interpreting the object as an instance of 'Healthcheck'. 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 'Healthcheck'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseLogging

        public T caseLogging​(Logging object)
        Returns the result of interpreting the object as an instance of 'Logging'. 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 'Logging'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePorts

        public T casePorts​(Ports object)
        Returns the result of interpreting the object as an instance of 'Ports'. 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 'Ports'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • casePortLongSyntax

        public T casePortLongSyntax​(PortLongSyntax object)
        Returns the result of interpreting the object as an instance of 'Port Long Syntax'. 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 'Port Long Syntax'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseServiceSecrets

        public T caseServiceSecrets​(ServiceSecrets object)
        Returns the result of interpreting the object as an instance of 'Service Secrets'. 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 'Service Secrets'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseServiceSecretsLongSyntax

        public T caseServiceSecretsLongSyntax​(ServiceSecretsLongSyntax object)
        Returns the result of interpreting the object as an instance of 'Service Secrets Long Syntax'. 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 'Service Secrets Long Syntax'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseUlimits

        public T caseUlimits​(Ulimits object)
        Returns the result of interpreting the object as an instance of 'Ulimits'. 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 'Ulimits'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseServiceVolumes

        public T caseServiceVolumes​(ServiceVolumes object)
        Returns the result of interpreting the object as an instance of 'Service Volumes'. 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 'Service Volumes'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseServiceVolumeLongSyntax

        public T caseServiceVolumeLongSyntax​(ServiceVolumeLongSyntax object)
        Returns the result of interpreting the object as an instance of 'Service Volume Long Syntax'. 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 'Service Volume Long Syntax'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseVolumes

        public T caseVolumes​(Volumes object)
        Returns the result of interpreting the object as an instance of 'Volumes'. 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 'Volumes'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseNetworks

        public T caseNetworks​(Networks object)
        Returns the result of interpreting the object as an instance of 'Networks'. 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 'Networks'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseIpam

        public T caseIpam​(Ipam object)
        Returns the result of interpreting the object as an instance of 'Ipam'. 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 'Ipam'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseConfigs

        public T caseConfigs​(Configs object)
        Returns the result of interpreting the object as an instance of 'Configs'. 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 'Configs'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseSecrets

        public T caseSecrets​(Secrets object)
        Returns the result of interpreting the object as an instance of 'Secrets'. 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 'Secrets'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseValueOrList

        public T caseValueOrList​(ValueOrList object)
        Returns the result of interpreting the object as an instance of 'Value Or List'. 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 'Value Or List'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseListOrMapping

        public T caseListOrMapping​(ListOrMapping object)
        Returns the result of interpreting the object as an instance of 'List Or Mapping'. 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 'List Or Mapping'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseList

        public T caseList​(List object)
        Returns the result of interpreting the object as an instance of 'List'. 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 'List'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMapping

        public T caseMapping​(Mapping object)
        Returns the result of interpreting the object as an instance of 'Mapping'. 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 'Mapping'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMappingWithPrefixAndColon

        public T caseMappingWithPrefixAndColon​(MappingWithPrefixAndColon object)
        Returns the result of interpreting the object as an instance of 'Mapping With Prefix And Colon'. 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 'Mapping With Prefix And Colon'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMappingWithoutPrefixAndColon

        public T caseMappingWithoutPrefixAndColon​(MappingWithoutPrefixAndColon object)
        Returns the result of interpreting the object as an instance of 'Mapping Without Prefix And Colon'. 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 'Mapping Without Prefix And Colon'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMappingWithPrefixAndEqual

        public T caseMappingWithPrefixAndEqual​(MappingWithPrefixAndEqual object)
        Returns the result of interpreting the object as an instance of 'Mapping With Prefix And 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 'Mapping With Prefix And Equal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • caseMappingWithoutPrefixAndEqual

        public T caseMappingWithoutPrefixAndEqual​(MappingWithoutPrefixAndEqual object)
        Returns the result of interpreting the object as an instance of 'Mapping Without Prefix And 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 'Mapping Without Prefix And Equal'.
        See Also:
        doSwitch(EObject)
        Generated class or method.
      • 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.
        Overrides:
        defaultCase in 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.