summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/groupsindexer/model/SearchField.java
blob: 454b082d740764e84915af811ad8fa6ae51f86a5 (plain)
1
2
3
4
5
6
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
package com.p4square.groupsindexer.model;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * SearchField describes a pulldown field and its options.
 */
public class SearchField {

    @JsonProperty("id")
    private String id;

    @JsonProperty("label")
    private String label;

    @JsonProperty("values")
    private List<StringPair> values;

    public SearchField() { }

    public SearchField(String id, String label, List<StringPair> values) {
        this.id = id;
        this.label = label;
        this.values = values;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }

    public List<StringPair> getValues() {
        return values;
    }

    public void setValues(List<StringPair> values) {
        this.values = values;
    }
}