Package hudson.model
Class SimpleParameterDefinition
java.lang.Object
hudson.model.ParameterDefinition
hudson.model.SimpleParameterDefinition
- All Implemented Interfaces:
- ExtensionPoint,- Describable<ParameterDefinition>,- Serializable
- Direct Known Subclasses:
- BooleanParameterDefinition,- ChoiceParameterDefinition,- PasswordParameterDefinition,- RunParameterDefinition,- StringParameterDefinition
Convenient base class for 
ParameterDefinition whose value can be represented in a context-independent single string token.- Author:
- Kohsuke Kawaguchi
- See Also:
- 
Nested Class SummaryNested classes/interfaces inherited from class hudson.model.ParameterDefinitionParameterDefinition.ParameterDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPointExtensionPoint.LegacyInstancesAreScopedToHudson
- 
Field SummaryFields inherited from class hudson.model.ParameterDefinitionLIST
- 
Constructor SummaryConstructorsModifierConstructorDescriptionprotectedprotectedSimpleParameterDefinition(String name, String description) Deprecated.
- 
Method SummaryModifier and TypeMethodDescriptionfinal ParameterValuecreateValue(CLICommand command, String value) Create a parameter value from the string given in the CLI.abstract ParameterValuecreateValue(String value) Creates aParameterValuefrom the string representation.final ParameterValuecreateValue(org.kohsuke.stapler.StaplerRequest2 req) Create a parameter value from a GET with query string.Methods inherited from class hudson.model.ParameterDefinitionall, copyWithDefaultValue, createValue, createValue, createValue, equals, getDefaultParameterValue, getDescription, getDescriptor, getFormattedDescription, getName, getType, hashCode, isValid, setDescription
- 
Constructor Details- 
SimpleParameterDefinition
- 
SimpleParameterDefinition@Deprecated protected SimpleParameterDefinition(@NonNull String name, @CheckForNull String description) Deprecated.PreferSimpleParameterDefinition(String)with aDataBoundConstructorand allowParameterDefinition.setDescription(java.lang.String)to be used as needed
 
- 
- 
Method Details- 
createValueCreates aParameterValuefrom the string representation.
- 
createValueDescription copied from class:ParameterDefinitionCreate a parameter value from a GET with query string. If no value is available in the request, it returns a default value if possible, or null.Unlike ParameterDefinition.createValue(StaplerRequest2, JSONObject), this method is intended to support the programmatic POST-ing of the build URL. This form is less expressive (as it doesn't support the tree form), but it's more scriptable.If a ParameterDefinitioncan't really support this mode of creating a value, you may just always return null.- Overrides:
- createValuein class- ParameterDefinition
 
- 
createValuepublic final ParameterValue createValue(CLICommand command, String value) throws IOException, InterruptedException Description copied from class:ParameterDefinitionCreate a parameter value from the string given in the CLI.- Overrides:
- createValuein class- ParameterDefinition
- Parameters:
- command- This is the command that got the parameter.
- Throws:
- IOException
- InterruptedException
 
 
- 
SimpleParameterDefinition(String)with aDataBoundConstructorand allowParameterDefinition.setDescription(java.lang.String)to be used as needed