Package es.gob.afirma.mreport.i18
Class Language
- java.lang.Object
-
- es.gob.afirma.mreport.i18.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.1, 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.StringgetFormatResSigReport(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.StringgetResSigReport(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.
-
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.
-
-