001/** 002 * Copyright 2014 The Kuali Foundation Licensed under the 003 * Educational Community License, Version 2.0 (the "License"); you may 004 * not use this file except in compliance with the License. You may 005 * obtain a copy of the License at 006 * 007 * http://www.osedu.org/licenses/ECL-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, 010 * software distributed under the License is distributed on an "AS IS" 011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 012 * or implied. See the License for the specific language governing 013 * permissions and limitations under the License. 014 */ 015package org.kuali.mobility.dining.entity; 016 017import org.kuali.mobility.shared.entity.ErrorMessage; 018 019import javax.xml.bind.annotation.XmlAccessType; 020import javax.xml.bind.annotation.XmlAccessorType; 021import javax.xml.bind.annotation.XmlElement; 022import javax.xml.bind.annotation.XmlRootElement; 023import java.util.List; 024 025/** 026 * @author Kuali Mobility Team (mobility.dev@kuali.org) 027 */ 028@XmlRootElement(name="diningHall") 029@XmlAccessorType(XmlAccessType.FIELD) 030public class DiningHall { 031 private String name; 032 private String campus; 033 private Building building; 034 private String type; 035 @XmlElement(name="menuUrl") 036 private List<String> menuUrls; 037 @XmlElement(name="menu") 038 private List<? extends Menu> menus; 039 @XmlElement(name="error") 040 private List<? extends ErrorMessage> errors; 041 private int sortPosition; 042 043 public String getName() { 044 return name; 045 } 046 047 public void setName(String name) { 048 this.name = name; 049 } 050 051 public String getCampus() { 052 return campus; 053 } 054 055 public void setCampus(String campus) { 056 this.campus = campus; 057 } 058 059 public Building getBuilding() { 060 return building; 061 } 062 063 public void setBuilding(Building building) { 064 this.building = building; 065 } 066 067 public String getType() { 068 return type; 069 } 070 071 public void setType(String type) { 072 this.type = type; 073 } 074 075 public List<String> getMenuUrls() { 076 return menuUrls; 077 } 078 079 public void setMenuUrls(List<String> menuUrls) { 080 this.menuUrls = menuUrls; 081 } 082 083 public List<? extends Menu> getMenus() { 084 return menus; 085 } 086 087 public void setMenus(List<? extends Menu> menus) { 088 this.menus = menus; 089 } 090 091 public List<? extends ErrorMessage> getErrors() { 092 return errors; 093 } 094 095 public void setErrors(List<? extends ErrorMessage> errors) { 096 this.errors = errors; 097 } 098 099 public int getSortPosition() { 100 return sortPosition; 101 } 102 103 public void setSortPosition(int sortPosition) { 104 this.sortPosition = sortPosition; 105 } 106}