com.gem.persistentparameter
Class PersistentChoiceParameterDefinition

java.lang.Object
  extended by hudson.model.ParameterDefinition
      extended by hudson.model.SimpleParameterDefinition
          extended by com.gem.persistentparameter.PersistentChoiceParameterDefinition
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.ParameterDefinition>, Serializable

public class PersistentChoiceParameterDefinition
extends hudson.model.SimpleParameterDefinition

Author:
huybrechts
See Also:
Serialized Form

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

Field Detail

CHOICES_DELIMETER

public static final String CHOICES_DELIMETER
See Also:
Constant Field Values
Constructor Detail

PersistentChoiceParameterDefinition

@DataBoundConstructor
public PersistentChoiceParameterDefinition(String name,
                                                                String choices,
                                                                boolean successfulOnly,
                                                                String description)
Method Detail

areValidChoices

public static boolean areValidChoices(String choices)

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()

isSuccessfulOnly

public boolean isSuccessfulOnly()

getDefaultParameterValue

public hudson.model.StringParameterValue 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 hudson.model.StringParameterValue createValue(String value)
Specified by:
createValue in class hudson.model.SimpleParameterDefinition


Copyright © 2004-2015. All Rights Reserved.