public interface ParameterValues
Modifier and Type | Method and Description |
---|---|
int |
getId()
Get the ID of the job or configuration the parameters
comes from.
|
Object |
getValue(String name)
Get a single value for a specific parameter.
|
List<?> |
getValues(String name)
Get a
List of values for a specific parameter. |
<T> void |
setValue(String name,
ParameterType<T> type,
T value)
Set a single value for a parameter.
|
<T> void |
setValues(String name,
ParameterType<T> type,
List<T> values)
Set a list of values for a parameter.
|
int getId()
Object getValue(String name) throws PermissionDeniedException, BaseException
getValues(String)
to return
all values as a list.name
- the name of the parameterPermissionDeniedException
- If the logged in user doesn't
have permission to read the valueBaseException
- If there is another errorList<?> getValues(String name) throws PermissionDeniedException, BaseException
List
of values for a specific parameter.name
- The name of the parameterPermissionDeniedException
- If the logged in user doesn't
have permission to read the valuesBaseException
- If there is another error<T> void setValue(String name, ParameterType<T> type, T value) throws PermissionDeniedException, InvalidDataException, BaseException
name
- The name of the parametertype
- The type of the valuevalue
- The value to be setPermissionDeniedException
- If the logged in user doesn't
have write permissionInvalidDataException
- If the value is invalid according
to the settings in the typeBaseException
- If there is another error<T> void setValues(String name, ParameterType<T> type, List<T> values) throws PermissionDeniedException, InvalidDataException, BaseException
name
- The name of the parametertype
- The type of the valuevalues
- A list containing the valuesPermissionDeniedException
- If the logged in user doesn't
have write permissionInvalidDataException
- If any of the values is invalid according
to the settings in the typeBaseException
- If there is another error