Class Properties

  • All Implemented Interfaces:
    Exhibit

    public class Properties
    extends java.lang.Object
    implements Exhibit

    Properties represents arbitrary structured data added by the curator system to be displayed within the search results.

    May be most useful where structured data is needed, but neither Message nor UrlAdvert are appropriate.

    Since:
    13.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String category
      A category for the properties which may be used by a FreeMarker template to display different types of properties in different ways.
      private java.util.Map<java.lang.String,​java.lang.Object> properties
      The data for the Properties object.
    • Constructor Summary

      Constructors 
      Constructor Description
      Properties()  
      Properties​(java.util.Map<java.lang.String,​java.lang.Object> properties, 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.lang.String getCategory()
      A category for the properties which may be used by a FreeMarker template to display different types of properties in different ways.
      java.util.Map<java.lang.String,​java.lang.Object> getProperties()
      The data for the Properties object.
      int hashCode()  
      void setCategory​(java.lang.String category)
      A category for the properties which may be used by a FreeMarker template to display different types of properties in different ways.
      void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
      The data for the Properties object.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • properties

        private java.util.Map<java.lang.String,​java.lang.Object> properties
        The data for the Properties object.
      • category

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

      • Properties

        public Properties​(java.util.Map<java.lang.String,​java.lang.Object> properties,
                          java.lang.String category)
      • Properties

        public Properties()
    • 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
      • getProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getProperties()
        The data for the Properties object.
      • setProperties

        public void setProperties​(java.util.Map<java.lang.String,​java.lang.Object> properties)
        The data for the Properties object.
      • getCategory

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

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