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.ar.businessobject; 017 018 import java.util.LinkedHashMap; 019 020 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; 021 import org.kuali.rice.kns.util.KualiDecimal; 022 023 /** 024 * @author Kuali Nervous System Team (kualidev@oncourse.iu.edu) 025 */ 026 public class NonInvoicedDistribution extends PersistableBusinessObjectBase { 027 028 private String documentNumber; // ??? It's not the payment application document number 029 private Integer financialDocumentLineNumber; 030 private String referenceFinancialDocumentNumber; 031 private KualiDecimal financialDocumentLineAmount; 032 033 private NonAppliedHolding nonAppliedHolding; 034 035 /** 036 * Default constructor. 037 */ 038 public NonInvoicedDistribution() { 039 040 } 041 042 /** 043 * Gets the documentNumber attribute. 044 * 045 * @return Returns the documentNumber 046 * 047 */ 048 public String getDocumentNumber() { 049 return documentNumber; 050 } 051 052 /** 053 * Sets the documentNumber attribute. 054 * 055 * @param documentNumber The documentNumber to set. 056 * 057 */ 058 public void setDocumentNumber(String documentNumber) { 059 this.documentNumber = documentNumber; 060 } 061 062 063 /** 064 * Gets the financialDocumentLineNumber attribute. 065 * 066 * @return Returns the financialDocumentLineNumber 067 * 068 */ 069 public Integer getFinancialDocumentLineNumber() { 070 return financialDocumentLineNumber; 071 } 072 073 /** 074 * Sets the financialDocumentLineNumber attribute. 075 * 076 * @param financialDocumentLineNumber The financialDocumentLineNumber to set. 077 * 078 */ 079 public void setFinancialDocumentLineNumber(Integer financialDocumentLineNumber) { 080 this.financialDocumentLineNumber = financialDocumentLineNumber; 081 } 082 083 084 /** 085 * Gets the referenceFinancialDocumentNumber attribute. 086 * 087 * @return Returns the referenceFinancialDocumentNumber 088 * 089 */ 090 public String getReferenceFinancialDocumentNumber() { 091 return referenceFinancialDocumentNumber; 092 } 093 094 /** 095 * Sets the referenceFinancialDocumentNumber attribute. 096 * 097 * @param referenceFinancialDocumentNumber The referenceFinancialDocumentNumber to set. 098 * 099 */ 100 public void setReferenceFinancialDocumentNumber(String referenceFinancialDocumentNumber) { 101 this.referenceFinancialDocumentNumber = referenceFinancialDocumentNumber; 102 } 103 104 105 /** 106 * Gets the financialDocumentLineAmount attribute. 107 * 108 * @return Returns the financialDocumentLineAmount 109 * 110 */ 111 public KualiDecimal getFinancialDocumentLineAmount() { 112 return financialDocumentLineAmount; 113 } 114 115 /** 116 * Sets the financialDocumentLineAmount attribute. 117 * 118 * @param financialDocumentLineAmount The financialDocumentLineAmount to set. 119 * 120 */ 121 public void setFinancialDocumentLineAmount(KualiDecimal financialDocumentLineAmount) { 122 this.financialDocumentLineAmount = financialDocumentLineAmount; 123 } 124 125 126 /** 127 * Gets the nonAppliedHolding attribute. 128 * 129 * @return Returns the nonAppliedHolding 130 * 131 */ 132 public NonAppliedHolding getNonAppliedHolding() { 133 return nonAppliedHolding; 134 } 135 136 /** 137 * Sets the nonAppliedHolding attribute. 138 * 139 * @param nonAppliedHolding The nonAppliedHolding to set. 140 */ 141 public void setNonAppliedHolding(NonAppliedHolding nonAppliedHolding) { 142 this.nonAppliedHolding = nonAppliedHolding; 143 } 144 145 /** 146 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() 147 */ 148 protected LinkedHashMap toStringMapper() { 149 LinkedHashMap m = new LinkedHashMap(); 150 m.put("documentNumber", this.documentNumber); 151 if (this.financialDocumentLineNumber != null) { 152 m.put("financialDocumentLineNumber", this.financialDocumentLineNumber.toString()); 153 } 154 m.put("referenceFinancialDocumentNumber", this.referenceFinancialDocumentNumber); 155 return m; 156 } 157 158 }