com.ibm.jtopenlite

Class Message

  • java.lang.Object
    • com.ibm.jtopenlite.Message


  • public class Message
    extends java.lang.Object
    Represents a IBM i message.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Message(java.lang.String id, java.lang.String text)
      Constructs a new message with the provided ID and message text.
      Message(java.lang.String id, java.lang.String text, int severity)
      Constructs a new message with the provided ID, message text, and severity.
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      java.lang.String getID()
      Returns the message ID of this message.
      int getSeverity()
      Returns the severity of this message, or 0 if unknown.
      java.lang.String getText()
      Returns the message text of this message.
      java.lang.String toString()
      Returns a String representation of this message which consists of the message ID and message text.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • Message

        public Message(java.lang.String id,
               java.lang.String text)
        Constructs a new message with the provided ID and message text.
      • Message

        public Message(java.lang.String id,
               java.lang.String text,
               int severity)
        Constructs a new message with the provided ID, message text, and severity.
    • Method Detail

      • getSeverity

        public int getSeverity()
        Returns the severity of this message, or 0 if unknown.
      • getID

        public java.lang.String getID()
        Returns the message ID of this message.
      • getText

        public java.lang.String getText()
        Returns the message text of this message.
      • toString

        public java.lang.String toString()
        Returns a String representation of this message which consists of the message ID and message text.
        Overrides:
        toString in class java.lang.Object