Constructor and Description |
---|
Parameters(List<Argument> args) |
Modifier and Type | Method and Description |
---|---|
boolean |
exists(String parameterId)
Returns true if there is known parameter with given id.
|
<T> T |
get(String parameterId)
Returns resolved value of parameter.
|
<T> T |
get(String parameterId,
Class<T> targetClass)
Returns resolved value of parameter as specified class instance.
|
ParameterDefinition<?> |
getParameter(String parameterId)
Returns component parameter with given id.
|
Argument |
getRaw(String parameterId)
Returns value of parameter compatible with parameter type.
|
Map<String,Argument> |
getRawValues() |
public boolean exists(String parameterId)
parameterId
- parameter idpublic <T> T get(String parameterId)
If parameter type is VariableType, then value of variable is returned.
If parameter type is FunctionType, then result of function call is returned.
parameterId
- Defined id of component's parameter.public <T> T get(String parameterId, Class<T> targetClass)
If parameter type is VariableType, then value of variable is returned.
If parameter type is FunctionType, then result of function call is returned.
parameterId
- Defined id of component's parameter.public Argument getRaw(String parameterId)
parameterId
- Defined id of component's parameter.public ParameterDefinition<?> getParameter(String parameterId)
parameterId
- parameter idCopyright © 2019 Suncode. All rights reserved.