001package org.kuali.ole.docstore.common.search;
002
003import javax.xml.bind.annotation.XmlAccessType;
004import javax.xml.bind.annotation.XmlAccessorType;
005import javax.xml.bind.annotation.XmlType;
006import java.net.URLEncoder;
007
008/**
009 * Created with IntelliJ IDEA.
010 * User: jayabharathreddy
011 * Date: 2/26/14
012 * Time: 6:24 PM
013 * To change this template use File | Settings | File Templates.
014 */
015
016
017/**
018 * <p>Java class for valueCount complex type.
019 * <p/>
020 * <p>The following schema fragment specifies the expected content contained within this class.
021 * <p/>
022 * <pre>
023 * &lt;complexType name="valueCount">
024 *   &lt;complexContent>
025 *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
026 *       &lt;sequence>
027 *         &lt;element name="count" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
028 *         &lt;element name="value" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
029 *       &lt;/sequence>
030 *     &lt;/restriction>
031 *   &lt;/complexContent>
032 * &lt;/complexType>
033 * </pre>
034 */
035@XmlAccessorType(XmlAccessType.FIELD)
036@XmlType(name = "valueCount", propOrder = {
037        "count",
038        "value",
039        "fullValue",
040        "facetLabel"
041})
042public class ValueCount {
043
044    protected String count;
045    protected String value;
046    protected String fullValue;
047    protected String facetLabel;
048
049    public String getFullValue() {
050        return URLEncoder.encode(fullValue);
051    }
052
053    public void setFullValue(String fullValue) {
054        this.fullValue = fullValue;
055    }
056
057
058
059    /**
060     * Gets the value of the count property.
061     *
062     * @return possible object is
063     *         {@link String }
064     */
065    public String getCount() {
066        return count;
067    }
068
069    /**
070     * Sets the value of the count property.
071     *
072     * @param value allowed object is
073     *              {@link String }
074     */
075    public void setCount(String value) {
076        this.count = value;
077    }
078
079    /**
080     * Gets the value of the value property.
081     *
082     * @return possible object is
083     *         {@link String }
084     */
085    public String getValue() {
086        return value;
087    }
088
089    /**
090     * Sets the value of the value property.
091     *
092     * @param value allowed object is
093     *              {@link String }
094     */
095    public void setValue(String value) {
096        this.value = value;
097    }
098
099    public String getFacetLabel() {
100        return this.value + " (" + this.count + ")";
101    }
102
103    public void setFacetLabel(String facetLabel) {
104        this.facetLabel = facetLabel;
105    }
106}