|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openbp.common.generic.msgcontainer.MsgItem
public class MsgItem
Description object of a message.
The message will be formatted according to the rules specified in the
MsgFormat class.
The message source references the object that caused the message.
| Constructor Summary | |
|---|---|
MsgItem()
Default constructor. |
|
MsgItem(java.lang.String msgType,
java.lang.Object source,
java.lang.String msg,
java.lang.Object[] msgArgs)
Value constructor. |
|
| Method Summary | |
|---|---|
java.lang.String |
getFormattedMsg()
Gets the formatted message. |
java.lang.String |
getFormattedMsgWithSource()
Gets the formatted message including message source specification. |
java.lang.String |
getMsg()
Gets the message. |
java.lang.Object[] |
getMsgArgs()
Gets the message arguments. |
java.lang.String |
getMsgType()
Gets the message type. |
java.lang.String |
getSourceString()
Gets the name of the source of the message. |
void |
setMsg(java.lang.String msg)
Sets the message. |
void |
setMsgArgs(java.lang.Object[] msgArgs)
Sets the message arguments. |
void |
setMsgType(java.lang.String msgType)
Sets the message type. |
void |
setSource(java.lang.Object source)
Sets the source of the message. |
java.lang.String |
toString()
Gets 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 MsgItem()
public MsgItem(java.lang.String msgType,
java.lang.Object source,
java.lang.String msg,
java.lang.Object[] msgArgs)
msgType - Message type
See the constants of LogLevel interface.source - Source of the message (may be null)msg - The messagemsgArgs - Message arguments (may be null)| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.ObjectgetFormattedMsgWithSource()public java.lang.String getSourceString()
PrintNameProvider object, the name for a DescriptionObject
or otherwise the result of toString(). Can be null if there is no source object for this description.public java.lang.String getFormattedMsgWithSource()
public java.lang.String getFormattedMsg()
public void setSource(java.lang.Object source)
public java.lang.String getMsgType()
LogLevel interface.
public void setMsgType(java.lang.String msgType)
LogLevel interface.
public java.lang.String getMsg()
public void setMsg(java.lang.String msg)
public java.lang.Object[] getMsgArgs()
public void setMsgArgs(java.lang.Object[] msgArgs)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||