Class ParametersTemplate

java.lang.Object
com.aquima.interactions.test.templates.ParametersTemplate

public class ParametersTemplate extends Object
Template class for easy parameter creation.
Since:
7.0
Author:
Jon van Leuven, A. Pragt, J. Hermus
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    addParameter(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
    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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public void setParameter(String key, String strValue)
      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

      public void setParameterValue(String key, com.aquima.interactions.foundation.IValue value)
      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

      public void setParameterExpression(String key, String expression)
      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

      public void setParameterReference(String key, String referenceName)
      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.