Class Message

  • All Implemented Interfaces:
    Exhibit

    public class Message
    extends java.lang.Object
    implements Exhibit
    Message represents a 'message' added by curator to be displayed within the search results.
    Since:
    13.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.util.Map<java.lang.String,​java.lang.Object> additionalProperties
      Any additional properties associated with the message (for example CSS styling related information).
      private java.lang.String category
      A category for the message which may be used by an FreeMarker template to display different types of messages in different ways.
      private java.lang.String messageHtml
      The HTML content of the message to display.
    • Constructor Summary

      Constructors 
      Constructor Description
      Message()  
      Message​(java.lang.String messageHtml, java.util.Map<java.lang.String,​java.lang.Object> additionalProperties, java.lang.String category)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      Any additional properties associated with the message (for example CSS styling related information).
      java.lang.String getCategory()
      A category for the message which may be used by an FreeMarker template to display different types of messages in different ways.
      java.lang.String getMessageHtml()
      The HTML content of the message to display.
      int hashCode()  
      void setAdditionalProperties​(java.util.Map<java.lang.String,​java.lang.Object> additionalProperties)
      Any additional properties associated with the message (for example CSS styling related information).
      void setCategory​(java.lang.String category)
      A category for the message which may be used by an FreeMarker template to display different types of messages in different ways.
      void setMessageHtml​(java.lang.String messageHtml)
      The HTML content of the message to display.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • messageHtml

        private java.lang.String messageHtml
        The HTML content of the message to display.
      • additionalProperties

        private java.util.Map<java.lang.String,​java.lang.Object> additionalProperties
        Any additional properties associated with the message (for example CSS styling related information).
      • category

        private java.lang.String category
        A category for the message which may be used by an FreeMarker template to display different types of messages in different ways.
    • Constructor Detail

      • Message

        public Message​(java.lang.String messageHtml,
                       java.util.Map<java.lang.String,​java.lang.Object> additionalProperties,
                       java.lang.String category)
      • Message

        public Message()
    • Method Detail

      • toString

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

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getMessageHtml

        public java.lang.String getMessageHtml()
        The HTML content of the message to display.
      • setMessageHtml

        public void setMessageHtml​(java.lang.String messageHtml)
        The HTML content of the message to display.
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
        Any additional properties associated with the message (for example CSS styling related information).
      • setAdditionalProperties

        public void setAdditionalProperties​(java.util.Map<java.lang.String,​java.lang.Object> additionalProperties)
        Any additional properties associated with the message (for example CSS styling related information).
      • getCategory

        public java.lang.String getCategory()
        A category for the message which may be used by an FreeMarker template to display different types of messages in different ways.
      • setCategory

        public void setCategory​(java.lang.String category)
        A category for the message which may be used by an FreeMarker template to display different types of messages in different ways.