Class LanguageTemplate

java.lang.Object
com.aquima.interactions.test.templates.AbstractReportingTemplate
com.aquima.interactions.test.templates.project.LanguageTemplate

public class LanguageTemplate extends AbstractReportingTemplate
Template that can be used to construct a language object.
Since:
6.0
Author:
O. Kerpershoek
  • Constructor Details

    • LanguageTemplate

      public LanguageTemplate(String code, String name)
      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

      public String getCode()
    • getName

      protected String getName()
    • addFormatMapping

      public void 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. 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

      protected String getFormatMapping(com.aquima.interactions.foundation.DataType type)
    • 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