Class DynamicText

java.lang.Object
com.aquima.interactions.rule.parser.DynamicText
All Implemented Interfaces:
IDynamicText

public class DynamicText extends Object implements IDynamicText
This class contains a parsed multilingual TSL object.
Since:
5.0
Author:
O. Kerpershoek
  • Constructor Details

    • DynamicText

      public DynamicText(ILanguage[] languages, TslText[] nodes)
      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

      public IMultilingualText expand(InferenceContext context)
      Description copied from interface: IDynamicText
      This method will expand the dynamic text using the specified context for all the languages.
      Specified by:
      expand in interface IDynamicText
      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.