Class CategoryValueComputedDataHolder


  • public class CategoryValueComputedDataHolder
    extends java.lang.Object
    Holds the data of a category value.

    Unlike CategoryValue this has everything within it to generate a CategoryValue without doubling up on any data in different forms.

    Since:
    15.14
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String constraint
      Constraint used to get this value.
      private java.lang.Integer count
      Count of occurrences for this value
      private java.lang.String data
      Actual value of the category (Ex: "Sydney").
      private java.lang.String label
      Label of the value, usually the same as the data.
      private java.lang.String queryStringParamName
      Name of the query string parameter for this value (e.g.
      private java.lang.String queryStringParamValue
      Value of the query string parameter for this value (e.g.
      private boolean selected
      Indicates if this value is currently selected
    • Constructor Summary

      Constructors 
      Constructor Description
      CategoryValueComputedDataHolder​(java.lang.String data, java.lang.String label, java.lang.Integer count, java.lang.String constraint, boolean selected, java.lang.String queryStringParamName, java.lang.String queryStringParamValue)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getConstraint()
      Constraint used to get this value.
      java.lang.Integer getCount()
      Count of occurrences for this value
      java.lang.String getData()
      Actual value of the category (Ex: "Sydney").
      java.lang.String getLabel()
      Label of the value, usually the same as the data.
      java.lang.String getQueryStringParamName()
      Name of the query string parameter for this value (e.g.
      java.lang.String getQueryStringParamValue()
      Value of the query string parameter for this value (e.g.
      boolean isSelected()
      Indicates if this value is currently selected
      void setConstraint​(java.lang.String constraint)
      Constraint used to get this value.
      void setCount​(java.lang.Integer count)
      Count of occurrences for this value
      void setData​(java.lang.String data)
      Actual value of the category (Ex: "Sydney").
      void setLabel​(java.lang.String label)
      Label of the value, usually the same as the data.
      void setQueryStringParamName​(java.lang.String queryStringParamName)
      Name of the query string parameter for this value (e.g.
      void setQueryStringParamValue​(java.lang.String queryStringParamValue)
      Value of the query string parameter for this value (e.g.
      void setSelected​(boolean selected)
      Indicates if this value is currently selected
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • data

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

        private java.lang.String label
        Label of the value, usually the same as the data.
        Since:
        15.14
      • count

        private java.lang.Integer count
        Count of occurrences for this value
        Since:
        15.14
      • constraint

        private java.lang.String constraint
        Constraint used to get this value. Can be a metadata class or a GScope number, depending of the facet type.
        Since:
        15.14
      • selected

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

        private java.lang.String queryStringParamName
        Name of the query string parameter for this value (e.g. f.Location|X)
      • queryStringParamValue

        private java.lang.String queryStringParamValue
        Value of the query string parameter for this value (e.g. Syndey)
    • Constructor Detail

      • CategoryValueComputedDataHolder

        public CategoryValueComputedDataHolder​(java.lang.String data,
                                               java.lang.String label,
                                               java.lang.Integer count,
                                               java.lang.String constraint,
                                               boolean selected,
                                               java.lang.String queryStringParamName,
                                               java.lang.String queryStringParamValue)
    • Method Detail

      • getData

        public java.lang.String getData()
        Actual value of the category (Ex: "Sydney").
        Since:
        15.14
      • setData

        public void setData​(java.lang.String data)
        Actual value of the category (Ex: "Sydney").
        Since:
        15.14
      • getLabel

        public java.lang.String getLabel()
        Label of the value, usually the same as the data.
        Since:
        15.14
      • setLabel

        public void setLabel​(java.lang.String label)
        Label of the value, usually the same as the data.
        Since:
        15.14
      • getCount

        public java.lang.Integer getCount()
        Count of occurrences for this value
        Since:
        15.14
      • setCount

        public void setCount​(java.lang.Integer count)
        Count of occurrences for this value
        Since:
        15.14
      • getConstraint

        public java.lang.String getConstraint()
        Constraint used to get this value. Can be a metadata class or a GScope number, depending of the facet type.
        Since:
        15.14
      • setConstraint

        public void setConstraint​(java.lang.String constraint)
        Constraint used to get this value. Can be a metadata class or a GScope number, depending of the facet type.
        Since:
        15.14
      • isSelected

        public boolean isSelected()
        Indicates if this value is currently selected
        Since:
        15.14
      • setSelected

        public void setSelected​(boolean selected)
        Indicates if this value is currently selected
        Since:
        15.14
      • getQueryStringParamName

        public java.lang.String getQueryStringParamName()
        Name of the query string parameter for this value (e.g. f.Location|X)
      • setQueryStringParamName

        public void setQueryStringParamName​(java.lang.String queryStringParamName)
        Name of the query string parameter for this value (e.g. f.Location|X)
      • getQueryStringParamValue

        public java.lang.String getQueryStringParamValue()
        Value of the query string parameter for this value (e.g. Syndey)
      • setQueryStringParamValue

        public void setQueryStringParamValue​(java.lang.String queryStringParamValue)
        Value of the query string parameter for this value (e.g. Syndey)