Package fr.gouv.vitam.common.i18n
Class VitamErrorMessages
- java.lang.Object
-
- fr.gouv.vitam.common.i18n.VitamErrorMessages
-
public class VitamErrorMessages extends java.lang.ObjectVitam 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.LocaleDEFAULT_LOCALEDefault 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.StringgetFromKey(java.lang.String key)Retrieve value of the message keystatic java.lang.StringgetFromKey(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
-
-