Class TextNodeTemplate

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

public class TextNodeTemplate extends AbstractReportingTemplate
This template represents a text node from a text template.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • TextNodeTemplate

      protected TextNodeTemplate(com.aquima.interactions.composer.ds.TextNodeType type, String strValue, com.aquima.interactions.foundation.report.IInitializationReport report)
  • Method Details

    • getType

      protected com.aquima.interactions.composer.ds.TextNodeType getType()
    • getValue

      protected String getValue()
    • setMask

      protected void setMask(String maskCallName)
    • getMaskCallName

      protected String getMaskCallName()
    • addText

      public void addText(String text)
      This method may be used to add a sub node to the current text node.
      Parameters:
      text - The text that should be added as sub node.
    • addStyle

      public TextNodeTemplate addStyle(String name)
      This method may be used to add a style node to the text.
      Parameters:
      name - The name of the style.
      Returns:
      Template representing the text node with a style.
    • addField

      public void addField(String expression)
      This method may be used to add a field to the current text node.
      Parameters:
      expression - The expression for the field.
    • addField

      public void addField(String expression, String maskTypeName)
      This method may be used to add a field to the current text node.
      Parameters:
      expression - The expression for the field.
      maskTypeName - The mask type name for this field.
    • getChildNodes

      protected Iterator<TextNodeTemplate> getChildNodes()
    • toDataSource

      public com.aquima.interactions.composer.ds.ITextNodeDS toDataSource()
      This method converts the node template to a data source.
      Returns:
      Data source for the node template.