Package es.gob.afirma.tsl.i18n
Class Language
- java.lang.Object
-
- es.gob.afirma.tsl.i18n.Language
-
public final class Language extends java.lang.ObjectClass 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.2, 18/04/2022.
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.LocaleLOCALE_EN_USConstant attribute that represents the locale en_US.static java.util.LocaleLOCALE_ES_ESConstant attribute that represents the locale es_ES.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringgetFormatResIntegra(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.StringgetFormatResIntegraTsl(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.StringgetResIntegra(java.lang.String key)Method that gets the bundle message for certain key.static java.lang.StringgetResIntegraTsl(java.lang.String key)Method that gets the bundle message for certain key.static voidreloadMessagesConfiguration()Method that loads the configured locale and reload the text messages.
-
-
-
Method Detail
-
reloadMessagesConfiguration
public static void reloadMessagesConfiguration()
Method that loads the configured locale and reload the text messages.
-
getResIntegra
public static java.lang.String getResIntegra(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.
-
getFormatResIntegra
public static java.lang.String getFormatResIntegra(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.
-
getResIntegraTsl
public static java.lang.String getResIntegraTsl(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.
-
getFormatResIntegraTsl
public static java.lang.String getFormatResIntegraTsl(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.
-
-