java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.TextTemplate

public class TextTemplate extends AbstractReportingTemplate
This template class can be used to initialize a text definition.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • TextTemplate

      public TextTemplate(ProjectTemplate modelTemplate, String name)
      Constructs the template with the required parameters.
      Parameters:
      modelTemplate - The meta model to retrieve the default language.
      name - The name of the text object.
    • TextTemplate

      protected TextTemplate(ProjectTemplate modelTemplate, String name, com.aquima.interactions.foundation.report.IInitializationReport report)
  • Method Details

    • getName

      protected String getName()
    • addContent

      public TextNodeTemplate addContent(com.aquima.interactions.foundation.text.ILanguage language)
      This method can be used to add content for the specified language.
      Parameters:
      language - The language for which the content should be added.
      Returns:
      Text node that can be used to add the actual content to.
    • addContent

      public TextNodeTemplate addContent(String languageCode)
      This method can be used to add content for the specified language.
      Parameters:
      languageCode - The language for which the content should be added.
      Returns:
      Text node that can be used to add the actual content to.
      Since:
      8.4
    • addContent

      public TextNodeTemplate addContent()
      This method can be used to add content for the default language.
      Returns:
      Text node that can be used to add the actual content to.
    • getContents

      protected Map<String,TextNodeTemplate> getContents()
    • toDataSource

      public com.aquima.interactions.composer.ds.ITextDS toDataSource()
      This method converts the template to a data source that can be used to initialize a text object.
      Returns:
      a data source that can be used to initialize a text object.