public class ChoiceParameterDefinition extends SimpleParameterDefinition
| Modifier and Type | Class and Description |
|---|---|
static class |
ChoiceParameterDefinition.DescriptorImpl |
ParameterDefinition.ParameterDescriptorExtensionPoint.LegacyInstancesAreScopedToHudson| Modifier and Type | Field and Description |
|---|---|
static String |
CHOICES_DELIMETER
Deprecated.
|
static String |
CHOICES_DELIMITER |
LIST| Constructor and Description |
|---|
ChoiceParameterDefinition(String name,
String[] choices,
String description) |
ChoiceParameterDefinition(String name,
String choices,
String description) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
areValidChoices(String choices) |
ParameterDefinition |
copyWithDefaultValue(ParameterValue defaultValue)
Create a new instance of this parameter definition and use the passed
parameter value as the default value.
|
ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jo)
Create a parameter value from a form submission.
|
StringParameterValue |
createValue(String value)
Creates a
ParameterValue from the string representation. |
List<String> |
getChoices() |
String |
getChoicesText() |
StringParameterValue |
getDefaultParameterValue()
Returns default parameter value for this definition.
|
createValue, createValueall, getDescription, getDescriptor, getFormattedDescription, getName, getTypepublic static final String CHOICES_DELIMITER
@Deprecated public static final String CHOICES_DELIMETER
@DataBoundConstructor public ChoiceParameterDefinition(String name, String choices, String description)
public static boolean areValidChoices(String choices)
public ParameterDefinition copyWithDefaultValue(ParameterValue defaultValue)
ParameterDefinitioncopyWithDefaultValue in class ParameterDefinitionpublic String getChoicesText()
public StringParameterValue getDefaultParameterValue()
ParameterDefinitiongetDefaultParameterValue in class ParameterDefinitionpublic ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
ParameterDefinitionThis method is invoked when the user fills in the parameter values in the HTML form and submits it to the server.
createValue in class ParameterDefinitionpublic StringParameterValue createValue(String value)
SimpleParameterDefinitionParameterValue from the string representation.createValue in class SimpleParameterDefinitionCopyright © 2019. All rights reserved.