Interface ParameterListProvider
-
- All Known Implementing Classes:
Event,ExecuteAction,ModifierEngine,PipRequest
public interface ParameterListProviderThe Interface ParameterListProvider.- Author:
- Fraunhofer IESE
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddParameter(Parameter<?> param)Adds a parameter.<T> voidaddParameter(String name, T value)Adds a parameter.voidclearParameters()Removes all parameters.Parameter<?>getParameterForName(String name)Gets a parameter.ParameterListgetParameters()Gets the list of all parameters.<T> TgetParameterValue(String name, Class<T> clazz)Gets a parameter value.voidremoveParameter(String name)Adds a parameter.voidsetParameters(ParameterList params)Replaces all parameters with the parameters of the provided list.
-
-
-
Method Detail
-
addParameter
void addParameter(Parameter<?> param)
Adds a parameter.- Parameters:
param- the parameter to add
-
addParameter
<T> void addParameter(String name, T value)
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
Parameter<?> getParameterForName(String name)
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
<T> T getParameterValue(String name, Class<T> clazz)
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
void removeParameter(String name)
Adds a parameter.- Parameters:
name- the name of the parameter to be deleted
-
setParameters
void setParameters(ParameterList params)
Replaces all parameters with the parameters of the provided list.- Parameters:
params- list of parameters
-
-