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 package org.kuali.kfs.module.endow.businessobject; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.rice.kns.bo.TransientBusinessObjectBase; 021 import org.kuali.rice.kns.util.KualiDecimal; 022 023 public class FeeProcessingWaivedAndAccruedGrandTotalLine extends TransientBusinessObjectBase { 024 private String total; 025 private String kemid; 026 private KualiDecimal totalWaivedFees = KualiDecimal.ZERO; 027 private KualiDecimal totalAccruedFees = KualiDecimal.ZERO; 028 029 public FeeProcessingWaivedAndAccruedGrandTotalLine() { 030 total = "Grand Totals"; 031 kemid = " "; 032 } 033 034 /** 035 * Gets the total attribute. 036 * @return Returns the total. 037 */ 038 public String getTotal() { 039 return total; 040 } 041 042 /** 043 * Sets the total attribute. 044 * @return Returns the total. 045 */ 046 public void setTotal(String total) { 047 this.total = total; 048 } 049 050 /** 051 * Gets the kemid attribute. 052 * @return Returns the kemid. 053 */ 054 public String getKemid() { 055 return kemid; 056 } 057 058 /** 059 * Sets the kemid attribute. 060 * @return Returns the kemid. 061 */ 062 public void setKemid(String kemid) { 063 this.kemid = kemid; 064 } 065 066 /** 067 * Gets the totalWaivedFees attribute. 068 * @return Returns the totalWaivedFees. 069 */ 070 public KualiDecimal getTotalWaivedFees() { 071 return totalWaivedFees; 072 } 073 074 /** 075 * Sets the totalWaivedFees attribute value. 076 * @param totalWaivedFees The totalWaivedFees to set. 077 */ 078 public void setTotalWaivedFees(KualiDecimal totalWaivedFees) { 079 this.totalWaivedFees = totalWaivedFees; 080 } 081 082 /** 083 * Gets the totalAccruedFees attribute. 084 * @return Returns the totalAccruedFees. 085 */ 086 public KualiDecimal getTotalAccruedFees() { 087 return totalAccruedFees; 088 } 089 090 /** 091 * Sets the totalAccruedFees attribute value. 092 * @param totalAccruedFees The totalAccruedFees to set. 093 */ 094 public void setTotalAccruedFees(KualiDecimal totalAccruedFees) { 095 this.totalAccruedFees = totalAccruedFees; 096 } 097 098 /** 099 * A map of the "keys" of this transient business object 100 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 101 */ 102 @Override 103 protected LinkedHashMap toStringMapper() { 104 LinkedHashMap pks = new LinkedHashMap<String, Object>(); 105 pks.put("total",this.getTotal()); 106 pks.put("kemid",this.getKemid()); 107 pks.put("totalWaivedFees",this.getTotalWaivedFees()); 108 pks.put("totalAccruedFees",this.getTotalAccruedFees()); 109 110 return pks; 111 } 112 }