Class LanguageDelegateDS

java.lang.Object
com.aquima.interactions.foundation.report.ReportingDelegateDS
com.aquima.interactions.project.ds.delegate.LanguageDelegateDS
All Implemented Interfaces:
IReportingDS, ILanguageDS
Direct Known Subclasses:
ConfigLanguageDS, ConfigLanguageDS

public class LanguageDelegateDS extends ReportingDelegateDS implements ILanguageDS
Delegate datasource for easy datasource extension. All method calls are delegated to the delegate datasource without adding any functionality.
Since:
8.0
Author:
Jon van Leuven
  • Constructor Details

    • LanguageDelegateDS

      public LanguageDelegateDS(ILanguageDS datasource)
  • Method Details

    • getCode

      public String getCode()
      Description copied from interface: ILanguageDS
      Returns the (unique) code of the language, which can be in the form of a language-country code specification. The country code specification is optional which renders a "en-GB" as a valid locale code. If one requires a specific language and country combination en-GB can be used.

      The language code comes from iso-639 table

      The country code comes from iso-3166 table

      Specified by:
      getCode in interface ILanguageDS
      Returns:
      The code string, which should never be null
    • getFormatName

      public String getFormatName(DataType type)
      Description copied from interface: ILanguageDS
      This method should return the name of the value format that should be used to convert values of the specified type for this language.
      Specified by:
      getFormatName in interface ILanguageDS
      Parameters:
      type - The type of the values for which the format name is requested.
      Returns:
      The name of the value format that should be used.
    • getName

      public String getName()
      Description copied from interface: ILanguageDS
      Returns a (unique) name for the specified language.
      Specified by:
      getName in interface ILanguageDS
      Returns:
      A name which should be unique for the application and never be null or zero-length.