001/** 002 * Copyright 2005-2015 The Kuali Foundation 003 * 004 * Licensed under the Educational Community License, Version 2.0 (the "License"); 005 * you may not use this file except in compliance with the License. 006 * You may obtain a copy of the License at 007 * 008 * http://www.opensource.org/licenses/ecl2.php 009 * 010 * Unless required by applicable law or agreed to in writing, software 011 * distributed under the License is distributed on an "AS IS" BASIS, 012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013 * See the License for the specific language governing permissions and 014 * limitations under the License. 015 */ 016package org.kuali.rice.krad.labs.inquiry; 017 018import edu.sampleu.travel.dataobject.TravelCompany; 019 020import java.util.List; 021 022/** 023 * Represents a named group of {@link TravelCompany}s. This is not a mapped entity, it does not have a database table 024 * associated with it. 025 * 026 * @author Kuali Rice Team (rice.collab@kuali.org) 027 */ 028public class TravelCompanyCategory { 029 030 private String name; 031 private List<TravelCompany> companies; 032 033 /** 034 * The name of this travel company category 035 * 036 * @return the travel company category name 037 */ 038 public String getName() { 039 return name; 040 } 041 042 /** 043 * Set the travel company category name. 044 * 045 * @param name the name to set 046 */ 047 public void setName(String name) { 048 this.name = name; 049 } 050 051 /** 052 * The {@link TravelCompany}s in this category. 053 * 054 * @return the {@link TravelCompany}s in this category. 055 */ 056 public List<TravelCompany> getCompanies() { 057 return companies; 058 } 059 060 /** 061 * Set the {@link TravelCompany}s in this category. 062 * 063 * @param companies the companies to set 064 */ 065 public void setCompanies(List<TravelCompany> companies) { 066 this.companies = companies; 067 } 068}