• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright (c) 2008, SnakeYAML
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
5  * in compliance with the License. You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software distributed under the License
10  * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
11  * or implied. See the License for the specific language governing permissions and limitations under
12  * the License.
13  */
14 package org.yaml.snakeyaml.recursive;
15 
16 import java.util.ArrayList;
17 import java.util.List;
18 
19 public class Human3 extends AbstractHuman {
20 
21   private Human3 father;
22   private Human3 mother;
23   private Human3 partner;
24   private Human3 bankAccountOwner;
25   protected List<Human3> children;
26 
Human3()27   public Human3() {
28     children = new ArrayList<Human3>();
29   }
30 
getFather()31   public Human3 getFather() {
32     return father;
33   }
34 
setFather(Human3 father)35   public void setFather(Human3 father) {
36     this.father = father;
37   }
38 
getMother()39   public Human3 getMother() {
40     return mother;
41   }
42 
setMother(Human3 mother)43   public void setMother(Human3 mother) {
44     this.mother = mother;
45   }
46 
getPartner()47   public Human3 getPartner() {
48     return partner;
49   }
50 
setPartner(Human3 partner)51   public void setPartner(Human3 partner) {
52     this.partner = partner;
53   }
54 
getBankAccountOwner()55   public Human3 getBankAccountOwner() {
56     return bankAccountOwner;
57   }
58 
setBankAccountOwner(Human3 bankAccountOwner)59   public void setBankAccountOwner(Human3 bankAccountOwner) {
60     this.bankAccountOwner = bankAccountOwner;
61   }
62 
getChildren()63   public List<Human3> getChildren() {
64     return children;
65   }
66 
setChildren(List<Human3> children)67   public void setChildren(List<Human3> children) {
68     this.children = children;
69   }
70 
71 }
72