Class ExpressionEngineTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.expr.ExpressionEngineTemplate

public class ExpressionEngineTemplate extends AbstractReportingTemplate
This template can be used to initialize an expression engine.
Since:
6.0
Author:
F. van der Meer
  • Constructor Details

    • ExpressionEngineTemplate

      public ExpressionEngineTemplate()
      This constructs an empty expression engine template with a default empty metamodel.
    • ExpressionEngineTemplate

      public ExpressionEngineTemplate(MetaModelTemplate metamodel)
      Constructs an expression engine template for the supplied metamodel template.
      Parameters:
      metamodel - The mandatory metamodel template argument.
  • Method Details

    • addExpressionTemplate

      public void addExpressionTemplate(String name, String expression)
      This method adds an expression template, also known as Reusable expression. The set of expression templates is added to the expression parser at construction time.
      Parameters:
      name - The unique name of the expression template which should adhere to this regular expression: [a-zA-Z_][a-zA-Z0-9_]*
      expression - The expression of the template.
    • getMetaModelTemplate

      public MetaModelTemplate getMetaModelTemplate()
      Returns the meta model template which is used by this expression engine template.
      Returns:
      The meta model template object which is never null.
    • toDefinitionSource

      public com.aquima.interactions.expressions.IDefinitionSource toDefinitionSource()
      Constructs a definition source for this expression engine template.
      Returns:
      A Definition source object which is never null.
    • toEvaluationTemplate

      public ExpressionEvaluationTemplate toEvaluationTemplate()
      Constructs a evaluation template object for this definition template. The evaluation template can be used pre-initialize variables for the runtime.
      Returns:
      An ExpressionEvaluationTemplate object which is never null.
    • toDatasource

      public com.aquima.interactions.expressions.ds.IExprDS toDatasource()
      This method returns an implementation of the IExprDS interface based on this template.
      Returns:
      an implementation of the IExprDS interface based on this template.
    • getExpressionTemplates

      protected Map<String,String> getExpressionTemplates()