Package fr.gouv.vitam.common.i18n
Class VitamErrorMessages
- java.lang.Object
-
- fr.gouv.vitam.common.i18n.VitamErrorMessages
-
public class VitamErrorMessages extends java.lang.Object
Vitam Error Messages Helper for take value of the key in vitam-error-messages.properties
-
-
Field Summary
Fields Modifier and Type Field Description static java.util.Locale
DEFAULT_LOCALE
Default Locale
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.util.Map<java.lang.String,java.lang.String>
getAllMessages()
Retrieve all the messagesstatic java.lang.String
getFromKey(java.lang.String key)
Retrieve value of the message keystatic java.lang.String
getFromKey(java.lang.String key, java.lang.Object... args)
Retrieve value of the message key
-
-
-
Method Detail
-
getAllMessages
public static java.util.Map<java.lang.String,java.lang.String> getAllMessages()
Retrieve all the messages- Returns:
- map of messages
-
getFromKey
public static final java.lang.String getFromKey(java.lang.String key)
Retrieve value of the message key- Parameters:
key
- key of the message- Returns:
-
getFromKey
public static final java.lang.String getFromKey(java.lang.String key, java.lang.Object... args)
Retrieve value of the message key- Parameters:
key
- of the messageargs
- the arguments to use as MessageFormat.format(mesg, args)- Returns:
- value of the message key
-
-