This class represents current step parameters, that are defined for current procedure step or current pipeline task. To get a StepParameters object you need to use Context.getStepParameters method from Context.
Type | Name and description |
---|---|
FWLog |
logger |
java.util.Map<java.lang.String, AbstractParameter> |
parameters |
java.util.ArrayList<java.lang.String> |
parametersList |
Constructor and description |
---|
StepParameters
() Constructor |
StepParameters
(java.util.ArrayList<java.lang.String> parametersList, java.util.Map<java.lang.String, AbstractParameter> parameters) Constructor |
StepParameters
(java.util.Map<java.lang.String, AbstractParameter> parameters) Constructor |
Type Params | Return Type | Name and description |
---|---|---|
|
void |
addParameter(AbstractParameter param, boolean replace = false) Adds new parameter to the current list |
|
void |
addParameters(java.util.ArrayList<AbstractParameter> parameters, boolean replace = false) Adds or replaces the parameters in current list |
|
java.util.ArrayList<AbstractParameter> |
getAsArrayList() |
|
java.util.Map<java.lang.String, java.lang.Object> |
getAsMap() |
|
Credential |
getCredential(java.lang.String credentialName) Get a credential from a map |
|
AbstractParameter |
getParameter(java.lang.String parameterName) Get a parameter from a map |
|
java.util.ArrayList<java.lang.String> |
getParametersList() Returns a list of the parameter keys @return |
|
Credential |
getRequiredCredential(java.lang.String credentialName) Get a credential from a map with a strict check for existence |
|
AbstractParameter |
getRequiredParameter(java.lang.String parameterName) Get a parameter from a map with a strict check for existence |
|
boolean |
isParameterExists(java.lang.String parameterName) Returns true if parameter exists in the current configuration. |
|
boolean |
isParameterHasValue(java.lang.String parameterName) Checks if parameter both exists and has non-empty value |
|
void |
merge(StepParameters otherParameters, boolean replace = false) Allows to concat to different instances of the StepParameters. |
|
java.lang.String |
toString() |
|
void |
updateOrAddParameter(AbstractParameter param) Adds or replaces the parameter in current list |
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor
Constructor
Constructor
Adds new parameter to the current list
- href='../../../com/cloudbees/flowpdf/AbstractParameter.html' title='AbstractParameter'>AbstractParameter param
replace
- if it's missing or false method will throw an exception when parameter is already presentAdds or replaces the parameters in current list
parameters
- List of AbstractParameterreplace
- existing parameters of the same name will be replacedGet a credential from a map
Get a parameter from a map
Returns a list of the parameter keys
Get a credential from a map with a strict check for existence
credentialName
- name of the credentialGet a parameter from a map with a strict check for existence
Returns true if parameter exists in the current configuration.
Checks if parameter both exists and has non-empty value
Allows to concat to different instances of the StepParameters.
otherParameters
- StepParameters instancereplace
- existing parameters of the same name will be replacedAdds or replaces the parameter in current list
param
- AbstractParameter implementationGroovy Documentation