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: package org.kuali.module.chart.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.DocumentType;
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.bo.Options;
023: import org.kuali.module.chart.bo.codes.BalanceTyp;
024:
025: /**
026: *
027: */
028: public class OffsetDefinition extends PersistableBusinessObjectBase {
029:
030: private static final long serialVersionUID = -6150010338773403021L;
031:
032: private Integer universityFiscalYear;
033: private String financialDocumentTypeCode;
034: private String financialBalanceTypeCode;
035: private String chartOfAccountsCode;
036: private String financialObjectCode;
037:
038: private Options universityFiscal;
039: private ObjectCode financialObject;
040: private Chart chartOfAccounts;
041: private BalanceTyp financialBalanceType;
042: private DocumentType financialDocumentType;
043:
044: /**
045: * Default no-arg constructor.
046: */
047: public OffsetDefinition() {
048:
049: }
050:
051: /**
052: * Gets the universityFiscalYear attribute.
053: *
054: * @return Returns the universityFiscalYear
055: */
056: public Integer getUniversityFiscalYear() {
057: return universityFiscalYear;
058: }
059:
060: /**
061: * Sets the universityFiscalYear attribute.
062: *
063: * @param universityFiscalYear The universityFiscalYear to set.
064: */
065: public void setUniversityFiscalYear(Integer universityFiscalYear) {
066: this .universityFiscalYear = universityFiscalYear;
067: }
068:
069: /**
070: * Gets the universityFiscal attribute.
071: *
072: * @return Returns the universityFiscal
073: */
074: public Options getUniversityFiscal() {
075: return universityFiscal;
076: }
077:
078: /**
079: * Sets the universityFiscal attribute.
080: *
081: * @param universityFiscal The universityFiscal to set.
082: * @deprecated
083: */
084: public void setUniversityFiscal(Options universityFiscal) {
085: this .universityFiscal = universityFiscal;
086: }
087:
088: /**
089: * Gets the financialDocumentTypeCode attribute.
090: *
091: * @return Returns the financialDocumentTypeCode
092: */
093:
094: public String getFinancialDocumentTypeCode() {
095: return financialDocumentTypeCode;
096: }
097:
098: /**
099: * Sets the financialDocumentTypeCode attribute.
100: *
101: * @param financialDocumentTypeCode The financialDocumentTypeCode to set.
102: */
103: public void setFinancialDocumentTypeCode(
104: String financialDocumentTypeCode) {
105: this .financialDocumentTypeCode = financialDocumentTypeCode;
106: }
107:
108: /**
109: * Gets the financialBalanceTypeCode attribute.
110: *
111: * @return Returns the financialBalanceTypeCode
112: */
113: public String getFinancialBalanceTypeCode() {
114: return financialBalanceTypeCode;
115: }
116:
117: /**
118: * Sets the financialBalanceTypeCode attribute.
119: *
120: * @param financialBalanceTypeCode The financialBalanceTypeCode to set.
121: */
122: public void setFinancialBalanceTypeCode(
123: String financialBalanceTypeCode) {
124: this .financialBalanceTypeCode = financialBalanceTypeCode;
125: }
126:
127: /**
128: * Returns the BalanceType object associated with this OffsetDefinition
129: *
130: * @return the balanceType
131: */
132: public BalanceTyp getFinancialBalanceType() {
133: return financialBalanceType;
134: }
135:
136: /**
137: * Sets the balanceType from the balanceTypeCode
138: *
139: * @param financialBalanceType
140: * @deprecated
141: */
142: public void setFinancialBalanceType(BalanceTyp financialBalanceType) {
143: this .financialBalanceType = financialBalanceType;
144: }
145:
146: /**
147: * Gets the financialObjectCode attribute.
148: *
149: * @return Returns the financialObjectCode
150: */
151:
152: public String getFinancialObjectCode() {
153: return financialObjectCode;
154: }
155:
156: /**
157: * Sets the financialObjectCode attribute.
158: *
159: * @param financialObjectCode The financialObjectCode to set.
160: */
161: public void setFinancialObjectCode(String financialObjectCode) {
162: this .financialObjectCode = financialObjectCode;
163: }
164:
165: /**
166: * Gets the financialObject attribute.
167: *
168: * @return Returns the financialObject
169: */
170:
171: public ObjectCode getFinancialObject() {
172: return financialObject;
173: }
174:
175: /**
176: * Sets the financialObject attribute.
177: *
178: * @param financialObject The financialObject to set.
179: * @deprecated
180: */
181: public void setFinancialObject(ObjectCode financialObject) {
182: this .financialObject = financialObject;
183: }
184:
185: /**
186: * Gets the chartOfAccounts attribute.
187: *
188: * @return Returns the chartOfAccounts
189: */
190:
191: public String getChartOfAccountsCode() {
192: return chartOfAccountsCode;
193: }
194:
195: /**
196: * Sets the chartOfAccountsCode attribute.
197: *
198: * @param chartOfAccountsCode The chartOfAccountsCode to set.
199: */
200: public void setChartOfAccountsCode(String chartOfAccountsCode) {
201: this .chartOfAccountsCode = chartOfAccountsCode;
202: }
203:
204: /**
205: * Gets the chartOfAccounts object
206: *
207: * @return a Chart object
208: */
209: public Chart getChartOfAccounts() {
210: return chartOfAccounts;
211: }
212:
213: /**
214: * Sets the chartOfAccountsCode attribute.
215: *
216: * @param chartOfAccountsCode The chartOfAccounts to set.
217: * @deprecated
218: */
219: public void setChartOfAccounts(Chart chartOfAccounts) {
220: this .chartOfAccounts = chartOfAccounts;
221: }
222:
223: /**
224: * @return Returns the financialDocumentType.
225: */
226: public DocumentType getFinancialDocumentType() {
227: return financialDocumentType;
228: }
229:
230: /**
231: * @param financialDocumentType The financialDocumentType to set.
232: * @deprecated
233: */
234: public void setFinancialDocumentType(
235: DocumentType financialDocumentType) {
236: this .financialDocumentType = financialDocumentType;
237: }
238:
239: /**
240: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
241: */
242: protected LinkedHashMap toStringMapper() {
243: LinkedHashMap m = new LinkedHashMap();
244: m.put("universityFiscalYear", this .universityFiscalYear);
245: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
246: m.put("documentTypeCode", this .financialDocumentTypeCode);
247: m.put("balanceTypeCode", this.financialBalanceTypeCode);
248: return m;
249: }
250:
251: }
|