1
2
3
4
5
6
7 package nl.tudelft.dsol.introspection.beans;
8
9 import java.io.Serializable;
10 import java.util.HashMap;
11 import java.util.Vector;
12
13 /***
14 * <p>
15 * (c) copyright 2003-2004 <a href="http://www.simulation.tudelft.nl">Delft
16 * University of Technology </a>, the Netherlands. <br>
17 * See for project information <a
18 * href="http://www.simulation.tudelft.nl">www.simulation.tudelft.nl </a> <br>
19 * License of use: <a href="http://www.gnu.org/copyleft/gpl.html">General Public
20 * License (GPL) </a>, no warranty <br>
21 *
22 * @author <a
23 * href="http://web.eur.nl/fbk/dep/dep1/Introduction/Staff/People/Lang">Niels
24 * Lang </a><a
25 * href="http://www.tbm.tudelft.nl/webstaf/peterja/index.htm">Peter
26 * Jacobs </a>
27 * @version 1.1 Apr 15, 2004
28 * @since 1.4
29 */
30 public class IndexedPropertyBean extends Object
31 {
32
33 /*** Holds value of property indexedProp. */
34 private String[] indexedProp = new String[]{"test1", "test2"};
35
36 /*** Holds value of property vector. */
37 private Vector vector;
38
39 /*** Holds value of property collection. */
40 private java.util.HashMap collection;
41
42 /*** Holds value of property beans. */
43 private TestBean[] beans;
44
45 /*** Holds value of property doubleValue. */
46 private Double doubleValue = new Double(1717);
47
48 /*** Holds value of property serializedDoubleValue. */
49 private java.io.Serializable serializedDoubleValue = new Double(1717);
50
51 /*** Creates new IndexedPropertyBean */
52 public IndexedPropertyBean()
53 {
54 this.indexedProp[0] = "nul";
55 this.indexedProp[1] = "notnul";
56 }
57
58 /***
59 * Indexed getter for property indexedProp.
60 *
61 * @param index Index of the property.
62 * @return Value of the property at <CODE>index</CODE>.
63 */
64 public String getIndexedProp(final int index)
65 {
66 return this.indexedProp[index];
67 }
68
69 /***
70 * Getter for property indexedProp.
71 *
72 * @return Value of property indexedProp.
73 */
74 public String[] getIndexedProp()
75 {
76 return this.indexedProp;
77 }
78
79 /***
80 * Indexed setter for property indexedProp.
81 *
82 * @param index Index of the property.
83 * @param indexedProp New value of the property at <CODE>index</CODE>.
84 */
85 public void setIndexedProp(final int index, final String indexedProp)
86 {
87 this.indexedProp[index] = indexedProp;
88 }
89
90 /***
91 * Setter for property indexedProp.
92 *
93 * @param indexedProp New value of property indexedProp.
94 */
95 public void setIndexedProp(final String[] indexedProp)
96 {
97 this.indexedProp = indexedProp;
98 }
99
100 /***
101 * Getter for property vector.
102 *
103 * @return Value of property vector.
104 */
105 public Vector getVector()
106 {
107 return this.vector;
108 }
109
110 /***
111 * Setter for property vector.
112 *
113 * @param vector New value of property vector.
114 */
115 public void setVector(final Vector vector)
116 {
117 this.vector = vector;
118 }
119
120 /***
121 * Getter for property collection.
122 *
123 * @return Value of property collection.
124 */
125 public java.util.HashMap getCollection()
126 {
127 return this.collection;
128 }
129
130 /***
131 * Setter for property collection.
132 *
133 * @param collection New value of property collection.
134 */
135 public void setCollection(final HashMap collection)
136 {
137 this.collection = collection;
138 }
139
140 /***
141 * Getter for property beans.
142 *
143 * @return Value of property beans.
144 */
145 public TestBean[] getBeans()
146 {
147 return this.beans;
148 }
149
150 /***
151 * Setter for property beans.
152 *
153 * @param beans New value of property beans.
154 */
155 public void setBeans(final TestBean[] beans)
156 {
157 this.beans = beans;
158 }
159
160 /***
161 * Getter for property doubleValue.
162 *
163 * @return Value of property doubleValue.
164 */
165 public Double getDoubleValue()
166 {
167 return this.doubleValue;
168 }
169
170 /***
171 * Setter for property doubleValue.
172 *
173 * @param doubleValue New value of property doubleValue.
174 */
175 public void setDoubleValue(final Double doubleValue)
176 {
177 this.doubleValue = doubleValue;
178 }
179
180 /***
181 * Getter for property serializedDoubleValue.
182 *
183 * @return Value of property serializedDoubleValue.
184 */
185 public java.io.Serializable getSerializedDoubleValue()
186 {
187 return this.serializedDoubleValue;
188 }
189
190 /***
191 * Setter for property serializedDoubleValue.
192 *
193 * @param serializedDoubleValue New value of property serializedDoubleValue.
194 */
195 public void setSerializedDoubleValue(
196 final Serializable serializedDoubleValue)
197 {
198 this.serializedDoubleValue = serializedDoubleValue;
199 }
200
201 }