public class MessageContainerImpl extends Object implements MessageContainer
| Constructor and Description |
|---|
MessageContainerImpl(Locale locale) |
| Modifier and Type | Method and Description |
|---|---|
void |
addErrorMessage(String code,
String target,
Object... params)
Adds a (non-leading)message with severity error.
|
void |
addInfoMessage(String code,
String target,
Object... params)
Adds a (non-leading)message with severity info.
|
void |
addSuccessMessage(String code,
String target,
Object... params)
Adds a (non-leading)message with severity success.
|
void |
addWarningMessage(String code,
String target,
Object... params)
Adds a (non-leading)message with severity warning.
|
Message |
getLeadingMessage() |
static String |
getLocalizedMessage(String code,
Object... params) |
List<Message> |
getMessageDetails() |
void |
setLeadingMessage(String code,
String target,
Object... params)
Sets the leading message.
|
public MessageContainerImpl(Locale locale)
public void addInfoMessage(String code, String target, Object... params)
MessageContaineraddInfoMessage in interface MessageContainercode - messageKey associated with the message, used as the key to a properties file to retrieve the message text.target - Target for which this message applies.params - Parameters which will be substituted in the messageText in place of placeholders.public void addWarningMessage(String code, String target, Object... params)
MessageContaineraddWarningMessage in interface MessageContainercode - messageKey associated with the message, used as the key to a properties file to retrieve the message text.target - Target for which this message applies.params - Parameters which will be substituted in the messageText in place of placeholders.public void addErrorMessage(String code, String target, Object... params)
MessageContaineraddErrorMessage in interface MessageContainercode - messageKey associated with the message, used as the key to a properties file to retrieve the message text.target - Target for which this message applies.params - Parameters which will be substituted in the messageText in place of placeholders.public void setLeadingMessage(String code, String target, Object... params)
MessageContainersetLeadingMessage in interface MessageContainercode - messageKey associated with the message, used as the key to a properties file to retrieve the message text.target - Target for which this message applies.params - Parameters which will be substituted in the messageText in place of placeholders.public Message getLeadingMessage()
public void addSuccessMessage(String code, String target, Object... params)
MessageContaineraddSuccessMessage in interface MessageContainercode - messageKey associated with the message, used as the key to a properties file to retrieve the message text.target - Target for which this message applies.params - Parameters which will be substituted in the messageText in place of placeholders.Copyright © 2020 SAP. All Rights Reserved.