public class RunSelectorParameter
extends hudson.model.SimpleParameterDefinition
Modifier and Type | Class and Description |
---|---|
static class |
RunSelectorParameter.DescriptorImpl |
Constructor and Description |
---|
RunSelectorParameter(String name,
RunSelector defaultSelector,
String description) |
Modifier and Type | Method and Description |
---|---|
hudson.model.ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest req,
net.sf.json.JSONObject jo) |
hudson.model.ParameterValue |
createValue(String value) |
hudson.model.ParameterValue |
getDefaultParameterValue() |
RunSelector |
getDefaultSelector() |
static RunSelector |
getSelectorFromXml(String xml)
Convert xml fragment into a RunSelector object.
|
static void |
initAliases() |
@DataBoundConstructor public RunSelectorParameter(String name, RunSelector defaultSelector, String description)
public RunSelector getDefaultSelector()
public hudson.model.ParameterValue getDefaultParameterValue()
getDefaultParameterValue
in class hudson.model.ParameterDefinition
public hudson.model.ParameterValue createValue(String value)
createValue
in class hudson.model.SimpleParameterDefinition
public hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
createValue
in class hudson.model.ParameterDefinition
public static RunSelector getSelectorFromXml(String xml)
xml
- XML fragment to parse.com.thoughtworks.xstream.XStreamException
- if the object cannot be deserializedClassCastException
- if input is invalid@Initializer(after=PLUGINS_STARTED) public static void initAliases()
Copyright © 2016–2020. All rights reserved.