summaryrefslogtreecommitdiff
path: root/src/main/java/com/p4square/ccbapi/model/LookupTableItem.java
blob: 07b39ebb16e8ce10fc01ae9c2b12b220ff2061ce (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
53
54
55
56
57
58
59
package com.p4square.ccbapi.model;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * LookupTableItem is the definition of an item in a pulldown list.
 */
@XmlRootElement(name="item")
@XmlAccessorType(XmlAccessType.NONE)
public class LookupTableItem {

    @XmlElement
    private int id;

    @XmlElement
    private int order;

    @XmlElement
    private String name;

    public int getId() {
        return id;
    }

    public LookupTableItem setId(final int id) {
        this.id = id;
        return this;
    }

    public int getOrder() {
        return order;
    }

    public LookupTableItem setOrder(final int order) {
        this.order = order;
        return this;
    }

    public String getName() {
        return name;
    }

    public LookupTableItem setName(final String name) {
        this.name = name;
        return this;
    }

    @Override
    public String toString() {
        return "LookupTableItem::{" +
                "id=" + id +
                ", order=" + order +
                ", name='" + name + '\'' +
                '}';
    }
}