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