org.jenkinsci.plugins.jobgenerator.parameters
Class GeneratorChoiceParameterDefinition

java.lang.Object
  extended by hudson.model.ParameterDefinition
      extended by hudson.model.SimpleParameterDefinition
          extended by org.jenkinsci.plugins.jobgenerator.parameters.GeneratorChoiceParameterDefinition
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.ParameterDefinition>, Serializable

public class GeneratorChoiceParameterDefinition
extends hudson.model.SimpleParameterDefinition

Choice for predefined Generator Parameter.

Author:
Sylvain Benner, Original code from huybrechts
See Also:
Serialized Form

Nested Class Summary
static class GeneratorChoiceParameterDefinition.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
GeneratorChoiceParameterDefinition(String name, String[] choices, String description)
           
GeneratorChoiceParameterDefinition(String name, String choices, String description)
           
 
Method Summary
 hudson.model.ParameterDefinition copyWithDefaultValue(hudson.model.ParameterValue defaultValue)
           
 hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
           
 GeneratorKeyValueParameterValue createValue(String value)
           
 List<String> getChoices()
           
 String getChoicesText()
           
 GeneratorKeyValueParameterValue getDefaultParameterValue()
           
 
Methods inherited from class hudson.model.SimpleParameterDefinition
createValue, createValue
 
Methods inherited from class hudson.model.ParameterDefinition
all, getDescription, getDescriptor, getName, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratorChoiceParameterDefinition

@DataBoundConstructor
public GeneratorChoiceParameterDefinition(String name,
                                                               String choices,
                                                               String description)

GeneratorChoiceParameterDefinition

public GeneratorChoiceParameterDefinition(String name,
                                          String[] choices,
                                          String description)
Method Detail

copyWithDefaultValue

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

getChoices

@Exported
public List<String> getChoices()

getChoicesText

public String getChoicesText()

getDefaultParameterValue

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

createValue

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

createValue

public GeneratorKeyValueParameterValue createValue(String value)
Specified by:
createValue in class hudson.model.SimpleParameterDefinition


Copyright © 2004-2012. All Rights Reserved.