01: /**
02: * Copyright (C) 2001-2006 France Telecom R&D
03: */package compositepk;
04:
05: import java.util.Collection;
06:
07: public class Person {
08:
09: String firstName;
10: String lastName;
11: Person father;
12: Collection addresses;
13:
14: public Collection getAddresses() {
15: return addresses;
16: }
17:
18: public void setAddresses(Collection addresses) {
19: this .addresses = addresses;
20: }
21:
22: public Person getFather() {
23: return father;
24: }
25:
26: public void setFather(Person father) {
27: this .father = father;
28: }
29:
30: public String getFirstName() {
31: return firstName;
32: }
33:
34: public void setFirstName(String firstName) {
35: this .firstName = firstName;
36: }
37:
38: public String getLastName() {
39: return lastName;
40: }
41:
42: public void setLastName(String lastName) {
43: this.lastName = lastName;
44: }
45:
46: }
|