hudson.model
Class ChoiceParameterDefinition
java.lang.Object
hudson.model.ParameterDefinition
hudson.model.SimpleParameterDefinition
hudson.model.ChoiceParameterDefinition
- All Implemented Interfaces:
- ExtensionPoint, Describable<ParameterDefinition>, Serializable
public class ChoiceParameterDefinition
- extends SimpleParameterDefinition
- Author:
- huybrechts
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ChoiceParameterDefinition
@DataBoundConstructor
public ChoiceParameterDefinition(String name,
String choices,
String description)
ChoiceParameterDefinition
public ChoiceParameterDefinition(String name,
String[] choices,
String description)
copyWithDefaultValue
public ParameterDefinition copyWithDefaultValue(ParameterValue defaultValue)
- Description copied from class:
ParameterDefinition
- Create a new instance of this parameter definition and use the passed
parameter value as the default value.
- Overrides:
copyWithDefaultValue
in class ParameterDefinition
getChoices
@Exported
public List<String> getChoices()
getChoicesText
public String getChoicesText()
getDefaultParameterValue
public StringParameterValue getDefaultParameterValue()
- Description copied from class:
ParameterDefinition
- Returns default parameter value for this definition.
- Overrides:
getDefaultParameterValue
in class ParameterDefinition
- Returns:
- default parameter value or null if no defaults are available
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jo)
- Description copied from class:
ParameterDefinition
- Create a parameter value from a form submission.
This method is invoked when the user fills in the parameter values in the HTML form
and submits it to the server.
- Specified by:
createValue
in class ParameterDefinition
createValue
public StringParameterValue createValue(String value)
- Description copied from class:
SimpleParameterDefinition
- Creates a
ParameterValue
from the string representation.
- Specified by:
createValue
in class SimpleParameterDefinition
Copyright © 2004-2013. All Rights Reserved.