com.tivoli.pd.jutil
Class PDMessage

java.lang.Object
  |
  +--com.tivoli.pd.jutil.PDMessage

public class PDMessage
extends java.lang.Object

This class stores the message code, localized string, and severity for a single PD Message.


Field Summary
static int PDMESSAGE_SEVERITY_ERROR
           
static int PDMESSAGE_SEVERITY_INFO
          The severity levels for a PD Message.
static int PDMESSAGE_SEVERITY_WARNING
           
 
Constructor Summary
PDMessage(int inMsgCode, java.util.Locale locale)
          Constructs a PDMessage with the specified code and locale.
PDMessage(int inMsgCode, java.lang.String inMsgText, long inMsgSeverity)
          Constructs a PDMessage with the specified code, text, and severity.
 
Method Summary
 int getMsgCode()
          Returns the code for the message.
 long getMsgSeverity()
          Returns the severity for the message.
 java.lang.String getMsgText()
          Returns the localized text for the message.
 java.lang.String toString()
          Returns a string representation of this PDMessage.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PDMESSAGE_SEVERITY_INFO

public static final int PDMESSAGE_SEVERITY_INFO
The severity levels for a PD Message.

PDMESSAGE_SEVERITY_WARNING

public static final int PDMESSAGE_SEVERITY_WARNING

PDMESSAGE_SEVERITY_ERROR

public static final int PDMESSAGE_SEVERITY_ERROR
Constructor Detail

PDMessage

public PDMessage(int inMsgCode,
                 java.lang.String inMsgText,
                 long inMsgSeverity)
Constructs a PDMessage with the specified code, text, and severity.
Parameters:
inMsgCode - Code for this message.
inMsgText - Localized text for this message.
inMsgSeverity - Severity for this message.

PDMessage

public PDMessage(int inMsgCode,
                 java.util.Locale locale)
Constructs a PDMessage with the specified code and locale.
Parameters:
inMsgCode - Code for this message.
locale - Locale for any data that is returned.
Method Detail

getMsgCode

public int getMsgCode()
Returns the code for the message.
Returns:
the message code for this PD message.

getMsgText

public java.lang.String getMsgText()
Returns the localized text for the message.
Returns:
the localized text for this PD message.

getMsgSeverity

public long getMsgSeverity()
Returns the severity for the message.
Returns:
the message severity for this PD message.

toString

public java.lang.String toString()
Returns a string representation of this PDMessage.
Overrides:
toString in class java.lang.Object