Class ExpressionEngineTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.expr.ExpressionEngineTemplate
This template can be used to initialize an expression engine.
- Since:
- 6.0
- Author:
- F. van der Meer
-
Constructor Summary
ConstructorsConstructorDescriptionThis constructs an empty expression engine template with a default empty metamodel.ExpressionEngineTemplate
(MetaModelTemplate metamodel) Constructs an expression engine template for the supplied metamodel template. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpressionTemplate
(String name, String expression) This method adds an expression template, also known as Reusable expression.Returns the meta model template which is used by this expression engine template.com.aquima.interactions.expressions.ds.IExprDS
This method returns an implementation of the IExprDS interface based on this template.com.aquima.interactions.expressions.IDefinitionSource
Constructs a definition source for this expression engine template.Constructs a evaluation template object for this definition template.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ExpressionEngineTemplate
public ExpressionEngineTemplate()This constructs an empty expression engine template with a default empty metamodel. -
ExpressionEngineTemplate
Constructs an expression engine template for the supplied metamodel template.- Parameters:
metamodel
- The mandatory metamodel template argument.
-
-
Method Details
-
addExpressionTemplate
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
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
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
-