com.ibm.commons.iloader.node.validators.support
Class Message

java.lang.Object
  extended by com.ibm.commons.iloader.node.validators.support.Message

public class Message
extends java.lang.Object

A user facing string which has a priority associated with it. The string may appear in the UI or in a log depending on the severity and implementation.


Field Summary
static int ERROR
           
static int INFO
           
static int WARNING
           
 
Constructor Summary
Message(int severity, java.lang.String message)
          Creates a new instance of this class.
 
Method Summary
 java.lang.String getMessage()
          Returns the message text
 int getSeverity()
          Returns the severity of the message.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INFO

public static final int INFO
See Also:
Constant Field Values

WARNING

public static final int WARNING
See Also:
Constant Field Values

ERROR

public static final int ERROR
See Also:
Constant Field Values
Constructor Detail

Message

public Message(int severity,
               java.lang.String message)
Creates a new instance of this class. The severity of this message may be one of the following:

Parameters:
severity - the severity of the message
message - the message text
Method Detail

getMessage

public java.lang.String getMessage()
Returns the message text

Returns:
returns the text that is to be presented to the user.

getSeverity

public int getSeverity()
Returns the severity of the message.

Returns:
returns one of:
  • com.ibm.commons.iloader.node.validators.support.Message.INFO
  • com.ibm.commons.iloader.node.validators.support.Message.WARNING
  • com.ibm.commons.iloader.node.validators.support.Message.ERROR

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object