1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package guessNumber;
17
18 import java.io.Serializable;
19
20 /***
21 * <p>
22 * Bean class holding a tree item.
23 * </p>
24 *
25 * @author <a href="mailto:dlestrat@apache.org">David Le Strat</a>
26 * */
27 public class TreeItem implements Serializable
28 {
29 private int id;
30
31 private String name;
32
33 private String isoCode;
34
35 private String description;
36
37
38 /***
39 * @param id The id.
40 * @param name The name.
41 * @param isoCode The isoCode.
42 * @param description The description.
43 */
44 public TreeItem(int id, String name, String isoCode, String description)
45 {
46 this.id = id;
47 this.name = name;
48 this.isoCode = isoCode;
49 this.description = description;
50 }
51
52 /***
53 * @return Returns the description.
54 */
55 public String getDescription()
56 {
57 return description;
58 }
59
60 /***
61 * @param description The description to set.
62 */
63 public void setDescription(String description)
64 {
65 this.description = description;
66 }
67
68 /***
69 * @return Returns the id.
70 */
71 public int getId()
72 {
73 return id;
74 }
75
76 /***
77 * @param id The id to set.
78 */
79 public void setId(int id)
80 {
81 this.id = id;
82 }
83
84 /***
85 * @return Returns the isoCode.
86 */
87 public String getIsoCode()
88 {
89 return isoCode;
90 }
91
92 /***
93 * @param isoCode The isoCode to set.
94 */
95 public void setIsoCode(String isoCode)
96 {
97 this.isoCode = isoCode;
98 }
99
100 /***
101 * @return Returns the name.
102 */
103 public String getName()
104 {
105 return name;
106 }
107
108 /***
109 * @param name The name to set.
110 */
111 public void setName(String name)
112 {
113 this.name = name;
114 }
115 }