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.kra.routingform.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.core.util.KualiInteger;
023: import org.kuali.kfs.KFSPropertyConstants;
024: import org.kuali.module.chart.bo.Account;
025: import org.kuali.module.chart.bo.Chart;
026: import org.kuali.module.chart.bo.Org;
027:
028: /**
029: *
030: */
031: public class RoutingFormInstitutionCostShare extends
032: PersistableBusinessObjectBase {
033:
034: private Integer routingFormCostShareSequenceNumber;
035: private String documentNumber;
036: private String accountNumber;
037: private String chartOfAccountsCode;
038: private String organizationCode;
039: private KualiInteger routingFormCostShareAmount;
040: private String routingFormCostShareDescription;
041:
042: private Account account;
043: private Chart chartOfAccounts;
044: private Org organization;
045:
046: /**
047: * Default constructor.
048: */
049: public RoutingFormInstitutionCostShare() {
050:
051: }
052:
053: /**
054: * Gets the routingFormCostShareSequenceNumber attribute.
055: *
056: * @return Returns the routingFormCostShareSequenceNumber
057: */
058: public Integer getRoutingFormCostShareSequenceNumber() {
059: return routingFormCostShareSequenceNumber;
060: }
061:
062: /**
063: * Sets the routingFormCostShareSequenceNumber attribute.
064: *
065: * @param routingFormCostShareSequenceNumber The routingFormCostShareSequenceNumber to set.
066: */
067: public void setRoutingFormCostShareSequenceNumber(
068: Integer routingFormCostShareSequenceNumber) {
069: this .routingFormCostShareSequenceNumber = routingFormCostShareSequenceNumber;
070: }
071:
072: /**
073: * Gets the documentNumber attribute.
074: *
075: * @return Returns the documentNumber
076: */
077: public String getDocumentNumber() {
078: return documentNumber;
079: }
080:
081: /**
082: * Sets the documentNumber attribute.
083: *
084: * @param documentNumber The documentNumber to set.
085: */
086: public void setDocumentNumber(String documentNumber) {
087: this .documentNumber = documentNumber;
088: }
089:
090: /**
091: * Gets the accountNumber attribute.
092: *
093: * @return Returns the accountNumber
094: */
095: public String getAccountNumber() {
096: return accountNumber;
097: }
098:
099: /**
100: * Sets the accountNumber attribute.
101: *
102: * @param accountNumber The accountNumber to set.
103: */
104: public void setAccountNumber(String accountNumber) {
105: this .accountNumber = accountNumber;
106: }
107:
108: /**
109: * Gets the chartOfAccountsCode attribute.
110: *
111: * @return Returns the chartOfAccountsCode
112: */
113: public String getChartOfAccountsCode() {
114: return chartOfAccountsCode;
115: }
116:
117: /**
118: * Sets the chartOfAccountsCode attribute.
119: *
120: * @param chartOfAccountsCode The chartOfAccountsCode to set.
121: */
122: public void setChartOfAccountsCode(String chartOfAccountsCode) {
123: this .chartOfAccountsCode = chartOfAccountsCode;
124: }
125:
126: /**
127: * Gets the organizationCode attribute.
128: *
129: * @return Returns the organizationCode
130: */
131: public String getOrganizationCode() {
132: return organizationCode;
133: }
134:
135: /**
136: * Sets the organizationCode attribute.
137: *
138: * @param organizationCode The organizationCode to set.
139: */
140: public void setOrganizationCode(String organizationCode) {
141: this .organizationCode = organizationCode;
142: }
143:
144: /**
145: * Gets the routingFormCostShareAmount attribute.
146: *
147: * @return Returns the routingFormCostShareAmount
148: */
149: public KualiInteger getRoutingFormCostShareAmount() {
150: return routingFormCostShareAmount;
151: }
152:
153: /**
154: * Sets the routingFormCostShareAmount attribute.
155: *
156: * @param routingFormCostShareAmount The routingFormCostShareAmount to set.
157: */
158: public void setRoutingFormCostShareAmount(
159: KualiInteger routingFormCostShareAmount) {
160: this .routingFormCostShareAmount = routingFormCostShareAmount;
161: }
162:
163: /**
164: * Gets the routingFormCostShareDescription attribute.
165: *
166: * @return Returns the routingFormCostShareDescription
167: */
168: public String getRoutingFormCostShareDescription() {
169: return routingFormCostShareDescription;
170: }
171:
172: /**
173: * Sets the routingFormCostShareDescription attribute.
174: *
175: * @param routingFormCostShareDescription The routingFormCostShareDescription to set.
176: */
177: public void setRoutingFormCostShareDescription(
178: String routingFormCostShareDescription) {
179: this .routingFormCostShareDescription = routingFormCostShareDescription;
180: }
181:
182: /**
183: * Gets the account attribute.
184: *
185: * @return Returns the account
186: */
187: public Account getAccount() {
188: return account;
189: }
190:
191: /**
192: * Sets the account attribute.
193: *
194: * @param account The account to set.
195: * @deprecated
196: */
197: public void setAccount(Account account) {
198: this .account = account;
199: }
200:
201: /**
202: * Gets the chartOfAccounts attribute.
203: *
204: * @return Returns the chartOfAccounts
205: */
206: public Chart getChartOfAccounts() {
207: return chartOfAccounts;
208: }
209:
210: /**
211: * Sets the chartOfAccounts attribute.
212: *
213: * @param chartOfAccounts The chartOfAccounts to set.
214: * @deprecated
215: */
216: public void setChartOfAccounts(Chart chartOfAccounts) {
217: this .chartOfAccounts = chartOfAccounts;
218: }
219:
220: /**
221: * Gets the organization attribute.
222: *
223: * @return Returns the organization
224: */
225: public Org getOrganization() {
226: return organization;
227: }
228:
229: /**
230: * Sets the organization attribute.
231: *
232: * @param organization The organization to set.
233: * @deprecated
234: */
235: public void setOrganization(Org organization) {
236: this .organization = organization;
237: }
238:
239: /**
240: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
241: */
242: protected LinkedHashMap toStringMapper() {
243: LinkedHashMap m = new LinkedHashMap();
244: if (this .routingFormCostShareSequenceNumber != null) {
245: m.put("routingFormCostShareSequenceNumber",
246: this.routingFormCostShareSequenceNumber.toString());
247: }
248: m
249: .put(KFSPropertyConstants.DOCUMENT_NUMBER,
250: this.documentNumber);
251: return m;
252: }
253: }
|