001 /* 002 * Copyright 2011 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 */ 016 017 package org.kuali.kfs.fp.businessobject; 018 019 import java.util.LinkedHashMap; 020 021 import org.kuali.kfs.sys.businessobject.SystemOptions; 022 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 023 import org.kuali.rice.kns.util.KualiDecimal; 024 025 /** 026 * This class is used to represent a Travel Per Diem business object. 027 */ 028 public class TravelPerDiem extends PersistableBusinessObjectBase { 029 private Integer universityFiscalYear; 030 private String perDiemCountryName; 031 private KualiDecimal perDiemRate; 032 private String perDiemCountryText; 033 034 private SystemOptions fiscalYear; 035 036 /** 037 * Default no-arg constructor. 038 */ 039 public TravelPerDiem() { 040 041 } 042 043 /** 044 * @return Returns the fiscalYear. 045 */ 046 public Integer getUniversityFiscalYear() { 047 return universityFiscalYear; 048 } 049 050 /** 051 * @param fiscalYear The fiscalYear to set. 052 */ 053 public void setUniversityFiscalYear(Integer fiscalYear) { 054 this.universityFiscalYear = fiscalYear; 055 } 056 057 /** 058 * @return Returns the perDiemCountryName. 059 */ 060 public String getPerDiemCountryName() { 061 return perDiemCountryName; 062 } 063 064 /** 065 * @param perDiemCountryName The perDiemCountryName to set. 066 */ 067 public void setPerDiemCountryName(String perDiemCountryName) { 068 this.perDiemCountryName = perDiemCountryName; 069 } 070 071 /** 072 * @return Returns the perDiemCountryText. 073 */ 074 public String getPerDiemCountryText() { 075 return perDiemCountryText; 076 } 077 078 /** 079 * @param perDiemCountryText The perDiemCountryText to set. 080 */ 081 public void setPerDiemCountryText(String perDiemCountryText) { 082 this.perDiemCountryText = perDiemCountryText; 083 } 084 085 /** 086 * @return Returns the perDiemRate. 087 */ 088 public KualiDecimal getPerDiemRate() { 089 return perDiemRate; 090 } 091 092 /** 093 * @param perDiemRate The perDiemRate to set. 094 */ 095 public void setPerDiemRate(KualiDecimal perDiemRate) { 096 this.perDiemRate = perDiemRate; 097 } 098 099 /** 100 * Gets the fiscalYear attribute. 101 * 102 * @return Returns the fiscalYear. 103 */ 104 public SystemOptions getFiscalYear() { 105 return fiscalYear; 106 } 107 108 /** 109 * Sets the fiscalYear attribute value. 110 * 111 * @param fiscalYear The fiscalYear to set. 112 */ 113 public void setFiscalYear(SystemOptions fiscalYear) { 114 this.fiscalYear = fiscalYear; 115 } 116 117 /** 118 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 119 */ 120 protected LinkedHashMap toStringMapper() { 121 LinkedHashMap m = new LinkedHashMap(); 122 m.put("perDiemCountryName", this.perDiemCountryName); 123 return m; 124 } 125 }