public class ResourceMessage extends Object
| Constructor and Description |
|---|
ResourceMessage(String messageKey)
Construct a resource message with a specified localisation resource key.
|
ResourceMessage(String messageKey,
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 List<?> |
getArgs()
Get the arguments to the message
|
String |
getMessage(MessageSource messageSource,
I18NService i18nService)
Get the localised message string.
|
protected String |
getMessageKey()
Get the localisation resource key
|
public ResourceMessage(String messageKey)
messageKey - the resource keyprotected String getMessageKey()
protected List<?> getArgs()
public String getMessage(MessageSource messageSource, I18NService i18nService)
messageSource - the message resource sourcei18nService - the internationalisation serviceCopyright © 2017 SAP SE. All Rights Reserved.