View Javadoc
1   package org.kuali.ole.docstore.common.search;
2   
3   import javax.xml.bind.annotation.XmlAccessType;
4   import javax.xml.bind.annotation.XmlAccessorType;
5   import javax.xml.bind.annotation.XmlType;
6   import java.net.URLEncoder;
7   
8   /**
9    * Created with IntelliJ IDEA.
10   * User: jayabharathreddy
11   * Date: 2/26/14
12   * Time: 6:24 PM
13   * To change this template use File | Settings | File Templates.
14   */
15  
16  
17  /**
18   * <p>Java class for valueCount complex type.
19   * <p/>
20   * <p>The following schema fragment specifies the expected content contained within this class.
21   * <p/>
22   * <pre>
23   * &lt;complexType name="valueCount">
24   *   &lt;complexContent>
25   *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
26   *       &lt;sequence>
27   *         &lt;element name="count" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
28   *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
29   *       &lt;/sequence>
30   *     &lt;/restriction>
31   *   &lt;/complexContent>
32   * &lt;/complexType>
33   * </pre>
34   */
35  @XmlAccessorType(XmlAccessType.FIELD)
36  @XmlType(name = "valueCount", propOrder = {
37          "count",
38          "value",
39          "fullValue",
40          "facetLabel"
41  })
42  public class ValueCount {
43  
44      protected String count;
45      protected String value;
46      protected String fullValue;
47      protected String facetLabel;
48  
49      public String getFullValue() {
50          return URLEncoder.encode(fullValue);
51      }
52  
53      public void setFullValue(String fullValue) {
54          this.fullValue = fullValue;
55      }
56  
57  
58  
59      /**
60       * Gets the value of the count property.
61       *
62       * @return possible object is
63       *         {@link String }
64       */
65      public String getCount() {
66          return count;
67      }
68  
69      /**
70       * Sets the value of the count property.
71       *
72       * @param value allowed object is
73       *              {@link String }
74       */
75      public void setCount(String value) {
76          this.count = value;
77      }
78  
79      /**
80       * Gets the value of the value property.
81       *
82       * @return possible object is
83       *         {@link String }
84       */
85      public String getValue() {
86          return value;
87      }
88  
89      /**
90       * Sets the value of the value property.
91       *
92       * @param value allowed object is
93       *              {@link String }
94       */
95      public void setValue(String value) {
96          this.value = value;
97      }
98  
99      public String getFacetLabel() {
100         return this.value + " (" + this.count + ")";
101     }
102 
103     public void setFacetLabel(String facetLabel) {
104         this.facetLabel = facetLabel;
105     }
106 }