|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tivoli.twg.alertmgr.TWGMessage
TWGMessage is a class used to pass response messages from an event handler's ValidateParm method to the Event Server. The presence of the object upon return from TWGEventHandler.ValidateParm() indicates that the data supplied by the user is somehow invalid. The value of the message is in describe what was iinvalid about the data. TWGMessage may have single-language or multi-lingual capability.
Constructor Summary | |
---|---|
TWGMessage(java.lang.String msg)
Constructor for single-language format. |
|
TWGMessage(java.lang.String msg,
java.lang.String bundle)
Constructor for multi-lingual format. |
|
TWGMessage(TWGMessage m)
Copy Constructor. |
Method Summary | |
---|---|
java.lang.String |
getMessage(java.util.Locale locale)
Get the text of the message based on a desired locale. |
java.lang.String |
getMessageBundle()
Get the name of the resource bundle containing the message keyword. |
void |
setMessageBundle(java.lang.String b)
Set the name of the resource bundle containing the message keyword. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TWGMessage(java.lang.String msg)
msg
- text of messagepublic TWGMessage(java.lang.String msg, java.lang.String bundle)
msg
- keyword associated with the text of messagebundle
- bundle containing keyword associated with the text of messagepublic TWGMessage(TWGMessage m)
m
- message object to be copiedMethod Detail |
public java.lang.String getMessageBundle()
public void setMessageBundle(java.lang.String b)
b
- name of the resource bundle that contains the text of the message.public java.lang.String getMessage(java.util.Locale locale)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |