public class PresentationMessage
extends java.lang.Object
Constructor and Description |
---|
PresentationMessage(java.lang.String code,
java.util.Locale locale,
java.lang.String message,
java.lang.String description)
Create a new, fully specified PresentationMessage.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCode()
Returns the look-up key for the message.
|
java.lang.String |
getDescription()
Gets the description, which should indicate the meaning or intended use of the message.
|
java.util.Locale |
getLocale()
Returns the locale within which the message is expressed.
|
java.lang.String |
getMessage()
Returns the text of the message.
|
void |
setCode(java.lang.String code)
Sets the look-up key for the message.
|
void |
setDescription(java.lang.String description) |
void |
setLocale(java.util.Locale locale)
Sets the locale of the message.
|
void |
setMessage(java.lang.String message) |
public PresentationMessage(java.lang.String code, java.util.Locale locale, java.lang.String message, java.lang.String description)
code
- the look-up key for the messagelocale
- locale within which the message is expressedmessage
- text of the messagedescription
- description of the meaning or intended use of the messagepublic java.lang.String getCode()
MessageSource
.public void setCode(java.lang.String code)
code
- the code to setpublic java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale
- the locale to setpublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the message to setpublic java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- the description to setCopyright © 2018 OpenMRS Inc.. All Rights Reserved.