Class Message

    • Field Detail

      • MESSAGE_PROPERTY

        public static final java.lang.String MESSAGE_PROPERTY
        The message bound property.
      • MESSAGE_CONTENT_TYPE_PROPERTY

        public static final java.lang.String MESSAGE_CONTENT_TYPE_PROPERTY
        The message content type bound property.
    • Constructor Detail

      • Message

        public Message()
        Default constructor.
    • Method Detail

      • getMessage

        public java.lang.String getMessage()
        Returns:
        The message text, which may include a resource reference, or null if there is no message text.
      • setMessage

        public void setMessage​(java.lang.String newMessage)
        Sets the text of the message. This is a bound property.
        Parameters:
        newMessage - The new text of the message, which may include a resource reference.
        See Also:
        MESSAGE_PROPERTY
      • getMessageContentType

        public com.globalmentor.net.ContentType getMessageContentType()
        Returns:
        The content type of the message text.
      • setMessageContentType

        public void setMessageContentType​(com.globalmentor.net.ContentType newMessageContentType)
        Sets the content type of the message text. This is a bound property.
        Parameters:
        newMessageContentType - The new message text content type.
        Throws:
        java.lang.NullPointerException - if the given content type is null.
        java.lang.IllegalArgumentException - if the given content type is not a text content type.
        See Also:
        MESSAGE_CONTENT_TYPE_PROPERTY