public abstract class MessageDefinition extends Object
| Constructor and Description |
|---|
MessageDefinition(String messageId,
String messageTemplate,
String systemAction,
String userAction)
Constructor to save all of the fixed values of a message.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMessageId()
Return the unique identifier for the message.
|
String[] |
getMessageParams()
Return the array of values that apply to this message instance.
|
String |
getMessageTemplate()
Return the template of the message.
|
String |
getSystemAction()
Returns a description of the action taken by the system when the condition that caused this exception was
detected.
|
String |
getUserAction()
Returns instructions on what to do next given that this situation has occurred.
|
void |
setMessageParameters(String... params)
Set up the specific values that apply to this message instance.
|
public MessageDefinition(String messageId, String messageTemplate, String systemAction, String userAction)
messageId - unique id of the message type.messageTemplate - template for the message text with placeholders for parameters.systemAction - description of the actions of the system when the situation arose.userAction - instructions on what to do next.public String getMessageId()
public String getMessageTemplate()
public void setMessageParameters(String... params)
params - list of string message inserts for the message templatepublic String[] getMessageParams()
public String getSystemAction()
public String getUserAction()
Copyright © 2018–2020 ODPi. All rights reserved.