1/**
2 * Copyright (c) 2008, 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 */
16package org.yaml.snakeyaml.constructor;
17
18/**
19 * Test JavaBean
20 */
21public class Person {
22    private String firstName;
23    private String lastName;
24    private Integer age;
25
26    public Person(String firstName, String lastName, Integer age) {
27        this.firstName = firstName;
28        this.lastName = lastName;
29        this.age = age;
30    }
31
32    public Person() {
33    }
34
35    public Person(String lastName) {
36        this.lastName = lastName;
37    }
38
39    public String getFirstName() {
40        return firstName;
41    }
42
43    public void setFirstName(String firstName) {
44        this.firstName = firstName;
45    }
46
47    public String getLastName() {
48        return lastName;
49    }
50
51    public void setLastName(String lastName) {
52        this.lastName = lastName;
53    }
54
55    public Integer getAge() {
56        return age;
57    }
58
59    public void setAge(Integer age) {
60        this.age = age;
61    }
62
63}
64