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.module.chart.bo.Account;
023: import org.kuali.module.chart.bo.Chart;
024: import org.kuali.module.chart.bo.ObjectCodeCurrent;
025:
026: /**
027: * This class represents an offset account business object.
028: */
029: public class OffsetAccount extends PersistableBusinessObjectBase {
030:
031: private String chartOfAccountsCode;
032: private String accountNumber;
033: private String financialOffsetObjectCode;
034: private String financialOffsetChartOfAccountCode;
035: private String financialOffsetAccountNumber;
036:
037: private Chart chart;
038: private Account account;
039: private Chart financialOffsetChartOfAccount;
040: private Account financialOffsetAccount;
041: private ObjectCodeCurrent objectCodeCurrent;
042:
043: /**
044: * Default constructor.
045: */
046: public OffsetAccount() {
047:
048: }
049:
050: /**
051: * Gets the chartOfAccountsCode attribute.
052: *
053: * @return Returns the chartOfAccountsCode
054: */
055: public String getChartOfAccountsCode() {
056: return chartOfAccountsCode;
057: }
058:
059: /**
060: * Sets the chartOfAccountsCode attribute.
061: *
062: * @param chartOfAccountsCode The chartOfAccountsCode to set.
063: */
064: public void setChartOfAccountsCode(String chartOfAccountsCode) {
065: this .chartOfAccountsCode = chartOfAccountsCode;
066: }
067:
068: /**
069: * Gets the accountNumber attribute.
070: *
071: * @return Returns the accountNumber
072: */
073: public String getAccountNumber() {
074: return accountNumber;
075: }
076:
077: /**
078: * Sets the accountNumber attribute.
079: *
080: * @param accountNumber The accountNumber to set.
081: */
082: public void setAccountNumber(String accountNumber) {
083: this .accountNumber = accountNumber;
084: }
085:
086: /**
087: * Gets the financialOffsetObjectCode attribute.
088: *
089: * @return Returns the financialOffsetObjectCode
090: */
091: public String getFinancialOffsetObjectCode() {
092: return financialOffsetObjectCode;
093: }
094:
095: /**
096: * Sets the financialOffsetObjectCode attribute.
097: *
098: * @param financialOffsetObjectCode The financialOffsetObjectCode to set.
099: */
100: public void setFinancialOffsetObjectCode(
101: String financialOffsetObjectCode) {
102: this .financialOffsetObjectCode = financialOffsetObjectCode;
103: }
104:
105: /**
106: * Gets the financialOffsetChartOfAccountCode attribute.
107: *
108: * @return Returns the financialOffsetChartOfAccountCode
109: */
110: public String getFinancialOffsetChartOfAccountCode() {
111: return financialOffsetChartOfAccountCode;
112: }
113:
114: /**
115: * Sets the financialOffsetChartOfAccountCode attribute.
116: *
117: * @param financialOffsetChartOfAccountCode The financialOffsetChartOfAccountCode to set.
118: */
119: public void setFinancialOffsetChartOfAccountCode(
120: String financialOffsetChartOfAccountCode) {
121: this .financialOffsetChartOfAccountCode = financialOffsetChartOfAccountCode;
122: }
123:
124: /**
125: * Gets the financialOffsetAccountNumber attribute.
126: *
127: * @return Returns the financialOffsetAccountNumber
128: */
129: public String getFinancialOffsetAccountNumber() {
130: return financialOffsetAccountNumber;
131: }
132:
133: /**
134: * Sets the financialOffsetAccountNumber attribute.
135: *
136: * @param financialOffsetAccountNumber The financialOffsetAccountNumber to set.
137: */
138: public void setFinancialOffsetAccountNumber(
139: String financialOffsetAccountNumber) {
140: this .financialOffsetAccountNumber = financialOffsetAccountNumber;
141: }
142:
143: /**
144: * Gets the chart attribute.
145: *
146: * @return Returns the chart
147: */
148: public Chart getChart() {
149: return chart;
150: }
151:
152: /**
153: * Sets the chart attribute.
154: *
155: * @param chart The chart to set.
156: * @deprecated
157: */
158: public void setChart(Chart chart) {
159: this .chart = chart;
160: }
161:
162: /**
163: * Gets the account attribute.
164: *
165: * @return Returns the account
166: */
167: public Account getAccount() {
168: return account;
169: }
170:
171: /**
172: * Sets the account attribute.
173: *
174: * @param account The account to set.
175: * @deprecated
176: */
177: public void setAccount(Account account) {
178: this .account = account;
179: }
180:
181: /**
182: * Gets the financialOffsetChartOfAccount attribute.
183: *
184: * @return Returns the financialOffsetChartOfAccount
185: */
186: public Chart getFinancialOffsetChartOfAccount() {
187: return financialOffsetChartOfAccount;
188: }
189:
190: /**
191: * Sets the financialOffsetChartOfAccount attribute.
192: *
193: * @param financialOffsetChartOfAccount The financialOffsetChartOfAccount to set.
194: * @deprecated
195: */
196: public void setFinancialOffsetChartOfAccount(
197: Chart financialOffsetChartOfAccount) {
198: this .financialOffsetChartOfAccount = financialOffsetChartOfAccount;
199: }
200:
201: /**
202: * @return Returns the financialOffsetAccount.
203: */
204: public Account getFinancialOffsetAccount() {
205: return financialOffsetAccount;
206: }
207:
208: /**
209: * @param financialOffsetAccount The financialOffsetAccount to set.
210: * @deprecated
211: */
212: public void setFinancialOffsetAccount(Account financialOffsetAccount) {
213: this .financialOffsetAccount = financialOffsetAccount;
214: }
215:
216: /**
217: * @return Returns the objectCodeCurrent.
218: */
219: public ObjectCodeCurrent getObjectCodeCurrent() {
220: return objectCodeCurrent;
221: }
222:
223: /**
224: * @param objectCodeCurrent The objectCodeCurrent to set.
225: * @deprecated
226: */
227: public void setObjectCodeCurrent(ObjectCodeCurrent objectCodeCurrent) {
228: this .objectCodeCurrent = objectCodeCurrent;
229: }
230:
231: /**
232: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
233: */
234: protected LinkedHashMap toStringMapper() {
235: LinkedHashMap m = new LinkedHashMap();
236: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
237: m.put("accountNumber", this .accountNumber);
238: m.put("financialOffsetObjectCode",
239: this.financialOffsetObjectCode);
240: return m;
241: }
242:
243: }
|