Class TextStyleNode
java.lang.Object
com.aquima.interactions.composer.model.TextElement
com.aquima.interactions.composer.model.TextStyleNode
- All Implemented Interfaces:
ICompositeTextNode
,Serializable
This class adds a presentation style to all the child nodes of this element.
- Since:
- 6.0
- Author:
- O. Kerpershoek
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTextStyleNode
(PresentationStyle style) this constructor is public to allow test case access. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNode
(TextElement element, String languageCode) This method will add the text element to the composite node for a specific language.boolean
This method returns all the text elements from this style element.getStyle()
This method returns the style that should be applied to the child element.int
hashCode()
-
Constructor Details
-
TextStyleNode
this constructor is public to allow test case access.- Parameters:
style
- Presentation style of this node.
-
-
Method Details
-
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
Description copied from interface:ICompositeTextNode
This method will add the text element to the composite node for a specific language.- Specified by:
addNode
in interfaceICompositeTextNode
- Parameters:
element
- The text element that needs to be added.languageCode
- The language code for which the element is added.
-
getNodes
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
- Specified by:
equals
in classTextElement
-
hashCode
public int hashCode()- Specified by:
hashCode
in classTextElement
-