Package io.jenkins.plugins.restlistparam
Class RestMultiListParameterValue
java.lang.Object
hudson.model.ParameterValue
io.jenkins.plugins.restlistparam.RestMultiListParameterValue
- All Implemented Interfaces:
Serializable
ParameterValue created from RestMultiListParameterDefinition: an ordered list of
distinct strings. Pipeline receives the list itself; the build environment receives it as a
compact Json array (see MultiValueCodec.encode(List)).- See Also:
-
Field Summary
Fields inherited from class hudson.model.ParameterValue
name -
Constructor Summary
ConstructorsConstructorDescriptionRestMultiListParameterValue(String name, List<String> value) RestMultiListParameterValue(String name, List<String> value, String description) -
Method Summary
Modifier and TypeMethodDescriptionvoidbuildEnvironment(Run<?, ?> build, EnvVars env) Exposes the name/value as an environment variable holding the Json array.createVariableResolver(AbstractBuild<?, ?> build) booleangetValue()inthashCode()toString()Methods inherited from class hudson.model.ParameterValue
buildEnvVars, buildEnvVars, createBuildWrapper, getAssignedLabel, getDefinition, getDescription, getFormattedDescription, getName, isSensitive, setDescription
-
Constructor Details
-
RestMultiListParameterValue
-
RestMultiListParameterValue
- Parameters:
value- The elements in the order supplied; duplicates are collapsed, keeping the first occurrence.nullmeans the value is missing.
-
-
Method Details
-
buildEnvironment
Exposes the name/value as an environment variable holding the Json array.- Overrides:
buildEnvironmentin classParameterValue
-
createVariableResolver
- Overrides:
createVariableResolverin classParameterValue
-
getValue
- Overrides:
getValuein classParameterValue- Returns:
- The unmodifiable list of elements, or
nullwhen the value is missing
-
hashCode
public int hashCode()- Overrides:
hashCodein classParameterValue
-
equals
- Overrides:
equalsin classParameterValue
-
toString
-
getShortDescription
- Overrides:
getShortDescriptionin classParameterValue
-