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.kfs.module.endow.EndowPropertyConstants; 021 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 022 import org.kuali.rice.kns.util.KualiDecimal; 023 024 /** 025 * This KemidCurrentCash class provides the current cash infor: income and principal for a KEMID. 026 */ 027 public class KemidCurrentCash extends PersistableBusinessObjectBase { 028 029 private String kemid; 030 private KualiDecimal currentIncomeCash; 031 private KualiDecimal currentPrincipalCash; 032 033 private KEMID kemidObjRef; 034 035 /** 036 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 037 */ 038 @Override 039 protected LinkedHashMap toStringMapper() { 040 LinkedHashMap<String, String> m = new LinkedHashMap<String, String>(); 041 m.put(EndowPropertyConstants.KEMID, this.kemid); 042 return m; 043 } 044 045 /** 046 * Gets the currentIncomeCash. 047 * 048 * @return currentIncomeCash 049 */ 050 public KualiDecimal getCurrentIncomeCash() { 051 return currentIncomeCash; 052 } 053 054 /** 055 * Sets the currentIncomeCash. 056 * 057 * @param currentIncomeCash 058 */ 059 public void setCurrentIncomeCash(KualiDecimal currentIncomeCash) { 060 this.currentIncomeCash = currentIncomeCash; 061 } 062 063 /** 064 * Gets the currentPrincipalCash. 065 * 066 * @return currentPrincipalCash 067 */ 068 public KualiDecimal getCurrentPrincipalCash() { 069 return currentPrincipalCash; 070 } 071 072 /** 073 * Sets the currentPrincipalCash. 074 * 075 * @param currentPrincipalCash 076 */ 077 public void setCurrentPrincipalCash(KualiDecimal currentPrincipalCash) { 078 this.currentPrincipalCash = currentPrincipalCash; 079 } 080 081 /** 082 * Gets the kemid. 083 * 084 * @return kemid 085 */ 086 public String getKemid() { 087 return kemid; 088 } 089 090 /** 091 * Sets the kemid. 092 * 093 * @param kemid 094 */ 095 public void setKemid(String kemid) { 096 this.kemid = kemid; 097 } 098 099 /** 100 * Gets the kemidObjRef. 101 * 102 * @return kemidObjRef 103 */ 104 public KEMID getKemidObjRef() { 105 return kemidObjRef; 106 } 107 108 /** 109 * Sets the kemidObjRef. 110 * 111 * @param kemidObjRef 112 */ 113 public void setKemidObjRef(KEMID kemidObjRef) { 114 this.kemidObjRef = kemidObjRef; 115 } 116 117 }