public class EDPMessages
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getMessage(java.util.List resourceBundleNames,
java.lang.String messageKey,
java.lang.Object[] parameters,
java.util.Locale locale,
java.lang.String defaultMessage)
This method returns a translated message from any resource bundle in a list.
|
static java.lang.String |
getMessage(java.lang.String messageKey)
This method returns the message from the Payment Rules resource bundle using the default JVM locale.
|
static java.lang.String |
getMessage(java.lang.String messageKey,
java.lang.Object[] parameters)
This method returns the message from the Payment Rules resource bundle using the default JVM locale.
|
static java.lang.String |
getMessage(java.lang.String messageKey,
java.lang.Object[] parameters,
java.util.Locale locale,
java.lang.String defaultMessage)
This method returns the message from the Payment Rules resource bundle using the specified locale.
|
static java.lang.String |
getMessage(java.lang.String messageKey,
java.lang.String parameter,
java.util.Locale locale,
java.lang.String defaultMessage)
This method returns the Message from the resource bundle for the locale
|
static java.lang.String |
getMessage(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] parameters,
java.util.Locale locale,
java.lang.String defaultMessage)
This method returns a translated message from any resource bundle.
|
static java.lang.String |
getMessage(java.lang.String resourceBundleName,
java.lang.String messageKey,
java.lang.Object[] parameters,
java.lang.String defaultMessage)
This method returns the Message from the resource bundle for the JVM default locale.
|
public static final java.lang.String COPYRIGHT
public static java.lang.String getMessage(java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.Object[] parameters, java.lang.String defaultMessage)
This method returns the Message from the resource bundle for the JVM default locale.
resourceBundleName
- The resource bundle namemessageKey
- The key to retrieve the translated messageparameters
- The parameters to format the messagedefaultMessage
- If the translated message not found from the resource bundle, this
message will be usedpublic static java.lang.String getMessage(java.lang.String resourceBundleName, java.lang.String messageKey, java.lang.Object[] parameters, java.util.Locale locale, java.lang.String defaultMessage)
resourceBundleName
- The resource bundle namemessageKey
- The key to retrieve the translated messageparameters
- The parameters to format the messagelocale
- the locale to translate the message; if null, default locale is useddefaultMessage
- if the translated message not found from the resource bundle, this
message will be used; if this is null, it will return the message keypublic static java.lang.String getMessage(java.util.List resourceBundleNames, java.lang.String messageKey, java.lang.Object[] parameters, java.util.Locale locale, java.lang.String defaultMessage)
resourceBundleNames
- the list of resource bundle namesmessageKey
- The key to retrieve the translated messageparameters
- The parameters to format the messagelocale
- the locale to translate the message; if null, default locale is useddefaultMessage
- if the translated message not found from the resource bundle, this
message will be used; if this is null, it will return the message keypublic static java.lang.String getMessage(java.lang.String messageKey, java.lang.Object[] parameters)
messageKey
- the key to be used to retrieve the translated messageparameters
- the parameters to format the messagepublic static java.lang.String getMessage(java.lang.String messageKey)
messageKey
- the key to be used to retrieve the translated messagepublic static java.lang.String getMessage(java.lang.String messageKey, java.lang.Object[] parameters, java.util.Locale locale, java.lang.String defaultMessage)
messageKey
- the key to be used to retrieve the translated messageparameters
- the parameters to format the messagelocale
- the locale to be used to translate the messagedefaultMessage
- if the translated message not found from the resource bundle, this
message will be usedpublic static java.lang.String getMessage(java.lang.String messageKey, java.lang.String parameter, java.util.Locale locale, java.lang.String defaultMessage)
messageKey
- the key to be used to retrieve the translated messageparameter
- the resource bundle name to look the message inlocale
- the locale to be used to translate the messagedefaultMessage
- if the translated message not found from the resource bundle, this
message will be used