Class StartsWithContainerValidator

  • All Implemented Interfaces:

    public class StartsWithContainerValidator
    extends Object
    implements Validator
    Validate that a container id starts with a specific value.
    • Constructor Detail

      • StartsWithContainerValidator

        public StartsWithContainerValidator​(String... containerIdPrefix)
        Saves attributes.
        containerIdPrefix - Container identifier prefix. this.containerIdPrefix = containerIdPrefix;
    • Method Detail

      • validate

        public boolean validate​(String containerId,
                                ContainerType type)
        Check if the container id starts with the passed container id prefix. Validate if a container has a given configuration.
        Specified by:
        validate in interface Validator
        containerId - Container identifier.
        type - Container type.
        true if the given container supports the current validator, false otherwise.