com.ibm.commons.iloader.node.validators.support
Class Message
java.lang.Object
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.
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 |
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
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:
- 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
- Parameters:
severity
- the severity of the messagemessage
- the message text
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