KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > support > jar1 > simple1 > Bean1


1 /*
2   * JBoss, Home of Professional Open Source
3   * Copyright 2005, JBoss Inc., and individual contributors as indicated
4   * by the @authors tag. See the copyright.txt in the distribution for a
5   * full listing of individual contributors.
6   *
7   * This is free software; you can redistribute it and/or modify it
8   * under the terms of the GNU Lesser General Public License as
9   * published by the Free Software Foundation; either version 2.1 of
10   * the License, or (at your option) any later version.
11   *
12   * This software is distributed in the hope that it will be useful,
13   * but WITHOUT ANY WARRANTY; without even the implied warranty of
14   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15   * Lesser General Public License for more details.
16   *
17   * You should have received a copy of the GNU Lesser General Public
18   * License along with this software; if not, write to the Free
19   * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
20   * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
21   */

22 package org.jboss.test.support.jar1.simple1;
23
24 import java.math.BigDecimal JavaDoc;
25 import java.math.BigInteger JavaDoc;
26 import java.util.Collection JavaDoc;
27 import java.util.Date JavaDoc;
28 import java.util.List JavaDoc;
29 import java.util.Properties JavaDoc;
30 import java.util.Set JavaDoc;
31
32 /**
33  *
34  * @author <a HREF="adrian@jboss.com">Adrian Brock</a>
35  * @author Scott.Stark@jboss.org
36  * @version $Revision:$
37  */

