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
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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
61
62
63
64
65 public String getCount() {
66 return count;
67 }
68
69
70
71
72
73
74
75 public void setCount(String value) {
76 this.count = value;
77 }
78
79
80
81
82
83
84
85 public String getValue() {
86 return value;
87 }
88
89
90
91
92
93
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 }