public class ResourceMessage
extends java.lang.Object
| Constructor and Description |
|---|
ResourceMessage(java.lang.String messageKey)
Construct a resource message with a specified localisation resource key.
|
ResourceMessage(java.lang.String messageKey,
java.util.List<?> args)
Construct a resource message with a specified localisation resource key and a list of arguments to the message.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<?> |
getArgs()
Get the arguments to the message
|
java.lang.String |
getMessage(MessageSource messageSource,
I18NService i18nService)
Get the localised message string.
|
protected java.lang.String |
getMessageKey()
Get the localisation resource key
|
public ResourceMessage(java.lang.String messageKey)
messageKey - the resource keypublic ResourceMessage(java.lang.String messageKey,
java.util.List<?> args)
messageKey - the resource keyargs - the arguments to the messageprotected java.lang.String getMessageKey()
protected java.util.List<?> getArgs()
public java.lang.String getMessage(MessageSource messageSource,
I18NService i18nService)
messageSource - the message resource sourcei18nService - the internationalisation serviceCopyright © 2018 SAP SE. All Rights Reserved.