KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > test > TestBean


1 /*
2  * TestBean.java
3  *
4  * Created on April 19, 2005, 1:40 PM
5  *
6  * To change this template, choose Tools | Options and locate the template under
7  * the Source Creation and Management node. Right-click the template and choose
8  * Open. You can then make changes to the template in the Source Editor.
9  */

10
11 package org.test;
12
13 /**
14  *
15  * @author petr
16  */

17 public class TestBean {
18     
19     /** Creates a new instance of TestBean */
20     public TestBean() {
21     }
22
23     /**
24      * Holds value of property name.
25      */

26     private String JavaDoc name;
27
28     /**
29      * Getter for property name.
30      * @return Value of property name.
31      */

32     public String JavaDoc getName() {
33
34         return this.name;
35     }
36
37     /**
38      * Setter for property name.
39      * @param name New value of property name.
40      */

41     public void setName(String JavaDoc name) {
42
43         this.name = name;
44     }
45
46     /**
47      * Holds value of property id.
48      */

49     private Integer JavaDoc id;
50
51     /**
52      * Getter for property id.
53      * @return Value of property id.
54      */

55     public Integer JavaDoc getId() {
56
57         return this.id;
58     }
59
60     /**
61      * Setter for property id.
62      * @param id New value of property id.
63      */

64     public void setId(Integer JavaDoc id) {
65
66         this.id = id;
67     }
68     
69 }
70
Popular Tags