1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.yaml.snakeyaml.recursive;
18
19 import java.util.HashSet;
20 import java.util.Set;
21
22 public class Human extends AbstractHuman {
23
24 private Human father;
25 private Human mother;
26 private Human partner;
27 private Human bankAccountOwner;
28 protected Set<Human> children;
29
30 public Human() {
31 children = new HashSet<Human>();
32 }
33
34 public Human getFather() {
35 return father;
36 }
37
38 public void setFather(Human father) {
39 this.father = father;
40 }
41
42 public Human getMother() {
43 return mother;
44 }
45
46 public void setMother(Human mother) {
47 this.mother = mother;
48 }
49
50 public Human getPartner() {
51 return partner;
52 }
53
54 public void setPartner(Human partner) {
55 this.partner = partner;
56 }
57
58 public Human getBankAccountOwner() {
59 return bankAccountOwner;
60 }
61
62 public void setBankAccountOwner(Human bankAccountOwner) {
63 this.bankAccountOwner = bankAccountOwner;
64 }
65
66 public Set<Human> getChildren() {
67 return children;
68 }
69
70 public void setChildren(Set<Human> children) {
71 this.children = children;
72 }
73
74 }