Class Language

java.lang.Object
com.aquima.interactions.project.impl.Language
All Implemented Interfaces:
ILanguage, Serializable

public class Language extends Object implements ILanguage
This class holds the static information of a language defined in the meta model.
Since:
5.0
Author:
O. Kerpershoek, F. van der Meer
See Also:
  • Constructor Details

    • Language

      public Language(String code, String languageName, Locale locale, IValueFormatter formatter)
      Create a new Language based on a code and language name. Usually the code will be an ISO code, whereas the name contains a more readable language identification.
      For example: new Language( "nl-NL", "Dutch" )
      Parameters:
      code - The code of the language (mandatory).
      languageName - The name of the language (mandatory).
      locale - The locale for the language.
      formatter - The default value formatter used to display values for this language.
    • Language

      protected Language(ILanguage other)
  • Method Details

    • getCode

      public String getCode()
      Description copied from interface: ILanguage
      Get the standardized language internationalization code.
      Specified by:
      getCode in interface ILanguage
      Returns:
      String
    • getName

      public String getName()
      Description copied from interface: ILanguage
      Get the language name in a human readable format.
      Specified by:
      getName in interface ILanguage
      Returns:
      String
    • getDefaultFormatter

      public IValueFormatter getDefaultFormatter()
      Description copied from interface: ILanguage
      This method returns the default value formatter of this language. The formatter is used to determine the display value of primitive values and during TSL expansion when no specific format is specified.
      Specified by:
      getDefaultFormatter in interface ILanguage
      Returns:
      The default value formatter for this language.
    • getLocale

      public Locale getLocale()
      Description copied from interface: ILanguage
      This method retrieves the locale for this language.
      Specified by:
      getLocale in interface ILanguage
      Returns:
      The locale for this language.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object