001: /*
002: * Copyright (C) 2005 - 2008 JasperSoft Corporation. All rights reserved.
003: * http://www.jaspersoft.com.
004: *
005: * Unless you have purchased a commercial license agreement from JasperSoft,
006: * the following license terms apply:
007: *
008: * This program is free software; you can redistribute it and/or modify
009: * it under the terms of the GNU General Public License version 2 as published by
010: * the Free Software Foundation.
011: *
012: * This program is distributed WITHOUT ANY WARRANTY; and without the
013: * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
014: * See the GNU General Public License for more details.
015: *
016: * You should have received a copy of the GNU General Public License
017: * along with this program; if not, see http://www.gnu.org/licenses/gpl.txt
018: * or write to:
019: *
020: * Free Software Foundation, Inc.,
021: * 59 Temple Place - Suite 330,
022: * Boston, MA USA 02111-1307
023: *
024: *
025: *
026: *
027: * PersonBean.java
028: *
029: * Created on 8 luglio 2004, 1.41
030: *
031: */
032:
033: package it.businesslogic.ireport.examples.beans;
034:
035: /**
036: *
037: * @author Administrator
038: */
039: public class PersonBean {
040:
041: private String firstName;
042:
043: private String lastName;
044:
045: private HobbyBean[] hobbies;
046:
047: private AddressBean address;
048:
049: /** Creates a new instance of PersonBean */
050: public PersonBean() {
051: this (null);
052: }
053:
054: public PersonBean(String name) {
055: this .setFirstName(name);
056: hobbies = new HobbyBean[0];
057: }
058:
059: /**
060: * Getter for property firstName.
061: * @return Value of property firstName.
062: */
063: public java.lang.String getFirstName() {
064: return firstName;
065: }
066:
067: /**
068: * Setter for property firstName.
069: * @param firstName New value of property firstName.
070: */
071: public void setFirstName(java.lang.String firstName) {
072: this .firstName = firstName;
073: }
074:
075: /**
076: * Getter for property lastName.
077: * @return Value of property lastName.
078: */
079: public java.lang.String getLastName() {
080: return lastName;
081: }
082:
083: /**
084: * Setter for property lastName.
085: * @param lastName New value of property lastName.
086: */
087: public void setLastName(java.lang.String lastName) {
088: this .lastName = lastName;
089: }
090:
091: /**
092: * Getter for property hobbies.
093: * @return Value of property hobbies.
094: */
095: public it.businesslogic.ireport.examples.beans.HobbyBean[] getHobbies() {
096: return this .hobbies;
097: }
098:
099: /**
100: * Setter for property hobbies.
101: * @param hobbies New value of property hobbies.
102: */
103: public void setHobbies(
104: it.businesslogic.ireport.examples.beans.HobbyBean[] hobbies) {
105: this .hobbies = hobbies;
106: }
107:
108: /**
109: * Getter for property address.
110: * @return Value of property address.
111: */
112: public it.businesslogic.ireport.examples.beans.AddressBean getAddress() {
113: return address;
114: }
115:
116: /**
117: * Setter for property address.
118: * @param address New value of property address.
119: */
120: public void setAddress(
121: it.businesslogic.ireport.examples.beans.AddressBean address) {
122: this.address = address;
123: }
124:
125: }
|