KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > objectweb > speedo > pobjects > inheritance > horizontal > Person


1 /**
2  * Copyright (C) 2001-2004 France Telecom R&D
3  *
4  * This library is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU Lesser General Public
6  * License as published by the Free Software Foundation; either
7  * version 2 of the License, or (at your option) any later version.
8  *
9  * This library is distributed in the hope that it will be useful,
10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  * Lesser General Public License for more details.
13  *
14  * You should have received a copy of the GNU Lesser General Public
15  * License along with this library; if not, write to the Free Software
16  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17  */

18 package org.objectweb.speedo.pobjects.inheritance.horizontal;
19
20 import java.util.Date JavaDoc;
21
22 /**
23  *
24  * @author S.Chassande-Barrioz
25  */

26 public class Person {
27     private long personid;
28     private String JavaDoc firstname;
29     private String JavaDoc lastname;
30     private Address address;
31     private Date JavaDoc birthdate;
32     private String JavaDoc jobName;
33
34     public Person() {
35     }
36
37     public Person(String JavaDoc firstname,
38                   String JavaDoc lastname,
39                   Address address,
40                   Date JavaDoc birthdate,
41                   String JavaDoc jobName) {
42         this.firstname = firstname;
43         this.lastname = lastname;
44         this.address = address;
45         this.birthdate = birthdate;
46         this.jobName = jobName;
47     }
48
49     public String JavaDoc getFirstname() {
50         return firstname;
51     }
52
53     public void setFirstname(String JavaDoc firstname) {
54         this.firstname = firstname;
55     }
56
57     public String JavaDoc getLastname() {
58         return lastname;
59     }
60
61     public void setLastname(String JavaDoc lastname) {
62         this.lastname = lastname;
63     }
64
65     public Address getAddress() {
66         return address;
67     }
68
69     public void setAddress(Address address) {
70         this.address = address;
71     }
72
73     public Date JavaDoc getBirthdate() {
74         return birthdate;
75     }
76
77     public void setBirthdate(Date JavaDoc birthdate) {
78         this.birthdate = birthdate;
79     }
80
81     public String JavaDoc getJobName() {
82         return jobName;
83     }
84 }
85
Popular Tags