public class MultiselectParameterDefinition
extends hudson.model.ParameterDefinition
| Modifier and Type | Class and Description |
|---|---|
static class |
MultiselectParameterDefinition.DescriptorImpl |
| Constructor and Description |
|---|
MultiselectParameterDefinition(String name,
String description,
MultiselectDecisionTree decisionTree,
MultiselectConfigurationFormat format)
Create new parameter definition object.
|
| Modifier and Type | Method and Description |
|---|---|
static Queue<Integer> |
createCoordinates(Integer... coordinates)
Create coordinates queue from integer array.
|
MultiselectParameterValue |
createValue(Map<String,Object> jsonObject)
Extracted method reduced to use of Map instead of JSONObject for unit tests.
|
hudson.model.ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest staplerRequest) |
hudson.model.ParameterValue |
createValue(org.kohsuke.stapler.StaplerRequest staplerRequest,
net.sf.json.JSONObject jsonObject) |
MultiselectDecisionTree |
getDecisionTree()
Get decision tree object containing all possible variable combinations.
|
hudson.model.ParameterValue |
getDefaultParameterValue() |
MultiselectConfigurationFormat |
getFormat()
Get content/parser format.
|
String[] |
getItemList(Integer[] coordinates)
Get item list for AJAX call from config.jelly.
|
String |
getUuid()
Get UUID to be used to distinguish JavaScript values for multiple parameters from each other.
|
void |
setDecisionTree(MultiselectDecisionTree decisionTree)
Set decision tree object containing all possible variable combinations.
|
void |
setFormat(MultiselectConfigurationFormat format)
Set content/parser format.
|
@DataBoundConstructor public MultiselectParameterDefinition(String name, String description, MultiselectDecisionTree decisionTree, MultiselectConfigurationFormat format)
name - parameter namedescription - parameter descriptiondecisionTree - parsed parameter definitionformat - format, currently only CSV@JavaScriptMethod public String[] getItemList(Integer[] coordinates)
coordinates - coordinates in tree, i.e. item indices from columnspublic static Queue<Integer> createCoordinates(Integer... coordinates)
coordinates - integer array@Nullable public hudson.model.ParameterValue getDefaultParameterValue()
getDefaultParameterValue in class hudson.model.ParameterDefinitionpublic hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest staplerRequest,
net.sf.json.JSONObject jsonObject)
createValue in class hudson.model.ParameterDefinitionpublic MultiselectParameterValue createValue(Map<String,Object> jsonObject)
jsonObject - map of parsed json contentspublic hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest staplerRequest)
createValue in class hudson.model.ParameterDefinitionpublic MultiselectDecisionTree getDecisionTree()
public void setDecisionTree(MultiselectDecisionTree decisionTree)
decisionTree - decision tree object containing all possible variable combinationspublic MultiselectConfigurationFormat getFormat()
public void setFormat(MultiselectConfigurationFormat format)
format - content/parser formatpublic String getUuid()
Copyright © 2016–2022. All rights reserved.