Package hudson.plugins.copyartifact
Class BuildSelectorParameter
- java.lang.Object
-
- hudson.model.ParameterDefinition
-
- hudson.model.SimpleParameterDefinition
-
- hudson.plugins.copyartifact.BuildSelectorParameter
-
- All Implemented Interfaces:
ExtensionPoint
,Describable<ParameterDefinition>
,Serializable
public class BuildSelectorParameter extends SimpleParameterDefinition
- Author:
- Alan Harder
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BuildSelectorParameter.DescriptorImpl
-
Nested classes/interfaces inherited from class hudson.model.ParameterDefinition
ParameterDefinition.ParameterDescriptor
-
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson
-
-
Field Summary
-
Fields inherited from class hudson.model.ParameterDefinition
LIST
-
-
Constructor Summary
Constructors Constructor Description BuildSelectorParameter(String name, BuildSelector defaultSelector, String description)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ParameterValue
createValue(String value)
ParameterValue
createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
ParameterValue
getDefaultParameterValue()
BuildSelector
getDefaultSelector()
static BuildSelector
getSelectorFromXml(String xml)
Convert xml fragment into a BuildSelector object.static void
initAliases()
-
Methods inherited from class hudson.model.SimpleParameterDefinition
createValue, createValue
-
Methods inherited from class hudson.model.ParameterDefinition
all, copyWithDefaultValue, equals, getDescription, getDescriptor, getFormattedDescription, getName, getType, hashCode, isValid, setDescription
-
-
-
-
Constructor Detail
-
BuildSelectorParameter
@DataBoundConstructor public BuildSelectorParameter(String name, BuildSelector defaultSelector, String description)
-
-
Method Detail
-
getDefaultSelector
public BuildSelector getDefaultSelector()
-
getDefaultParameterValue
public ParameterValue getDefaultParameterValue()
- Overrides:
getDefaultParameterValue
in classParameterDefinition
-
createValue
public ParameterValue createValue(String value)
- Specified by:
createValue
in classSimpleParameterDefinition
-
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
- Specified by:
createValue
in classParameterDefinition
-
getSelectorFromXml
public static BuildSelector getSelectorFromXml(String xml)
Convert xml fragment into a BuildSelector object.- Parameters:
xml
- XML fragment to parse.- Returns:
- the BuildSelector represented by the input XML.
- Throws:
com.thoughtworks.xstream.XStreamException
- if the object cannot be deserializedClassCastException
- if input is invalid
-
initAliases
@Initializer(after=PLUGINS_STARTED) public static void initAliases()
-
-