hudson.plugins.copyartifact
Class BuildSelectorParameter

java.lang.Object
  extended by hudson.model.ParameterDefinition
      extended by hudson.model.SimpleParameterDefinition
          extended by hudson.plugins.copyartifact.BuildSelectorParameter
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.ParameterDefinition>, java.io.Serializable

public class BuildSelectorParameter
extends hudson.model.SimpleParameterDefinition

Build parameter to select a promotion level from the list of configured levels.

Author:
Alan Harder
See Also:
Serialized Form

Nested Class Summary
static class BuildSelectorParameter.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.model.ParameterDefinition
hudson.model.ParameterDefinition.ParameterDescriptor
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.ParameterDefinition
LIST
 
Constructor Summary
BuildSelectorParameter(java.lang.String name, BuildSelector defaultSelector, java.lang.String description)
           
 
Method Summary
 hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
           
 hudson.model.ParameterValue createValue(java.lang.String value)
           
 hudson.model.ParameterValue getDefaultParameterValue()
           
 BuildSelector getDefaultSelector()
           
static BuildSelector getSelectorFromXml(java.lang.String xml)
          Convert xml fragment into a BuildSelector object.
 
Methods inherited from class hudson.model.SimpleParameterDefinition
createValue, createValue
 
Methods inherited from class hudson.model.ParameterDefinition
all, getDescription, getDescriptor, getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BuildSelectorParameter

@DataBoundConstructor
public BuildSelectorParameter(java.lang.String name,
                                                   BuildSelector defaultSelector,
                                                   java.lang.String description)
Method Detail

getDefaultSelector

public BuildSelector getDefaultSelector()

getDefaultParameterValue

public hudson.model.ParameterValue getDefaultParameterValue()
Overrides:
getDefaultParameterValue in class hudson.model.ParameterDefinition

createValue

public hudson.model.ParameterValue createValue(java.lang.String value)
Specified by:
createValue in class hudson.model.SimpleParameterDefinition

createValue

public hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req,
                                               net.sf.json.JSONObject jo)
Specified by:
createValue in class hudson.model.ParameterDefinition

getSelectorFromXml

public static BuildSelector getSelectorFromXml(java.lang.String xml)
Convert xml fragment into a BuildSelector object.

Throws:
XStreamException - or ClassCastException if input is invalid


Copyright © 2010. All Rights Reserved.