Interface ParameterListProvider
- All Known Implementing Classes:
Event
,ExecuteAction
,ModifierEngine
,PipRequest
public interface ParameterListProvider
The Interface ParameterListProvider.
- Author:
- Fraunhofer IESE
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(Parameter<?> param) Adds a parameter.<T> void
addParameter
(String name, T value) Adds a parameter.void
Removes all parameters.Parameter<?>
getParameterForName
(String name) Gets a parameter.Gets the list of all parameters.<T> T
getParameterValue
(String name, Class<T> clazz) Gets a parameter value.void
removeParameter
(String name) Adds a parameter.void
setParameters
(ParameterList params) Replaces all parameters with the parameters of the provided list.
-
Method Details
-
addParameter
Adds a parameter.- Parameters:
param
- the parameter to add
-
addParameter
Adds a parameter.- Type Parameters:
T
- the generic type- Parameters:
name
- the name of the parametervalue
- the value of the parameter
-
clearParameters
void clearParameters()Removes all parameters. -
getParameterForName
Gets a parameter.- Parameters:
name
- the name of the parameter- Returns:
- the parameter with the given name, or null if it does not exist
-
getParameters
ParameterList getParameters()Gets the list of all parameters.- Returns:
- the list of all parameters
-
getParameterValue
Gets a parameter value.- Type Parameters:
T
- the generic type- Parameters:
name
- the name of the parameterclazz
- the value of the parameter- Returns:
- the value of the parameter, or null if it does not exist
-
removeParameter
Adds a parameter.- Parameters:
name
- the name of the parameter to be deleted
-
setParameters
Replaces all parameters with the parameters of the provided list.- Parameters:
params
- list of parameters
-