001: /*
002: * Copyright 2006-2007 The Kuali Foundation.
003: *
004: * Licensed under the Educational Community License, Version 1.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/ecl1.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.module.financial.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.KFSPropertyConstants;
023:
024: /**
025: * This class is used to represent an electronic payment claim.
026: */
027: public class ElectronicPaymentClaim extends
028: PersistableBusinessObjectBase {
029:
030: private String documentNumber;
031: private Integer financialDocumentLineNumber;
032: private String referenceFinancialDocumentNumber;
033: private Integer financialDocumentPostingYear;
034: private String financialDocumentPostingPeriodCode;
035:
036: /**
037: * Default constructor.
038: */
039: public ElectronicPaymentClaim() {
040:
041: }
042:
043: /**
044: * Gets the documentNumber attribute.
045: *
046: * @return Returns the documentNumber
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: public void setDocumentNumber(String documentNumber) {
058: this .documentNumber = documentNumber;
059: }
060:
061: /**
062: * Gets the financialDocumentLineNumber attribute.
063: *
064: * @return Returns the financialDocumentLineNumber
065: */
066: public Integer getFinancialDocumentLineNumber() {
067: return financialDocumentLineNumber;
068: }
069:
070: /**
071: * Sets the financialDocumentLineNumber attribute.
072: *
073: * @param financialDocumentLineNumber The financialDocumentLineNumber to set.
074: */
075: public void setFinancialDocumentLineNumber(
076: Integer financialDocumentLineNumber) {
077: this .financialDocumentLineNumber = financialDocumentLineNumber;
078: }
079:
080: /**
081: * Gets the referenceFinancialDocumentNumber attribute.
082: *
083: * @return Returns the referenceFinancialDocumentNumber
084: */
085: public String getReferenceFinancialDocumentNumber() {
086: return referenceFinancialDocumentNumber;
087: }
088:
089: /**
090: * Sets the referenceFinancialDocumentNumber attribute.
091: *
092: * @param referenceFinancialDocumentNumber The referenceFinancialDocumentNumber to set.
093: */
094: public void setReferenceFinancialDocumentNumber(
095: String referenceFinancialDocumentNumber) {
096: this .referenceFinancialDocumentNumber = referenceFinancialDocumentNumber;
097: }
098:
099: /**
100: * Gets the financialDocumentPostingYear attribute.
101: *
102: * @return Returns the financialDocumentPostingYear
103: */
104: public Integer getFinancialDocumentPostingYear() {
105: return financialDocumentPostingYear;
106: }
107:
108: /**
109: * Sets the financialDocumentPostingYear attribute.
110: *
111: * @param financialDocumentPostingYear The financialDocumentPostingYear to set.
112: */
113: public void setFinancialDocumentPostingYear(
114: Integer financialDocumentPostingYear) {
115: this .financialDocumentPostingYear = financialDocumentPostingYear;
116: }
117:
118: /**
119: * Gets the financialDocumentPostingPeriodCode attribute.
120: *
121: * @return Returns the financialDocumentPostingPeriodCode
122: */
123: public String getFinancialDocumentPostingPeriodCode() {
124: return financialDocumentPostingPeriodCode;
125: }
126:
127: /**
128: * Sets the financialDocumentPostingPeriodCode attribute.
129: *
130: * @param financialDocumentPostingPeriodCode The financialDocumentPostingPeriodCode to set.
131: */
132: public void setFinancialDocumentPostingPeriodCode(
133: String financialDocumentPostingPeriodCode) {
134: this .financialDocumentPostingPeriodCode = financialDocumentPostingPeriodCode;
135: }
136:
137: /**
138: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
139: */
140: protected LinkedHashMap toStringMapper() {
141: LinkedHashMap m = new LinkedHashMap();
142: m
143: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
144: this .documentNumber);
145: if (this .financialDocumentLineNumber != null) {
146: m.put("financialDocumentLineNumber",
147: this.financialDocumentLineNumber.toString());
148: }
149: return m;
150: }
151: }
|