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.PersistableBusinessObjectBase;
022: import org.kuali.core.util.KualiDecimal;
023: import org.kuali.kfs.bo.Options;
024: import org.kuali.module.chart.bo.Account;
025: import org.kuali.module.chart.bo.Chart;
026: import org.kuali.module.chart.bo.ObjectCode;
027:
028: /**
029: * This class is used to represent a Wire Charge business object, which is a method of payment to an institution.
030: */
031: public class WireCharge extends PersistableBusinessObjectBase {
032:
033: private Integer universityFiscalYear;
034: private String chartOfAccountsCode;
035: private String accountNumber;
036: private String incomeFinancialObjectCode;
037: private String expenseFinancialObjectCode;
038: private KualiDecimal domesticChargeAmt;
039: private KualiDecimal foreignChargeAmt;
040:
041: private Options fiscalYear;
042: private Chart chartOfAccounts;
043: private ObjectCode incomeFinancialObject;
044: private ObjectCode expenseFinancialObject;
045: private Account account;
046:
047: /**
048: * Default no-arg constructor.
049: */
050: public WireCharge() {
051:
052: }
053:
054: /**
055: * Gets the universityFiscalYear attribute.
056: *
057: * @return Returns the universityFiscalYear
058: */
059: public Integer getUniversityFiscalYear() {
060: return universityFiscalYear;
061: }
062:
063: /**
064: * Sets the universityFiscalYear attribute.
065: *
066: * @param universityFiscalYear The universityFiscalYear to set.
067: */
068: public void setUniversityFiscalYear(Integer universityFiscalYear) {
069: this .universityFiscalYear = universityFiscalYear;
070: }
071:
072: /**
073: * Gets the chartOfAccountsCode attribute.
074: *
075: * @return Returns the chartOfAccountsCode
076: */
077: public String getChartOfAccountsCode() {
078: return chartOfAccountsCode;
079: }
080:
081: /**
082: * Sets the chartOfAccountsCode attribute.
083: *
084: * @param chartOfAccountsCode The chartOfAccountsCode to set.
085: */
086: public void setChartOfAccountsCode(String chartOfAccountsCode) {
087: this .chartOfAccountsCode = chartOfAccountsCode;
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 incomeFinancialObjectCode attribute.
110: *
111: * @return Returns the incomeFinancialObjectCode
112: */
113: public String getIncomeFinancialObjectCode() {
114: return incomeFinancialObjectCode;
115: }
116:
117: /**
118: * Sets the incomeFinancialObjectCode attribute.
119: *
120: * @param incomeFinancialObjectCode The incomeFinancialObjectCode to set.
121: */
122: public void setIncomeFinancialObjectCode(
123: String incomeFinancialObjectCode) {
124: this .incomeFinancialObjectCode = incomeFinancialObjectCode;
125: }
126:
127: /**
128: * Gets the expenseFinancialObjectCode attribute.
129: *
130: * @return Returns the expenseFinancialObjectCode
131: */
132: public String getExpenseFinancialObjectCode() {
133: return expenseFinancialObjectCode;
134: }
135:
136: /**
137: * Sets the expenseFinancialObjectCode attribute.
138: *
139: * @param expenseFinancialObjectCode The expenseFinancialObjectCode to set.
140: */
141: public void setExpenseFinancialObjectCode(
142: String expenseFinancialObjectCode) {
143: this .expenseFinancialObjectCode = expenseFinancialObjectCode;
144: }
145:
146: /**
147: * Gets the domesticChargeAmt attribute.
148: *
149: * @return Returns the domesticChargeAmt
150: */
151: public KualiDecimal getDomesticChargeAmt() {
152: return domesticChargeAmt;
153: }
154:
155: /**
156: * Sets the domesticChargeAmt attribute.
157: *
158: * @param domesticChargeAmt The domesticChargeAmt to set.
159: */
160: public void setDomesticChargeAmt(KualiDecimal domesticChargeAmt) {
161: this .domesticChargeAmt = domesticChargeAmt;
162: }
163:
164: /**
165: * Gets the foreignChargeAmt attribute.
166: *
167: * @return Returns the foreignChargeAmt
168: */
169: public KualiDecimal getForeignChargeAmt() {
170: return foreignChargeAmt;
171: }
172:
173: /**
174: * Sets the foreignChargeAmt attribute.
175: *
176: * @param foreignChargeAmt The foreignChargeAmt to set.
177: */
178: public void setForeignChargeAmt(KualiDecimal foreignChargeAmt) {
179: this .foreignChargeAmt = foreignChargeAmt;
180: }
181:
182: /**
183: * Gets the chartOfAccounts attribute.
184: *
185: * @return Returns the chartOfAccounts
186: */
187: public Chart getChartOfAccounts() {
188: return chartOfAccounts;
189: }
190:
191: /**
192: * Sets the chartOfAccounts attribute.
193: *
194: * @param chartOfAccounts The chartOfAccounts to set.
195: * @deprecated
196: */
197: public void setChartOfAccounts(Chart chartOfAccounts) {
198: this .chartOfAccounts = chartOfAccounts;
199: }
200:
201: /**
202: * Gets the incomeFinancialObject attribute.
203: *
204: * @return Returns the incomeFinancialObject
205: */
206: public ObjectCode getIncomeFinancialObject() {
207: return incomeFinancialObject;
208: }
209:
210: /**
211: * Sets the incomeFinancialObject attribute.
212: *
213: * @param incomeFinancialObject The incomeFinancialObject to set.
214: * @deprecated
215: */
216: public void setIncomeFinancialObject(
217: ObjectCode incomeFinancialObject) {
218: this .incomeFinancialObject = incomeFinancialObject;
219: }
220:
221: /**
222: * Gets the expenseFinancialObject attribute.
223: *
224: * @return Returns the expenseFinancialObject
225: */
226: public ObjectCode getExpenseFinancialObject() {
227: return expenseFinancialObject;
228: }
229:
230: /**
231: * Sets the expenseFinancialObject attribute.
232: *
233: * @param expenseFinancialObject The expenseFinancialObject to set.
234: * @deprecated
235: */
236: public void setExpenseFinancialObject(
237: ObjectCode expenseFinancialObject) {
238: this .expenseFinancialObject = expenseFinancialObject;
239: }
240:
241: /**
242: * Gets the account attribute.
243: *
244: * @return Returns the account
245: */
246: public Account getAccount() {
247: return account;
248: }
249:
250: /**
251: * Sets the account attribute.
252: *
253: * @param account The account to set.
254: * @deprecated
255: */
256: public void setAccount(Account account) {
257: this .account = account;
258: }
259:
260: /**
261: * @return Returns the fiscalYear.
262: */
263: public Options getFiscalYear() {
264: return fiscalYear;
265: }
266:
267: /**
268: * @param fiscalYear The fiscalYear to set.
269: */
270: public void setFiscalYear(Options fiscalYear) {
271: this .fiscalYear = fiscalYear;
272: }
273:
274: /**
275: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
276: */
277: protected LinkedHashMap toStringMapper() {
278: LinkedHashMap m = new LinkedHashMap();
279: m.put("universityFiscalYear", getUniversityFiscalYear());
280: return m;
281: }
282: }
|