|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.generic.msgcontainer.StandardMsgContainer
public class StandardMsgContainer
Standard implementation of a message container.
The class will collect all messages that are added. The messages can be retrieved
using the getMsgs() method.
| Constructor Summary | |
|---|---|
StandardMsgContainer()
Default constructor. |
|
| Method Summary | |
|---|---|
void |
addMsg(MsgItem msg)
Adds a message to the message list. |
void |
addMsg(java.lang.Object source,
java.lang.String msg)
Adds a message to the message list. |
void |
addMsg(java.lang.Object source,
java.lang.String msg,
java.lang.Object[] args)
Adds a message to the message list. |
void |
addMsg(java.lang.String msgType,
java.lang.Object source,
java.lang.String msg)
Adds a message to the message list. |
void |
addMsg(java.lang.String msgType,
java.lang.Object source,
java.lang.String msg,
java.lang.Object[] args)
Adds a message to the message list. |
void |
clearMsgs()
Clears the message list. |
java.util.List |
getList()
Gets the message list. |
java.util.Iterator |
getMsgs()
Gets the message list. |
boolean |
isEmpty()
Checks if the message container contains messages. |
java.lang.String |
toString()
Returns a string representation of this object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public StandardMsgContainer()
| Method Detail |
|---|
public void addMsg(java.lang.Object source,
java.lang.String msg,
java.lang.Object[] args)
MsgFormat class.
addMsg in interface MsgContainersource - Object that caused the messagemsg - Message to addargs - Message arguments or null
public void addMsg(java.lang.Object source,
java.lang.String msg)
addMsg in interface MsgContainersource - Object that caused the messagemsg - Message to add
public void addMsg(java.lang.String msgType,
java.lang.Object source,
java.lang.String msg,
java.lang.Object[] args)
MsgFormat class.
addMsg in interface MsgContainermsgType - Message typesource - Object that caused the messagemsg - Message to addargs - Message arguments or null
public void addMsg(java.lang.String msgType,
java.lang.Object source,
java.lang.String msg)
addMsg in interface MsgContainermsgType - Message typesource - Object that caused the messagemsg - Message to addpublic java.lang.String toString()
toString in class java.lang.ObjectPrintNameProvider interface or its name if it implements the DescriptionObject
interface. Otherwise, the toString representation of the object will be printed.public boolean isEmpty()
public java.util.Iterator getMsgs()
MsgItem objectspublic java.util.List getList()
MsgItem objects or null if there are no messagespublic void addMsg(MsgItem msg)
msg - The message to addpublic void clearMsgs()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||