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 FeeProcessingTotalsProcessedGrandTotalLine extends TransientBusinessObjectBase {
024 private String feeMethodCode;
025 private String eDocNumber;
026 private int linesGenerated = 0;
027 private KualiDecimal totalIncomeAmount = KualiDecimal.ZERO;
028 private KualiDecimal totalPrincipalAmount = KualiDecimal.ZERO;
029
030 public FeeProcessingTotalsProcessedGrandTotalLine() {
031 feeMethodCode = "Grand Totals";
032 }
033
034 /**
035 * Gets the feeMethodCode attribute.
036 * @return Returns the feeMethodCode.
037 */
038 public String getFeeMethodCode() {
039 return feeMethodCode;
040 }
041
042
043 /**
044 * Sets the feeMethodCode attribute value.
045 * @param feeMethodCode The feeMethodCode to set.
046 */
047 public void setFeeMethodCode(String feeMethodCode) {
048 this.feeMethodCode = feeMethodCode;
049 }
050
051 /**
052 * Gets the eDocNumber attribute.
053 * @return Returns the eDocNumber.
054 */
055 public String getEDocNumber() {
056 return eDocNumber;
057 }
058
059 /**
060 * Sets the eDocNumber attribute value.
061 * @param eDocNumber The eDocNumber to set.
062 */
063 public void setEDocNumber(String eDocNumber) {
064 this.eDocNumber = eDocNumber;
065 }
066
067 /**
068 * Gets the linesGenerated attribute.
069 * @return Returns the linesGenerated.
070 */
071 public int getLinesGenerated() {
072 return linesGenerated;
073 }
074
075 /**
076 * Sets the linesGenerated attribute value.
077 * @param linesGenerated The linesGenerated to set.
078 */
079 public void setLinesGenerated(int linesGenerated) {
080 this.linesGenerated = linesGenerated;
081 }
082
083 /**
084 * Gets the totalIncomeAmount attribute.
085 * @return Returns the totalIncomeAmount.
086 */
087 public KualiDecimal getTotalIncomeAmount() {
088 return totalIncomeAmount;
089 }
090
091 /**
092 * Sets the totalIncomeAmount attribute value.
093 * @param totalIncomeAmount The totalIncomeAmount to set.
094 */
095 public void setTotalIncomeAmount(KualiDecimal totalIncomeAmount) {
096 this.totalIncomeAmount = totalIncomeAmount;
097 }
098
099 /**
100 * Gets the totalPrincipalAmount attribute.
101 * @return Returns the totalPrincipalAmount.
102 */
103 public KualiDecimal getTotalPrincipalAmount() {
104 return totalPrincipalAmount;
105 }
106
107 /**
108 * Sets the totalPrincipalAmount attribute value.
109 * @param totalPrincipalAmount The totalPrincipalAmount to set.
110 */
111 public void setTotalPrincipalAmount(KualiDecimal totalPrincipalAmount) {
112 this.totalPrincipalAmount = totalPrincipalAmount;
113 }
114
115 /**
116 * A map of the "keys" of this transient business object
117 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
118 */
119 @Override
120 protected LinkedHashMap toStringMapper() {
121 LinkedHashMap pks = new LinkedHashMap<String, Object>();
122 pks.put("feeMethodLabel",this.getFeeMethodCode());
123 pks.put("eDocNumber",this.getEDocNumber());
124 pks.put("linesGeneraged", this.getLinesGenerated());
125 pks.put("totalIncomeAmount",this.getTotalIncomeAmount());
126 pks.put("totalPrincipalAmount",this.getTotalPrincipalAmount());
127
128 return pks;
129 }
130 }