com.ibm.jtopenlite

Class Message



  • public class Message
    extends Object
    Represents a IBM i message.
    • Constructor Detail

      • Message

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

        public Message(String id,
               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 String getID()
        Returns the message ID of this message.
      • getText

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

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