Class Language


  • public final class Language
    extends java.lang.Object

    Class that manages the access to the properties files used for generating messages in the platform.

    Project:

    Library for the integration with the services of @Firma, eVisor and TS@.

    Version:
    1.1, 18/04/2022.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.Locale LOCALE_EN_US
      Constant attribute that represents the locale en_US.
      static java.util.Locale LOCALE_ES_ES
      Constant attribute that represents the locale es_ES.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getFormatResSigReport​(java.lang.String key, java.lang.Object[] values)
      Method that gets the bundle message for certain key and values indicated as input parameters.
      static java.lang.String getResSigReport​(java.lang.String key)
      Method that gets the bundle message for certain key.
      static void reloadMessagesConfiguration()
      Method that loads the configured locale and reload the text messages.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • LOCALE_ES_ES

        public static final java.util.Locale LOCALE_ES_ES
        Constant attribute that represents the locale es_ES.
      • LOCALE_EN_US

        public static final java.util.Locale LOCALE_EN_US
        Constant attribute that represents the locale en_US.
    • Method Detail

      • reloadMessagesConfiguration

        public static void reloadMessagesConfiguration()
        Method that loads the configured locale and reload the text messages.
      • getResSigReport

        public static java.lang.String getResSigReport​(java.lang.String key)
        Method that gets the bundle message for certain key.
        Parameters:
        key - Parameter that represents the key for obtain the message.
        Returns:
        The bundle message of the persistence module for certain key.
      • getFormatResSigReport

        public static java.lang.String getFormatResSigReport​(java.lang.String key,
                                                             java.lang.Object[] values)
        Method that gets the bundle message for certain key and values indicated as input parameters.
        Parameters:
        key - Parameter that represents the key for obtain the message.
        values - Parameter that represents the list of values for insert in the message.
        Returns:
        the bundle message for certain key and values indicated as input parameters.