KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > inversoft > beans > test > Bean2


1 /*
2  * Copyright (c) 2003, Inversoft
3  *
4  * This software is distribuable under the GNU Lesser General Public License.
5  * For more information visit gnu.org.
6  */

7 package com.inversoft.beans.test;
8
9
10 /**
11  * This class is a simple JavaBean that is used in testing
12  * @author Brian Pontarelli
13  */

14 public class Bean2 {
15
16     private Bean3 property2;
17     private Bean3 [] indexed2 = new Bean3[1];
18     private String JavaDoc name;
19
20     /** Gets the property2 property */
21     public Bean3 getProperty2() {
22         return property2;
23     }
24
25     /** Sets the property2 property */
26     public void setProperty2(Bean3 value) {
27         this.property2 = value;
28     }
29
30     /** Gets the Name property */
31     public String JavaDoc getName() {
32         return name;
33     }
34     
35     /** Sets the Name property */
36     public void setName(String JavaDoc value) {
37         name = value;
38     }
39
40     /** Gets the Indexed2 property */
41     public Bean3 getIndexed2(int index) {
42         return indexed2[index];
43     }
44     
45     /** Sets the Indexed2 property */
46     public void setIndexed2(int index, Bean3 value) {
47         indexed2[index] = value;
48     }
49 }
50
Popular Tags