Class ExpressionEngineTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.rules.ExpressionEngineTemplate
This template class allows for defining expression templates (re-usable expressions) and creating a data source for
it.
- Since:
- 6.0
- Author:
- F. van der Meer
-
Constructor Summary
ConstructorsModifierConstructorDescriptionConstucts a template with a new initialization report.protected
ExpressionEngineTemplate
(com.aquima.interactions.foundation.report.IInitializationReport report) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExpressionTemplate
(String name, String expression) Registers an expression template with the specified name and expression.com.aquima.interactions.rule.ds.IExpressionEngineDS
Creates a data source for this expression engine template.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
ExpressionEngineTemplate
public ExpressionEngineTemplate()Constucts a template with a new initialization report. -
ExpressionEngineTemplate
protected ExpressionEngineTemplate(com.aquima.interactions.foundation.report.IInitializationReport report)
-
-
Method Details
-
addExpressionTemplate
Registers an expression template with the specified name and expression.- Parameters:
name
- The name of the expression template.expression
- The expression which is the body of the expression template name
-
toDataSource
public com.aquima.interactions.rule.ds.IExpressionEngineDS toDataSource()Creates a data source for this expression engine template. This data source can be used to initialise an expression parser.- Returns:
- The data source required for creating a expression parser.
-
getExpressionEngineTemplates
-