public class PresentationMessage extends Object
Constructor and Description |
---|
PresentationMessage(String code,
Locale locale,
String message,
String description)
Create a new, fully specified PresentationMessage.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Returns the look-up key for the message.
|
String |
getDescription()
Gets the description, which should indicate the meaning or intended use of the message.
|
Locale |
getLocale()
Returns the locale within which the message is expressed.
|
String |
getMessage()
Returns the text of the message.
|
void |
setCode(String code)
Sets the look-up key for the message.
|
void |
setDescription(String description) |
void |
setLocale(Locale locale)
Sets the locale of the message.
|
void |
setMessage(String message) |
public PresentationMessage(String code, Locale locale, String message, 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 String getCode()
MessageSource
.public void setCode(String code)
code
- the code to setpublic Locale getLocale()
public void setLocale(Locale locale)
locale
- the locale to setpublic String getMessage()
public void setMessage(String message)
message
- the message to setpublic String getDescription()
public void setDescription(String description)
description
- the description to setCopyright © 2024 OpenMRS Inc.. All rights reserved.