Class TextContentVisitor
java.lang.Object
com.aquima.interactions.composer.model.definition.TextContentVisitor
- All Implemented Interfaces:
ITextContentVisitor
This visitor is used during initialization to add the text content for each language to a text element.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
TextContentVisitor
(String contentName, IParserFactory parser, TextDefinition textDefinition) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addContent
(String languageCode, ITextNodeDS datasource) This method should be used to add the text content for a specific language.
-
Constructor Details
-
TextContentVisitor
protected TextContentVisitor(String contentName, IParserFactory parser, TextDefinition textDefinition)
-
-
Method Details
-
addContent
Description copied from interface:ITextContentVisitor
This method should be used to add the text content for a specific language. For each language, only a single content data source may be added.- Specified by:
addContent
in interfaceITextContentVisitor
- Parameters:
languageCode
- The code of the language for which the content is added.datasource
- The data source providing the content.- Throws:
InitializationException
- This exception is thrown when the definition could not be initialized due to a fatal error.
-