Class TextStyleNode

java.lang.Object
com.aquima.interactions.composer.model.TextElement
com.aquima.interactions.composer.model.TextStyleNode
All Implemented Interfaces:
ICompositeTextNode, Serializable

public class TextStyleNode extends TextElement implements ICompositeTextNode
This class adds a presentation style to all the child nodes of this element.
Since:
6.0
Author:
O. Kerpershoek
See Also:
  • Constructor Details

    • TextStyleNode

      public TextStyleNode(PresentationStyle style)
      this constructor is public to allow test case access.
      Parameters:
      style - Presentation style of this node.
  • Method Details

    • getStyle

      public PresentationStyle getStyle()
      This method returns the style that should be applied to the child element.
      Returns:
      the style that should be applied to the child element.
    • addNode

      public void addNode(TextElement element, String languageCode)
      Description copied from interface: ICompositeTextNode
      This method will add the text element to the composite node for a specific language.
      Specified by:
      addNode in interface ICompositeTextNode
      Parameters:
      element - The text element that needs to be added.
      languageCode - The language code for which the element is added.
    • getNodes

      public TextElement[] getNodes(String languageCode)
      This method returns all the text elements from this style element.
      Parameters:
      languageCode - The language code to get the nodes for.
      Returns:
      Array containing all the text elements from this style element.
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in class TextElement
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in class TextElement