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 */ 16 package org.yaml.snakeyaml.javabeans; 17 18 import java.util.List; 19 import java.util.Map; 20 21 public class House { 22 private String street; 23 private int number; 24 private List<Room> rooms; 25 private FrontDoor frontDoor; 26 private Map<String, String> reminders; 27 getStreet()28 public String getStreet() { 29 return street; 30 } 31 setStreet(String street)32 public void setStreet(String street) { 33 this.street = street; 34 } 35 getNumber()36 public int getNumber() { 37 return number; 38 } 39 setNumber(int number)40 public void setNumber(int number) { 41 this.number = number; 42 } 43 getRooms()44 public List<Room> getRooms() { 45 return rooms; 46 } 47 setRooms(List<Room> rooms)48 public void setRooms(List<Room> rooms) { 49 this.rooms = rooms; 50 } 51 getFrontDoor()52 public FrontDoor getFrontDoor() { 53 return frontDoor; 54 } 55 setFrontDoor(FrontDoor frontDoor)56 public void setFrontDoor(FrontDoor frontDoor) { 57 this.frontDoor = frontDoor; 58 } 59 getReminders()60 public Map<String, String> getReminders() { 61 return reminders; 62 } 63 setReminders(Map<String, String> reminders)64 public void setReminders(Map<String, String> reminders) { 65 this.reminders = reminders; 66 } 67 68 } 69