Class ParametersTemplate
java.lang.Object
com.aquima.interactions.test.templates.ParametersTemplate
Template class for easy parameter creation.
- Since:
- 7.0
- Author:
- Jon van Leuven, A. Pragt, J. Hermus
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddParameter
(String parameterName, com.aquima.interactions.project.ParameterType parameterType) addParameter
(String parameterName, com.aquima.interactions.project.ParameterType parameterType, com.aquima.interactions.project.Direction direction) void
iterateParameters
(com.aquima.interactions.portal.ds.IParameterVisitor visitor) This method iterates over all parameters and calls the visitor for every parameter.void
setParameter
(String key, String strValue) This method will set the parameter value for the specified parameter key.void
setParameter
(String key, String strValue, com.aquima.interactions.project.Direction direction) This method will set the parameter value for the specified parameter key.void
setParameterExpression
(String key, String expression) This method will set the parameter expression value for the specified parameter key.void
setParameterExpression
(String key, String expression, com.aquima.interactions.project.Direction direction) This method will set the parameter expression value for the specified parameter key.void
setParameterReference
(String key, String referenceName) This method will set an element reference name value for the specified parameter key.void
setParameterReference
(String key, String referenceName, com.aquima.interactions.project.Direction direction) This method will set an element reference name value for the specified parameter key.void
setParameterValue
(String key, com.aquima.interactions.foundation.IValue value) This method will set the parameter value for the specified parameter key.void
setParameterValue
(String key, com.aquima.interactions.foundation.IValue value, com.aquima.interactions.project.Direction direction) This method will set the parameter value for the specified parameter key.
-
Constructor Details
-
ParametersTemplate
public ParametersTemplate()
-
-
Method Details
-
addParameter
public ParameterTemplate addParameter(String parameterName, com.aquima.interactions.project.ParameterType parameterType) -
addParameter
public ParameterTemplate addParameter(String parameterName, com.aquima.interactions.project.ParameterType parameterType, com.aquima.interactions.project.Direction direction) -
setParameter
This method will set the parameter value for the specified parameter key.- Parameters:
key
- The parameter key for which the value should be set.strValue
- The value that should be set for the specified key.
-
setParameter
public void setParameter(String key, String strValue, com.aquima.interactions.project.Direction direction) This method will set the parameter value for the specified parameter key.- Parameters:
key
- The parameter key for which the value should be set.strValue
- The value that should be set for the specified key.direction
- The direction that should be set
-
setParameterValue
This method will set the parameter value for the specified parameter key.- Parameters:
key
- The parameter key for which the value should be set.value
- The value that should be set for the specified key.
-
setParameterValue
public void setParameterValue(String key, com.aquima.interactions.foundation.IValue value, com.aquima.interactions.project.Direction direction) This method will set the parameter value for the specified parameter key.- Parameters:
key
- The parameter key for which the value should be set.value
- The value that should be set for the specified key.direction
- The direction that should be set
-
setParameterExpression
This method will set the parameter expression value for the specified parameter key.- Parameters:
key
- The parameter key for which the value should be set.expression
- The expression that should be set for the specified key.
-
setParameterExpression
public void setParameterExpression(String key, String expression, com.aquima.interactions.project.Direction direction) This method will set the parameter expression value for the specified parameter key.- Parameters:
key
- The parameter key for which the value should be set.expression
- The expression that should be set for the specified key.direction
- The direction that should be set
-
setParameterReference
This method will set an element reference name value for the specified parameter key.- Parameters:
key
- The parameter key for which the value should be set.referenceName
- The reference name that should be set for the specified key.
-
setParameterReference
public void setParameterReference(String key, String referenceName, com.aquima.interactions.project.Direction direction) This method will set an element reference name value for the specified parameter key.- Parameters:
key
- The parameter key for which the value should be set.referenceName
- The reference name that should be set for the specified key.direction
- The direction that should be set
-
iterateParameters
public void iterateParameters(com.aquima.interactions.portal.ds.IParameterVisitor visitor) This method iterates over all parameters and calls the visitor for every parameter.- Parameters:
visitor
- This visitor to call for every parameter.- Throws:
com.aquima.interactions.foundation.report.InitializationException
- When the parameter could not be added to the visitor.
-