|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opensubsystems.core.util.Messages
public class Messages
Object which collects messages to report to user. The messages might be tied to categories which then decide how are they displayed to user. Category can represent the purpose of the message such as error or information or it can represent screen object such as control, which contains data that caused the error.
| Field Summary | |
|---|---|
static java.lang.String |
ACCESSRIGHT_ERRORS
Key used to store nonspecific errors. |
static java.lang.String |
ALL
Key used to store all errors and info messages. |
static java.lang.String |
ALL_ERRORS
Key used to store all errors. |
static java.lang.String |
INFORMATIONS
Key used to store informations not errors |
protected java.util.Map |
m_mpMessages
Map which collects messages |
static java.lang.String |
NONSPECIFIC_ERRORS
Key used to store nonspecific errors. |
| Constructor Summary | |
|---|---|
Messages()
Construct new error object. |
|
| Method Summary | |
|---|---|
void |
addErrorMessage(java.lang.String strMessage)
Add new nonspecific message to the list of error messages. |
void |
addMessage(java.lang.Object messageCategory,
java.lang.String strMessage)
Add new message for a specific category. |
void |
addMessages(Messages erMessages)
Method to merge Messages |
java.util.List |
getAllErrorMessages()
Returns list of all error messages. |
java.lang.String |
getAllErrorMessages(java.lang.String strDeliminer)
Returns String with all messages divided by deliminer. |
java.util.List |
getAllMessages()
Returns list of all messages. |
java.util.List |
getInfoMessages()
Returns list of all info messages. |
java.util.List |
getMessages(java.lang.Object messageCategory)
Returns list of all messages for a given category. |
java.lang.String |
getMessages(java.lang.Object messageCategory,
java.lang.String strDeliminer)
Returns String with all messages for a given category divided by deliminer. |
java.util.List |
getNonSpecificMessages()
Returns list of all nonspecific messages. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NONSPECIFIC_ERRORS
public static final java.lang.String ACCESSRIGHT_ERRORS
public static final java.lang.String ALL_ERRORS
public static final java.lang.String ALL
public static final java.lang.String INFORMATIONS
protected java.util.Map m_mpMessages
| Constructor Detail |
|---|
public Messages()
| Method Detail |
|---|
public void addErrorMessage(java.lang.String strMessage)
strMessage - - message to add
public void addMessage(java.lang.Object messageCategory,
java.lang.String strMessage)
messageCategory - - category to which the message should be addedstrMessage - - message to addpublic void addMessages(Messages erMessages)
erMessages - - Messages to addpublic java.util.List getAllErrorMessages()
public java.util.List getAllMessages()
public java.util.List getInfoMessages()
public java.util.List getNonSpecificMessages()
public java.lang.String getAllErrorMessages(java.lang.String strDeliminer)
strDeliminer - - deliminer String
public java.util.List getMessages(java.lang.Object messageCategory)
messageCategory - - messages for given category
public java.lang.String getMessages(java.lang.Object messageCategory,
java.lang.String strDeliminer)
messageCategory - - messages for given categorystrDeliminer - - deliminer String
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||