Class TextTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.composer.TextTemplate
This template class can be used to initialize a text definition.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsModifierConstructorDescriptionTextTemplate
(ProjectTemplate modelTemplate, String name) Constructs the template with the required parameters.protected
TextTemplate
(ProjectTemplate modelTemplate, String name, com.aquima.interactions.foundation.report.IInitializationReport report) -
Method Summary
Modifier and TypeMethodDescriptionThis method can be used to add content for the default language.addContent
(com.aquima.interactions.foundation.text.ILanguage language) This method can be used to add content for the specified language.addContent
(String languageCode) This method can be used to add content for the specified language.protected Map
<String, TextNodeTemplate> protected String
getName()
com.aquima.interactions.composer.ds.ITextDS
This method converts the template to a data source that can be used to initialize a text object.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
TextTemplate
Constructs the template with the required parameters.- Parameters:
modelTemplate
- The meta model to retrieve the default language.name
- The name of the text object.
-
TextTemplate
protected TextTemplate(ProjectTemplate modelTemplate, String name, com.aquima.interactions.foundation.report.IInitializationReport report)
-
-
Method Details
-
getName
-
addContent
This method can be used to add content for the specified language.- Parameters:
language
- The language for which the content should be added.- Returns:
- Text node that can be used to add the actual content to.
-
addContent
This method can be used to add content for the specified language.- Parameters:
languageCode
- The language for which the content should be added.- Returns:
- Text node that can be used to add the actual content to.
- Since:
- 8.4
-
addContent
This method can be used to add content for the default language.- Returns:
- Text node that can be used to add the actual content to.
-
getContents
-
toDataSource
public com.aquima.interactions.composer.ds.ITextDS toDataSource()This method converts the template to a data source that can be used to initialize a text object.- Returns:
- a data source that can be used to initialize a text object.
-