Class LanguageTemplate
java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.project.LanguageTemplate
Template that can be used to construct a language object.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Constructor Summary
ConstructorsConstructorDescriptionLanguageTemplate
(com.aquima.interactions.foundation.report.InitializationReport report, String languageCode, String name) Constructs the template with the required parameters.LanguageTemplate
(String code, String name) Constructs the template with the required parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormatMapping
(com.aquima.interactions.foundation.DataType type, String formatName) This method may be used to specify the value format that should be used for a specific type.getCode()
protected String
getFormatMapping
(com.aquima.interactions.foundation.DataType type) protected String
getName()
com.aquima.interactions.project.ds.ILanguageDS
Constructs a data source based on the settings of this template.com.aquima.interactions.foundation.text.ILanguage
This method converts the template to a language object.Methods inherited from class com.aquima.interactions.test.templates.AbstractReportingTemplate
getInitializationReport
-
Constructor Details
-
LanguageTemplate
Constructs the template with the required parameters.- Parameters:
code
- The code of the language.name
- The name of the language.
-
LanguageTemplate
public LanguageTemplate(com.aquima.interactions.foundation.report.InitializationReport report, String languageCode, String name) Constructs the template with the required parameters.- Parameters:
report
- The initialization report that should be used to add errors and warnings to.languageCode
- The code of the language.name
- The name of the language.
-
-
Method Details
-
getCode
-
getName
-
addFormatMapping
This method may be used to specify the value format that should be used for a specific type. The value formats are defined in the meta-model. This template does contain mappings to the default value formats defined in the MetaModelTemplate.- Parameters:
type
- The type for which the mapping is defined.formatName
- The name of the value format that should be used for the specified type.
-
getFormatMapping
-
toLanguage
public com.aquima.interactions.foundation.text.ILanguage toLanguage()This method converts the template to a language object.- Returns:
- a language object.
-
toDataSource
public com.aquima.interactions.project.ds.ILanguageDS toDataSource()Constructs a data source based on the settings of this template.- Returns:
- The data source which is never null
-