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
- Author:
- Alan Harder
- See Also:
-
Nested Class Summary
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
ConstructorDescriptionBuildSelectorParameter
(String name, BuildSelector defaultSelector, String description) -
Method Summary
Modifier and TypeMethodDescriptioncreateValue
(String value) createValue
(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo) static BuildSelector
getSelectorFromXml
(String xml) Convert xml fragment into a BuildSelector object.static void
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 Details
-
BuildSelectorParameter
@DataBoundConstructor public BuildSelectorParameter(String name, BuildSelector defaultSelector, String description)
-
-
Method Details
-
getDefaultSelector
-
getDefaultParameterValue
- Overrides:
getDefaultParameterValue
in classParameterDefinition
-
createValue
- 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
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
-