38 public class Bean1 implements ISimpleBean
39 {
40
41    // Constants -----------------------------------------------------
42

43    private static final long serialVersionUID = 1L;
44
45    // Attributes ----------------------------------------------------
46

47    /** Constructor used */
48    private String JavaDoc constructorUsed;
49
50    /** A string */
51    private String JavaDoc aString;
52
53    /** Byte */
54    private Byte JavaDoc aByte;
55
56    /** Boolean */
57    private Boolean JavaDoc aBoolean;
58
59    /** Character */
60    private Character JavaDoc aCharacter;
61
62    /** Short */
63    private Short JavaDoc aShort;
64
65    /** Int */
66    private Integer JavaDoc anInt;
67
68    /** Long */
69    private Long JavaDoc aLong;
70
71    /** Float */
72    private Float JavaDoc aFloat;
73
74    /** Double */
75    private Double JavaDoc aDouble;
76
77    /** Date */
78    private Date JavaDoc aDate;
79
80    /** BigDecimal */
81    private BigDecimal JavaDoc aBigDecimal;
82
83    /** BigDecimal */
84    private BigInteger JavaDoc aBigInteger;
85
86    /** byte */
87    private byte abyte;
88
89    /** boolean */
90    private boolean aboolean;
91
92    /** char */
93    private char achar;
94
95    /** short */
96    private short ashort;
97
98    /** int */
99    private int anint;
100
101    /** long */
102    private long along;
103
104    /** float */
105    private float afloat;
106
107    /** double */
108    private double adouble;
109
110    /** a simple bean */
111    private ISimpleBean other;
112    
113    /** A collection */
114    private Collection JavaDoc collection;
115
116    /** A list */
117    private List JavaDoc aList;
118    /** A set */
119    private Set JavaDoc aSet;
120    /** A properties */
121    private Properties JavaDoc props;
122
123    // Static --------------------------------------------------------
124

125    // Constructors --------------------------------------------------
126

127    public Bean1()
128    {
129       constructorUsed = "()";
130    }
131
132    public Bean1(String JavaDoc string)
133    {
134       constructorUsed = string;
135    }
136
137    public Bean1(ISimpleBean other)
138    {
139       constructorUsed = ISimpleBean.class.getName();
140       this.other = other;
141    }
142    
143    // Public --------------------------------------------------------
144

145    public String JavaDoc getConstructorUsed()
146    {
147       return constructorUsed;
148    }
149
150    public BigDecimal JavaDoc getABigDecimal()
151    {
152       return aBigDecimal;
153    }
154
155    public void setABigDecimal(BigDecimal JavaDoc bigDecimal)
156    {
157       aBigDecimal = bigDecimal;
158    }
159
160    public BigInteger JavaDoc getABigInteger()
161    {
162       return aBigInteger;
163    }
164
165    public void setABigInteger(BigInteger JavaDoc bigInteger)
166    {
167       aBigInteger = bigInteger;
168    }
169
170    public boolean isAboolean()
171    {
172       return aboolean;
173    }
174
175    public void setAboolean(boolean aboolean)
176    {
177       this.aboolean = aboolean;
178    }
179
180    public Boolean JavaDoc getABoolean()
181    {
182       return aBoolean;
183    }
184
185    public void setABoolean(Boolean JavaDoc boolean1)
186    {
187       aBoolean = boolean1;
188    }
189
190    public byte getAbyte()
191    {
192       return abyte;
193    }
194
195    public void setAbyte(byte abyte)
196    {
197       this.abyte = abyte;
198    }
199
200    public Byte JavaDoc getAByte()
201    {
202       return aByte;
203    }
204
205    public void setAByte(Byte JavaDoc byte1)
206    {
207       aByte = byte1;
208    }
209
210    public char getAchar()
211    {
212       return achar;
213    }
214
215    public void setAchar(char achar)
216    {
217       this.achar = achar;
218    }
219
220    public Character JavaDoc getACharacter()
221    {
222       return aCharacter;
223    }
224
225    public void setACharacter(Character JavaDoc character)
226    {
227       aCharacter = character;
228    }
229
230    public Date JavaDoc getADate()
231    {
232       return aDate;
233    }
234
235    public void setADate(Date JavaDoc date)
236    {
237       aDate = date;
238    }
239
240    public double getAdouble()
241    {
242       return adouble;
243    }
244
245    public void setAdouble(double adouble)
246    {
247       this.adouble = adouble;
248    }
249
250    public Double JavaDoc getADouble()
251    {
252       return aDouble;
253    }
254
255    public void setADouble(Double JavaDoc double1)
256    {
257       aDouble = double1;
258    }
259
260    public float getAfloat()
261    {
262       return afloat;
263    }
264
265    public void setAfloat(float afloat)
266    {
267       this.afloat = afloat;
268    }
269
270    public Float JavaDoc getAFloat()
271    {
272       return aFloat;
273    }
274
275    public void setAFloat(Float JavaDoc float1)
276    {
277       aFloat = float1;
278    }
279
280    public long getAlong()
281    {
282       return along;
283    }
284
285    public void setAlong(long along)
286    {
287       this.along = along;
288    }
289
290    public Long JavaDoc getALong()
291    {
292       return aLong;
293    }
294
295    public void setALong(Long JavaDoc long1)
296    {
297       aLong = long1;
298    }
299
300    public int getAnint()
301    {
302       return anint;
303    }
304
305    public void setAnint(int anint)
306    {
307       this.anint = anint;
308    }
309
310    public Integer JavaDoc getAnInt()
311    {
312       return anInt;
313    }
314
315    public void setAnInt(Integer JavaDoc anInt)
316    {
317       this.anInt = anInt;
318    }
319
320    public short getAshort()
321    {
322       return ashort;
323    }
324
325    public void setAshort(short ashort)
326    {
327       this.ashort = ashort;
328    }
329
330    public Short JavaDoc getAShort()
331    {
332       return aShort;
333    }
334
335    public void setAShort(Short JavaDoc short1)
336    {
337       aShort = short1;
338    }
339
340    public String JavaDoc getAString()
341    {
342       return aString;
343    }
344
345    public void setAString(String JavaDoc string)
346    {
347       aString = string;
348    }
349
350    public ISimpleBean getOther()
351    {
352       return other;
353    }
354
355    public void setOther(ISimpleBean other)
356    {
357       this.other = other;
358    }
359    
360    public Collection JavaDoc getCollection()
361    {
362       return collection;
363    }
364    
365    public void setCollection(Collection JavaDoc collection)
366    {
367       this.collection = collection;
368    }
369
370    public List JavaDoc getAList()
371    {
372       return aList;
373    }
374
375    public void setAList(List JavaDoc aList)
376    {
377       this.aList = aList;
378    }
379
380    public Set JavaDoc getASet()
381    {
382       return aSet;
383    }
384
385    public void setASet(Set JavaDoc aSet)
386    {
387       this.aSet = aSet;
388    }
389
390    public Properties JavaDoc getProps()
391    {
392       return props;
393    }
394
395    public void setProps(Properties JavaDoc props)
396    {
397       this.props = props;
398    }
399
400 }
401    
Popular Tags