Class JcmsMessage

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JcmsMessage.Level
      Criticity Level of message being displayed to the User.
    • Constructor Summary

      Constructors 
      Constructor Description
      JcmsMessage​(JcmsMessage.Level level, java.lang.String message)
      Creates a new JcmsMessage with the specified level and message
      JcmsMessage​(java.lang.String id, JcmsMessage.Level level, java.lang.String message)
      Creates a new JcmsMessage with the specified level and message, and with a unique identifier.
    • Constructor Detail

      • JcmsMessage

        public JcmsMessage​(JcmsMessage.Level level,
                           java.lang.String message)
        Creates a new JcmsMessage with the specified level and message
        Parameters:
        level - the criticity level
        message - the message, must already be I18Ned
      • JcmsMessage

        public JcmsMessage​(java.lang.String id,
                           JcmsMessage.Level level,
                           java.lang.String message)
        Creates a new JcmsMessage with the specified level and message, and with a unique identifier.
        Parameters:
        id - an identifier of this message, can be null
        level - the criticity level
        message - the message, must already be I18Ned
    • Method Detail

      • getId

        public java.lang.String getId()
        Retrieves the id of this JcmsMessage, if any.
        Returns:
        the JcmsMessage identifier, or null if none has been defined.
      • setId

        public void setId​(java.lang.String id)
      • getMessage

        public java.lang.String getMessage()
      • setMessage

        public void setMessage​(java.lang.String message)
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toString

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