Class ComposeFileAdapterFactory

  • All Implemented Interfaces:
    AdapterFactory

    public class ComposeFileAdapterFactory
    extends AdapterFactoryImpl
    The Adapter Factory for the model. It provides an adapter createXXX method for each class of the model.
    See Also:
    ComposeFilePackage
    Generated class or method.
    • Field Detail

      • modelPackage

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

        protected ComposeFileSwitch<Adapter> modelSwitch
        The switch that delegates to the createXXX methods.
        Generated class or method.
    • Constructor Detail

      • ComposeFileAdapterFactory

        public ComposeFileAdapterFactory()
        Creates an instance of the adapter factory.
        Generated class or method.
    • Method Detail

      • isFactoryForType

        public boolean isFactoryForType​(Object object)
        Returns whether this factory is applicable for the type of the object. This implementation returns true if the object is either the model's package or is an instance object of the model.
        Specified by:
        isFactoryForType in interface AdapterFactory
        Overrides:
        isFactoryForType in class AdapterFactoryImpl
        Returns:
        whether this factory is applicable for the type of the object.
        Generated class or method.
      • createAdapter

        public Adapter createAdapter​(Notifier target)
        Creates an adapter for the target.
        Overrides:
        createAdapter in class AdapterFactoryImpl
        Parameters:
        target - the object to adapt.
        Returns:
        the adapter for the target.
        Generated class or method.
      • createDockerComposeAdapter

        public Adapter createDockerComposeAdapter()
        Creates a new adapter for an object of class 'Docker Compose'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        DockerCompose
        Generated class or method.
      • createServiceAdapter

        public Adapter createServiceAdapter()
        Creates a new adapter for an object of class 'Service'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Service
        Generated class or method.
      • createBuildAdapter

        public Adapter createBuildAdapter()
        Creates a new adapter for an object of class 'Build'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Build
        Generated class or method.
      • createBuildLongSyntaxAdapter

        public Adapter createBuildLongSyntaxAdapter()
        Creates a new adapter for an object of class 'Build Long Syntax'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        BuildLongSyntax
        Generated class or method.
      • createDeployConfigsAdapter

        public Adapter createDeployConfigsAdapter()
        Creates a new adapter for an object of class 'Deploy Configs'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        DeployConfigs
        Generated class or method.
      • createDeployConfigsLongSyntaxAdapter

        public Adapter createDeployConfigsLongSyntaxAdapter()
        Creates a new adapter for an object of class 'Deploy Configs Long Syntax'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        DeployConfigsLongSyntax
        Generated class or method.
      • createCredentialSpecAdapter

        public Adapter createCredentialSpecAdapter()
        Creates a new adapter for an object of class 'Credential Spec'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        CredentialSpec
        Generated class or method.
      • createDeployAdapter

        public Adapter createDeployAdapter()
        Creates a new adapter for an object of class 'Deploy'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Deploy
        Generated class or method.
      • createPlacementAdapter

        public Adapter createPlacementAdapter()
        Creates a new adapter for an object of class 'Placement'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Placement
        Generated class or method.
      • createRestartPolicyAdapter

        public Adapter createRestartPolicyAdapter()
        Creates a new adapter for an object of class 'Restart Policy'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        RestartPolicy
        Generated class or method.
      • createConfigAdapter

        public Adapter createConfigAdapter()
        Creates a new adapter for an object of class 'Config'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Config
        Generated class or method.
      • createHealthcheckAdapter

        public Adapter createHealthcheckAdapter()
        Creates a new adapter for an object of class 'Healthcheck'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Healthcheck
        Generated class or method.
      • createLoggingAdapter

        public Adapter createLoggingAdapter()
        Creates a new adapter for an object of class 'Logging'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Logging
        Generated class or method.
      • createPortsAdapter

        public Adapter createPortsAdapter()
        Creates a new adapter for an object of class 'Ports'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Ports
        Generated class or method.
      • createPortLongSyntaxAdapter

        public Adapter createPortLongSyntaxAdapter()
        Creates a new adapter for an object of class 'Port Long Syntax'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        PortLongSyntax
        Generated class or method.
      • createServiceSecretsAdapter

        public Adapter createServiceSecretsAdapter()
        Creates a new adapter for an object of class 'Service Secrets'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ServiceSecrets
        Generated class or method.
      • createServiceSecretsLongSyntaxAdapter

        public Adapter createServiceSecretsLongSyntaxAdapter()
        Creates a new adapter for an object of class 'Service Secrets Long Syntax'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ServiceSecretsLongSyntax
        Generated class or method.
      • createUlimitsAdapter

        public Adapter createUlimitsAdapter()
        Creates a new adapter for an object of class 'Ulimits'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Ulimits
        Generated class or method.
      • createServiceVolumesAdapter

        public Adapter createServiceVolumesAdapter()
        Creates a new adapter for an object of class 'Service Volumes'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ServiceVolumes
        Generated class or method.
      • createServiceVolumeLongSyntaxAdapter

        public Adapter createServiceVolumeLongSyntaxAdapter()
        Creates a new adapter for an object of class 'Service Volume Long Syntax'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ServiceVolumeLongSyntax
        Generated class or method.
      • createVolumesAdapter

        public Adapter createVolumesAdapter()
        Creates a new adapter for an object of class 'Volumes'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Volumes
        Generated class or method.
      • createNetworksAdapter

        public Adapter createNetworksAdapter()
        Creates a new adapter for an object of class 'Networks'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Networks
        Generated class or method.
      • createIpamAdapter

        public Adapter createIpamAdapter()
        Creates a new adapter for an object of class 'Ipam'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Ipam
        Generated class or method.
      • createConfigsAdapter

        public Adapter createConfigsAdapter()
        Creates a new adapter for an object of class 'Configs'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Configs
        Generated class or method.
      • createSecretsAdapter

        public Adapter createSecretsAdapter()
        Creates a new adapter for an object of class 'Secrets'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Secrets
        Generated class or method.
      • createValueOrListAdapter

        public Adapter createValueOrListAdapter()
        Creates a new adapter for an object of class 'Value Or List'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ValueOrList
        Generated class or method.
      • createListOrMappingAdapter

        public Adapter createListOrMappingAdapter()
        Creates a new adapter for an object of class 'List Or Mapping'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        ListOrMapping
        Generated class or method.
      • createListAdapter

        public Adapter createListAdapter()
        Creates a new adapter for an object of class 'List'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        List
        Generated class or method.
      • createMappingAdapter

        public Adapter createMappingAdapter()
        Creates a new adapter for an object of class 'Mapping'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        Mapping
        Generated class or method.
      • createMappingWithPrefixAndColonAdapter

        public Adapter createMappingWithPrefixAndColonAdapter()
        Creates a new adapter for an object of class 'Mapping With Prefix And Colon'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        MappingWithPrefixAndColon
        Generated class or method.
      • createMappingWithoutPrefixAndColonAdapter

        public Adapter createMappingWithoutPrefixAndColonAdapter()
        Creates a new adapter for an object of class 'Mapping Without Prefix And Colon'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        MappingWithoutPrefixAndColon
        Generated class or method.
      • createMappingWithPrefixAndEqualAdapter

        public Adapter createMappingWithPrefixAndEqualAdapter()
        Creates a new adapter for an object of class 'Mapping With Prefix And Equal'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        MappingWithPrefixAndEqual
        Generated class or method.
      • createMappingWithoutPrefixAndEqualAdapter

        public Adapter createMappingWithoutPrefixAndEqualAdapter()
        Creates a new adapter for an object of class 'Mapping Without Prefix And Equal'. This default implementation returns null so that we can easily ignore cases; it's useful to ignore a case when inheritance will catch all the cases anyway.
        Returns:
        the new adapter.
        See Also:
        MappingWithoutPrefixAndEqual
        Generated class or method.
      • createEObjectAdapter

        public Adapter createEObjectAdapter()
        Creates a new adapter for the default case. This default implementation returns null.
        Returns:
        the new adapter.
        Generated class or method.