Class MultiselectParameterDefinition
java.lang.Object
hudson.model.ParameterDefinition
de.westemeyer.plugins.multiselect.MultiselectParameterDefinition
- All Implemented Interfaces:
ExtensionPoint,Describable<ParameterDefinition>,Serializable
The Parameter definition object is responsible for all communication between Jenkins
and plugin code.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class hudson.model.ParameterDefinition
ParameterDefinition.ParameterDescriptorNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.ParameterDefinition
LIST -
Constructor Summary
ConstructorsConstructorDescriptionMultiselectParameterDefinition(String name, String description) Create new parameter definition object.MultiselectParameterDefinition(String name, String description, MultiselectDecisionTree decisionTree, MultiselectConfigurationFormat format) Create new parameter definition object. -
Method Summary
Modifier and TypeMethodDescriptioncreateCoordinates(Integer... coordinates) Create coordinates queue from integer array.createValue(Map<String, Object> jsonObject) Extracted method reduced to use of Map instead of JSONObject for unit tests.createValue(org.kohsuke.stapler.StaplerRequest staplerRequest) createValue(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject jsonObject) booleanGet decision tree object containing all possible variable combinations.Get content/parser format.String[]getItemList(Integer[] coordinates) Get item list for AJAX call from config.jelly.getUuid()Get UUID to be used to distinguish JavaScript values for multiple parameters from each other.inthashCode()voidsetDecisionTree(MultiselectDecisionTree decisionTree) Set decision tree object containing all possible variable combinations.voidSet content/parser format.voidSet unique ID value.Methods inherited from class hudson.model.ParameterDefinition
all, copyWithDefaultValue, createValue, getDescription, getDescriptor, getFormattedDescription, getName, getType, isValid, setDescription
-
Constructor Details
-
MultiselectParameterDefinition
Create new parameter definition object.- Parameters:
name- parameter namedescription- parameter description
-
MultiselectParameterDefinition
public MultiselectParameterDefinition(String name, String description, @CheckForNull MultiselectDecisionTree decisionTree, @CheckForNull MultiselectConfigurationFormat format) Create new parameter definition object.- Parameters:
name- parameter namedescription- parameter descriptiondecisionTree- parsed parameter definitionformat- format, currently only CSV
-
-
Method Details
-
getItemList
Get item list for AJAX call from config.jelly.- Parameters:
coordinates- coordinates in tree, i.e. item indices from columns- Returns:
- array of parameter values for given coordinates
-
createCoordinates
Create coordinates queue from integer array.- Parameters:
coordinates- integer array- Returns:
- queue for use in visitor method
-
getDefaultParameterValue
- Overrides:
getDefaultParameterValuein classParameterDefinition
-
createValue
public ParameterValue createValue(org.kohsuke.stapler.StaplerRequest staplerRequest, net.sf.json.JSONObject jsonObject) - Specified by:
createValuein classParameterDefinition
-
createValue
Extracted method reduced to use of Map instead of JSONObject for unit tests.- Parameters:
jsonObject- map of parsed json contents- Returns:
- parameter value
-
createValue
- Specified by:
createValuein classParameterDefinition
-
getDecisionTree
Get decision tree object containing all possible variable combinations.- Returns:
- decision tree object containing all possible variable combinations
-
setDecisionTree
Set decision tree object containing all possible variable combinations.- Parameters:
decisionTree- decision tree object containing all possible variable combinations
-
getFormat
Get content/parser format.- Returns:
- content/parser format
-
setFormat
Set content/parser format.- Parameters:
format- content/parser format
-
getUuid
Get UUID to be used to distinguish JavaScript values for multiple parameters from each other.- Returns:
- UUID to be used to distinguish JavaScript values for multiple parameters from each other
-
setUuid
Set unique ID value.- Parameters:
uuid- the new UUID to use for this object
-
equals
- Overrides:
equalsin classParameterDefinition
-
hashCode
public int hashCode()- Overrides:
hashCodein classParameterDefinition
-