View Javadoc

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