public interface ParameterListProvider
| Modifier and Type | Method and Description |
|---|---|
void |
addParameter(Parameter<?> param)
Adds a parameter.
|
<T> void |
addParameter(String name,
T value)
Adds a parameter.
|
void |
clearParameters()
Removes all parameters.
|
Parameter<?> |
getParameterForName(String name)
Gets a parameter.
|
ParameterList |
getParameters()
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.
|
void addParameter(Parameter<?> param)
param - the parameter to add<T> void addParameter(String name, T value)
T - the generic typename - the name of the parametervalue - the value of the parametervoid clearParameters()
Parameter<?> getParameterForName(String name)
name - the name of the parameterParameterList getParameters()
<T> T getParameterValue(String name, Class<T> clazz) throws ClassCastException
T - the generic typename - the name of the parameterclazz - the value of the parameterClassCastException - the class cast exceptionvoid removeParameter(String name)
name - the name of the parameter to be deletedvoid setParameters(ParameterList params)
params - list of parametersCopyright © 2018. All rights reserved.