|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openmrs.messagesource.PresentationMessage
public class PresentationMessage
A PresentationMessage is a textual message presented to a user along with qualifying information like the code, locale and a description. ABKTODO: This is really part of the presentation layer, and should be part of a separate model package rather than included with the domain model. Possibly move all this to its own package? Or into org.openmrs.api.context?
| Constructor Summary | |
|---|---|
PresentationMessage(java.lang.String code,
java.util.Locale locale,
java.lang.String message,
java.lang.String description)
Create a new, fully specified PresentationMessage. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 message| Method Detail |
|---|
public 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 set
|
OpenMRS-1.7.x | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||