View Javadoc

1   /**
2    * Copyright (c) 2008-2012, 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  package org.yaml.snakeyaml.recursive.generics;
17  
18  import java.util.Date;
19  
20  public abstract class AbstractHumanGen<T, K extends AbstractHumanGen<T, ?>> {
21      private String name;
22      private Date birthday;
23      private String birthPlace;
24      private K father;
25      private K mother;
26      private K partner;
27      private K bankAccountOwner;
28      protected T children;
29  
30      public String getName() {
31          return name;
32      }
33  
34      public void setName(String name) {
35          this.name = name;
36      }
37  
38      public Date getBirthday() {
39          return birthday;
40      }
41  
42      public void setBirthday(Date birthday) {
43          this.birthday = birthday;
44      }
45  
46      public String getBirthPlace() {
47          return birthPlace;
48      }
49  
50      public K getFather() {
51          return father;
52      }
53  
54      public void setFather(K father) {
55          this.father = father;
56      }
57  
58      public K getMother() {
59          return mother;
60      }
61  
62      public void setMother(K mother) {
63          this.mother = mother;
64      }
65  
66      public void setBirthPlace(String birthPlace) {
67          this.birthPlace = birthPlace;
68      }
69  
70      public T getChildren() {
71          return children;
72      }
73  
74      public void setChildren(T children) {
75          this.children = children;
76      }
77  
78      public K getPartner() {
79          return partner;
80      }
81  
82      public void setPartner(K partner) {
83          this.partner = partner;
84      }
85  
86      public K getBankAccountOwner() {
87          return bankAccountOwner;
88      }
89  
90      public void setBankAccountOwner(K bankAccountOwner) {
91          this.bankAccountOwner = bankAccountOwner;
92      }
93  
94  }