Class Facet.CategoryValue

  • Enclosing class:
    Facet

    public static class Facet.CategoryValue
    extends Object

    Value of a facet category, such as "Location = Sydney".

    • Field Detail

      • data

        private String data
        Actual value of the category (Ex: "Sydney").
      • label

        private String label
        Label of the value, usually the same as the data.
      • count

        private Integer count
        Count of occurrences for this value
      • selected

        private boolean selected
        Indicates if this value is currently selected
        Since:
        15.8
      • queryStringParamName

        private String queryStringParamName
        Name of the query string parameter for this value (e.g. f.Location|X) For internal use.
        Since:
        15.12
      • queryStringParamValue

        private String queryStringParamValue
        Value of the query string parameter for this value (e.g. Sydney) For internal use.
        Since:
        15.12
      • toggleUrl

        private String toggleUrl
        URL to use to toggle the select status of the facet value.
        Since:
        15.12
      • categoryValueDepth

        private int categoryValueDepth
        The depth of the category value, used for sorting.
        Since:
        16.0
      • categoryDefinitionIndex

        private final int categoryDefinitionIndex
        The category definition index, used for sorting by category definition.
        Since:
        16.0
    • Constructor Detail

      • CategoryValue

        public CategoryValue​(String data,
                             String label,
                             Integer count,
                             boolean selected,
                             String queryStringParamName,
                             String queryStringParamValue,
                             int categoryDefinitionIndex)