Class Profile.ParameterValues

    • Constructor Detail

      • ParameterValues

        public ParameterValues()
    • Method Detail

      • parameter

        public final Profile.ParameterValues parameter​(String name,
                                                       Object... values)
        Adds the value(s) to the parameter associated to provided variable name.
        Parameters:
        name - Profile parameter variable name
        values - Objects which string representation will be used as parameter value(s)
        Returns:
        this Profile.ParameterValues to continue setting parameter values
      • getValues

        public final List<String> getValues​(Profile.Parameter<?,​?> parameter)
        Description copied from interface: Profile.ParameterValuesProvider
        Returns the values set for the provided profile parameter.

        This method will be called during the profile's parameters.groovy script execution

        If provided parameter has not been flagged as being multivalued, the returned list will contain only one element.

        Specified by:
        getValues in interface Profile.ParameterValuesProvider
        Parameters:
        parameter - The parameter from which the value(s) should be resolved
        Returns:
        A list of string representing the values set in command line arguments for the provided profile Profile.Parameter, or an empty list if parameter default value should be used.