public abstract class AbstractScriptableParameter extends AbstractUnoChoiceParameter implements ScriptableParameter<Map<Object,Object>>
| Modifier and Type | Field and Description |
|---|---|
protected Script |
script |
protected static String |
SEPARATOR |
DEFAULT_MAX_VISIBLE_ITEM_COUNT, ELEMENT_TYPE_FORMATTED_HIDDEN_HTML, ELEMENT_TYPE_FORMATTED_HTML, ELEMENT_TYPE_ORDERED_LIST, ELEMENT_TYPE_TEXT_BOX, ELEMENT_TYPE_UNORDERED_LIST, LOGGER, PARAMETER_TYPE_CHECK_BOX, PARAMETER_TYPE_MULTI_SELECT, PARAMETER_TYPE_RADIO, PARAMETER_TYPE_SINGLE_SELECT| Modifier | Constructor and Description |
|---|---|
protected |
AbstractScriptableParameter(String name,
String description,
Script script)
Inherited constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Map<Object,Object> |
getChoices() |
Map<Object,Object> |
getChoices(Map<Object,Object> parameters)
Evaluates a script and returns its result as a Map.
|
String |
getChoicesAsString() |
String |
getChoicesAsString(Map<Object,Object> parameters) |
hudson.model.ParameterValue |
getDefaultParameterValue() |
Map<Object,Object> |
getParameters()
Gets the current parameters, be it before or after other referenced parameters
triggered an update.
|
Script |
getScript()
Gets the script.
|
int |
getVisibleItemCount()
Get the number of visible items in the select.
|
all, createValue, createValue, getChoiceType, getDescriptor, getRandomNameprotected static final String SEPARATOR
protected final Script script
public Script getScript()
public Map<Object,Object> getParameters()
public Map<Object,Object> getChoices(Map<Object,Object> parameters)
ScriptableParametergetChoices in interface ScriptableParameter<Map<Object,Object>>parameters - parameterspublic String getChoicesAsString()
public hudson.model.ParameterValue getDefaultParameterValue()
getDefaultParameterValue in class hudson.model.ParameterDefinitionpublic int getVisibleItemCount()
Copyright © 2004-2015. All Rights Reserved.