java.lang.Object
com.aquima.interactions.composer.model.definition.ElementDefinition
com.aquima.interactions.composer.model.definition.TextDefinition
All Implemented Interfaces:
IElementDefinition, Serializable

public class TextDefinition extends ElementDefinition
This class holds the definition of a single text element.
Since:
6.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • TextDefinition

      protected TextDefinition(IParserFactory parser, ITextDS datasource)
      Constructs a text definition from data source.
      Parameters:
      parser - The expression parser that should be used to parse expressions.
      datasource - The data source providing the text information.
      Throws:
      InitializationException - This exception is thrown when the definition could not be initialized due to a fatal error.
    • TextDefinition

      protected TextDefinition(TextDefinition other)
  • Method Details

    • isEmpty

      protected boolean isEmpty()
    • getContent

      public TextRootDefinition getContent(ILanguage language)
      This method returns the root text node for the specified language.
      Parameters:
      language - The language for which the content is requested.
      Returns:
      The root text node for the specified language.
    • getContent

      public TextRootDefinition getContent(String languageCode)
      This method returns the root text node for the specified language.
      Parameters:
      languageCode - The language code for which the content is requested.
      Returns:
      The root text node for the specified language.
    • addContent

      protected boolean addContent(String languageCode, TextRootDefinition rootNode)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getType

      public ElementType getType()
      Description copied from interface: IElementDefinition
      This method returns the type of the element.
      Returns:
      The type of the element the definition represents.