Package hudson.model
Class BooleanParameterDefinition
java.lang.Object
hudson.model.ParameterDefinition
hudson.model.SimpleParameterDefinition
hudson.model.BooleanParameterDefinition
- All Implemented Interfaces:
ExtensionPoint
,Describable<ParameterDefinition>
,Serializable
ParameterDefinition
that is either 'true' or 'false'.- Author:
- huybrechts
- 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
ConstructorDescriptionBooleanParameterDefinition
(String name, boolean defaultValue, String description) -
Method Summary
Modifier and TypeMethodDescriptioncopyWithDefaultValue
(ParameterValue defaultValue) Create a new instance of this parameter definition and use the passed parameter value as the default value.createValue
(String value) Creates aParameterValue
from the string representation.createValue
(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject jo) Create a parameter value from a form submission.boolean
Returns default parameter value for this definition.int
hashCode()
boolean
void
setDefaultValue
(boolean defaultValue) Methods inherited from class hudson.model.SimpleParameterDefinition
createValue, createValue
Methods inherited from class hudson.model.ParameterDefinition
all, createValue, createValue, getDescription, getDescriptor, getFormattedDescription, getName, getType, isValid, setDescription
-
Constructor Details
-
BooleanParameterDefinition
- Since:
- 2.281
-
BooleanParameterDefinition
-
-
Method Details
-
copyWithDefaultValue
Description copied from class:ParameterDefinition
Create a new instance of this parameter definition and use the passed parameter value as the default value.- Overrides:
copyWithDefaultValue
in classParameterDefinition
-
isDefaultValue
public boolean isDefaultValue() -
setDefaultValue
@DataBoundSetter public void setDefaultValue(boolean defaultValue) - Since:
- 2.281
-
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest2 req, net.sf.json.JSONObject jo) Description copied from class:ParameterDefinition
Create a parameter value from a form submission.This method is invoked when the user fills in the parameter values in the HTML form and submits it to the server.
- Overrides:
createValue
in classParameterDefinition
-
createValue
Description copied from class:SimpleParameterDefinition
Creates aParameterValue
from the string representation.- Specified by:
createValue
in classSimpleParameterDefinition
-
getDefaultParameterValue
Description copied from class:ParameterDefinition
Returns default parameter value for this definition.- Overrides:
getDefaultParameterValue
in classParameterDefinition
- Returns:
- default parameter value or null if no defaults are available
-
hashCode
public int hashCode()- Overrides:
hashCode
in classParameterDefinition
-
equals
- Overrides:
equals
in classParameterDefinition
-