KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > myfaces > examples > listexample > TreeItem


1 /*
2  * Copyright 2004 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16 package org.apache.myfaces.examples.listexample;
17
18 import java.io.Serializable JavaDoc;
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 JavaDoc
28 {
29     private int id;
30
31     private String JavaDoc name;
32
33     private String JavaDoc isoCode;
34
35     private String JavaDoc 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 JavaDoc name, String JavaDoc isoCode, String JavaDoc 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 JavaDoc getDescription()
56     {
57         return description;
58     }
59
60     /**
61      * @param description The description to set.
62      */

63     public void setDescription(String JavaDoc 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 JavaDoc getIsoCode()
88     {
89         return isoCode;
90     }
91
92     /**
93      * @param isoCode The isoCode to set.
94      */

95     public void setIsoCode(String JavaDoc isoCode)
96     {
97         this.isoCode = isoCode;
98     }
99
100     /**
101      * @return Returns the name.
102      */

103     public String JavaDoc getName()
104     {
105         return name;
106     }
107
108     /**
109      * @param name The name to set.
110      */

111     public void setName(String JavaDoc name)
112     {
113         this.name = name;
114     }
115 }
116
Popular Tags