KickJava   Java API By Example, From Geeks To Geeks.

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


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 import java.util.ArrayList JavaDoc;
11 import java.util.Collection JavaDoc;
12 import java.util.HashMap JavaDoc;
13 import java.util.HashSet JavaDoc;
14 import java.util.List JavaDoc;
15 import java.util.Map JavaDoc;
16
17
18 /**
19  * This class is a simple JavaBean that is used in testing
20  * @author Brian Pontarelli
21  */

22 public class Bean3 {
23
24     private String JavaDoc property3;
25     private Integer JavaDoc integer3;
26     private List JavaDoc list = new ArrayList JavaDoc();
27     private Map JavaDoc map = new HashMap JavaDoc();
28     private Collection JavaDoc collection = new HashSet JavaDoc();
29     private Object JavaDoc[] array = new Object JavaDoc[4];
30     private Integer JavaDoc[] integerArray = new Integer JavaDoc[4];
31
32     /** Gets the property3 property */
33     public String JavaDoc getProperty3() {
34         return property3;
35     }
36
37     /** Sets the property3 property */
38     public void setProperty3(String JavaDoc value) {
39         this.property3 = value;
40     }
41
42     /** Gets the Integer3 property */
43     public Integer JavaDoc getInteger3() {
44         return integer3;
45     }
46
47     /** Sets the Integer3 property */
48     public void setInteger3(Integer JavaDoc value) {
49         integer3 = value;
50     }
51
52     /** Gets the list property */
53     public List JavaDoc getList() {
54         return list;
55     }
56
57     /** Sets the list property */
58     public void setList(List JavaDoc list) {
59         this.list = list;
60     }
61
62     /** Gets the map property */
63     public Map JavaDoc getMap() {
64         return map;
65     }
66
67     /** Sets the map property */
68     public void setMap(Map JavaDoc map) {
69         this.map = map;
70     }
71
72     /** Gets the collection property */
73     public Collection JavaDoc getCollection() {
74         return collection;
75     }
76
77     /** Sets the collection property */
78     public void setCollection(Collection JavaDoc collection) {
79         this.collection = collection;
80     }
81
82     /** Gets the array property */
83     public Object JavaDoc[] getArray() {
84         return array;
85     }
86
87     /** Sets the array property */
88     public void setArray(Object JavaDoc[] array) {
89         this.array = array;
90     }
91
92     /** Gets the integerArray property */
93     public Integer JavaDoc[] getIntegerArray() {
94         return integerArray;
95     }
96
97     /** Sets the integerArray property */
98     public void setIntegerArray(Integer JavaDoc[] integerArray) {
99         this.integerArray = integerArray;
100     }
101 }
Popular Tags