001: /*
002: * Copyright 2005-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.DocumentHeader;
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023: import org.kuali.kfs.KFSPropertyConstants;
024:
025: /**
026: * This class is used to represent a distribution document.
027: */
028: public class DistributionDoc extends PersistableBusinessObjectBase {
029:
030: private String documentNumber;
031: private Integer finDocumentNextFromLineNbr;
032: private Integer finDocumentNextToLineNumber;
033: private Integer financialDocumentPostingYear;
034: private String finDocumentPostingPeriodCode;
035:
036: private DocumentHeader financialDocument;
037:
038: /**
039: * Default no-arg constructor.
040: */
041: public DistributionDoc() {
042:
043: }
044:
045: /**
046: * Gets the documentNumber attribute.
047: *
048: * @return Returns the documentNumber
049: */
050: public String getDocumentNumber() {
051: return documentNumber;
052: }
053:
054: /**
055: * Sets the documentNumber attribute.
056: *
057: * @param documentNumber The documentNumber to set.
058: */
059: public void setDocumentNumber(String documentNumber) {
060: this .documentNumber = documentNumber;
061: }
062:
063: /**
064: * Gets the finDocumentNextFromLineNbr attribute.
065: *
066: * @return Returns the finDocumentNextFromLineNbr
067: */
068: public Integer getFinDocumentNextFromLineNbr() {
069: return finDocumentNextFromLineNbr;
070: }
071:
072: /**
073: * Sets the finDocumentNextFromLineNbr attribute.
074: *
075: * @param finDocumentNextFromLineNbr The finDocumentNextFromLineNbr to set.
076: */
077: public void setFinDocumentNextFromLineNbr(
078: Integer finDocumentNextFromLineNbr) {
079: this .finDocumentNextFromLineNbr = finDocumentNextFromLineNbr;
080: }
081:
082: /**
083: * Gets the finDocumentNextToLineNumber attribute.
084: *
085: * @return Returns the finDocumentNextToLineNumber
086: */
087: public Integer getFinDocumentNextToLineNumber() {
088: return finDocumentNextToLineNumber;
089: }
090:
091: /**
092: * Sets the finDocumentNextToLineNumber attribute.
093: *
094: * @param finDocumentNextToLineNumber The finDocumentNextToLineNumber to set.
095: */
096: public void setFinDocumentNextToLineNumber(
097: Integer finDocumentNextToLineNumber) {
098: this .finDocumentNextToLineNumber = finDocumentNextToLineNumber;
099: }
100:
101: /**
102: * Gets the financialDocumentPostingYear attribute.
103: *
104: * @return Returns the financialDocumentPostingYear
105: */
106: public Integer getFinancialDocumentPostingYear() {
107: return financialDocumentPostingYear;
108: }
109:
110: /**
111: * Sets the financialDocumentPostingYear attribute.
112: *
113: * @param financialDocumentPostingYear The financialDocumentPostingYear to set.
114: */
115: public void setFinancialDocumentPostingYear(
116: Integer financialDocumentPostingYear) {
117: this .financialDocumentPostingYear = financialDocumentPostingYear;
118: }
119:
120: /**
121: * Gets the finDocumentPostingPeriodCode attribute.
122: *
123: * @return Returns the finDocumentPostingPeriodCode
124: */
125: public String getFinDocumentPostingPeriodCode() {
126: return finDocumentPostingPeriodCode;
127: }
128:
129: /**
130: * Sets the finDocumentPostingPeriodCode attribute.
131: *
132: * @param finDocumentPostingPeriodCode The finDocumentPostingPeriodCode to set.
133: */
134: public void setFinDocumentPostingPeriodCode(
135: String finDocumentPostingPeriodCode) {
136: this .finDocumentPostingPeriodCode = finDocumentPostingPeriodCode;
137: }
138:
139: /**
140: * Gets the financialDocument attribute.
141: *
142: * @return Returns the financialDocument
143: */
144: public DocumentHeader getFinancialDocument() {
145: return financialDocument;
146: }
147:
148: /**
149: * Sets the financialDocument attribute.
150: *
151: * @param financialDocument The financialDocument to set.
152: * @deprecated
153: */
154: public void setFinancialDocument(DocumentHeader financialDocument) {
155: this .financialDocument = financialDocument;
156: }
157:
158: /**
159: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
160: */
161: protected LinkedHashMap toStringMapper() {
162: LinkedHashMap m = new LinkedHashMap();
163: m
164: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
165: this.documentNumber);
166: return m;
167: }
168: }
|