KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > it > businesslogic > ireport > examples > beans > PersonBean


1 /*
2  * Copyright (C) 2005 - 2006 JasperSoft Corporation. All rights reserved.
3  * http://www.jaspersoft.com.
4  *
5  * Unless you have purchased a commercial license agreement from JasperSoft,
6  * the following license terms apply:
7  *
8  * This program is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License version 2 as published by
10  * the Free Software Foundation.
11  *
12  * This program is distributed WITHOUT ANY WARRANTY; and without the
13  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
14  * See the GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
18  * or write to:
19  *
20  * Free Software Foundation, Inc.,
21  * 59 Temple Place - Suite 330,
22  * Boston, MA USA 02111-1307
23  *
24  *
25  *
26  *
27  * PersonBean.java
28  *
29  * Created on 8 luglio 2004, 1.41
30  *
31  */

32
33 package it.businesslogic.ireport.examples.beans;
34
35 /**
36  *
37  * @author Administrator
38  */

39 public class PersonBean {
40     
41     private String JavaDoc firstName;
42     
43     private String JavaDoc lastName;
44     
45     private HobbyBean[] hobbies;
46     
47     private AddressBean address;
48     
49     /** Creates a new instance of PersonBean */
50     public PersonBean() {
51     this(null);
52     }
53     
54     public PersonBean(String JavaDoc name) {
55         this.setFirstName( name );
56         hobbies = new HobbyBean[0];
57     }
58     
59     /**
60      * Getter for property firstName.
61      * @return Value of property firstName.
62      */

63     public java.lang.String JavaDoc getFirstName() {
64         return firstName;
65     }
66     
67     /**
68      * Setter for property firstName.
69      * @param firstName New value of property firstName.
70      */

71     public void setFirstName(java.lang.String JavaDoc firstName) {
72         this.firstName = firstName;
73     }
74     
75     /**
76      * Getter for property lastName.
77      * @return Value of property lastName.
78      */

79     public java.lang.String JavaDoc getLastName() {
80         return lastName;
81     }
82     
83     /**
84      * Setter for property lastName.
85      * @param lastName New value of property lastName.
86      */

87     public void setLastName(java.lang.String JavaDoc lastName) {
88         this.lastName = lastName;
89     }
90     
91     /**
92      * Getter for property hobbies.
93      * @return Value of property hobbies.
94      */

95     public it.businesslogic.ireport.examples.beans.HobbyBean[] getHobbies() {
96         return this.hobbies;
97     }
98     
99     /**
100      * Setter for property hobbies.
101      * @param hobbies New value of property hobbies.
102      */

103     public void setHobbies(it.businesslogic.ireport.examples.beans.HobbyBean[] hobbies) {
104         this.hobbies = hobbies;
105     }
106     
107     /**
108      * Getter for property address.
109      * @return Value of property address.
110      */

111     public it.businesslogic.ireport.examples.beans.AddressBean getAddress() {
112         return address;
113     }
114     
115     /**
116      * Setter for property address.
117      * @param address New value of property address.
118      */

119     public void setAddress(it.businesslogic.ireport.examples.beans.AddressBean address) {
120         this.address = address;
121     }
122     
123 }
124
Popular Tags