1 /** 2 * Copyright 2005-2015 The Kuali Foundation 3 * 4 * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php 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.kuali.rice.krad.labs.inquiry; 17 18 import edu.sampleu.travel.dataobject.TravelCompany; 19 20 import java.util.List; 21 22 /** 23 * Represents a named group of {@link TravelCompany}s. This is not a mapped entity, it does not have a database table 24 * associated with it. 25 * 26 * @author Kuali Rice Team (rice.collab@kuali.org) 27 */ 28 public class TravelCompanyCategory { 29 30 private String name; 31 private List<TravelCompany> companies; 32 33 /** 34 * The name of this travel company category 35 * 36 * @return the travel company category name 37 */ 38 public String getName() { 39 return name; 40 } 41 42 /** 43 * Set the travel company category name. 44 * 45 * @param name the name to set 46 */ 47 public void setName(String name) { 48 this.name = name; 49 } 50 51 /** 52 * The {@link TravelCompany}s in this category. 53 * 54 * @return the {@link TravelCompany}s in this category. 55 */ 56 public List<TravelCompany> getCompanies() { 57 return companies; 58 } 59 60 /** 61 * Set the {@link TravelCompany}s in this category. 62 * 63 * @param companies the companies to set 64 */ 65 public void setCompanies(List<TravelCompany> companies) { 66 this.companies = companies; 67 } 68 }