public interface MessageCommand extends Serializable
Modifier and Type | Method and Description |
---|---|
void |
addMessage(ApplicationMessageHandler appMessageHandler)
Adds a message to the application context by evaluating the given information.
|
Locale |
getLocale()
Gets the locale for the message.
|
String |
getMessage(MessageHandler messageHandler)
Gets a message by evaluating the given information.
|
void |
setLocale(Locale locale)
Sets the locale for the message.
|
void |
setMessageKey(String messageKey)
Sets the key for the message.
|
void |
setParameters(Object[] parameters)
Sets the parameters for the message.
|
void |
setType(Object type)
Sets the type for the message.
|
void setType(Object type)
type
- New type for the message.Locale getLocale()
void setLocale(Locale locale)
locale
- New locale for the message.void setMessageKey(String messageKey)
messageKey
- New key for the message.void setParameters(Object[] parameters)
parameters
- New parameters for the message.String getMessage(MessageHandler messageHandler) throws MessageNotFoundException
messageHandler
- The message handler to be used.MessageNotFoundException
- If the message cannot be found.void addMessage(ApplicationMessageHandler appMessageHandler) throws MessageNotFoundException
appMessageHandler
- The application message handler to be used.MessageNotFoundException
- If the message cannot be found.Copyright © 2013. All Rights Reserved.