Class DynamicText
java.lang.Object
com.aquima.interactions.rule.parser.DynamicText
- All Implemented Interfaces:
IDynamicText
This class contains a parsed multilingual TSL object.
- Since:
- 5.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionDynamicText
(ILanguage[] languages, TslText[] nodes) Constructs the dynamic text object using the languages and text nodes. -
Method Summary
Modifier and TypeMethodDescriptionexpand
(InferenceContext context) This method will expand the dynamic text using the specified context for all the languages.
-
Constructor Details
-
DynamicText
Constructs the dynamic text object using the languages and text nodes.- Parameters:
languages
- Array containing all the possible languages of the application.nodes
- Array containing the text nodes belonging to the language at the corresponding index.
-
-
Method Details
-
expand
Description copied from interface:IDynamicText
This method will expand the dynamic text using the specified context for all the languages.- Specified by:
expand
in interfaceIDynamicText
- Parameters:
context
- The context that should be used to evaluate conditions and expressions in the text.- Returns:
- A multilingual object containing expanded texts for all the languages.
- Throws:
TslExpandException
-