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.PersistableBusinessObjectBase;
021:
022: /**
023: *
024: */
025: public class ObjectCons extends PersistableBusinessObjectBase {
026:
027: /**
028: * Default no-arg constructor.
029: */
030: public ObjectCons() {
031:
032: }
033:
034: private String chartOfAccountsCode;
035: private String finConsolidationObjectCode;
036: private String finConsolidationObjectName;
037: private String finConsolidationObjShortName;
038: private boolean finConsolidationObjActiveIndicator;
039: private String financialReportingSortCode;
040: private String financialEliminationsObjectCode;
041:
042: private Chart chartOfAccounts;
043: private ObjectCodeCurrent financialEliminationsObject;
044:
045: /**
046: * Gets the chartOfAccountsCode attribute.
047: *
048: * @return Returns the chartOfAccountsCode.
049: */
050: public String getChartOfAccountsCode() {
051: return chartOfAccountsCode;
052: }
053:
054: /**
055: * Sets the chartOfAccountsCode attribute value.
056: *
057: * @param chartOfAccountsCode The chartOfAccountsCode to set.
058: */
059: public void setChartOfAccountsCode(String chartOfAccountsCode) {
060: this .chartOfAccountsCode = chartOfAccountsCode;
061: }
062:
063: /**
064: * Gets the financialEliminationsObjectCode attribute.
065: *
066: * @return Returns the financialEliminationsObjectCode.
067: */
068: public String getFinancialEliminationsObjectCode() {
069: return financialEliminationsObjectCode;
070: }
071:
072: /**
073: * Sets the financialEliminationsObjectCode attribute value.
074: *
075: * @param financialEliminationsObjectCode The financialEliminationsObjectCode to set.
076: */
077: public void setFinancialEliminationsObjectCode(
078: String financialEliminationsObjectCode) {
079: this .financialEliminationsObjectCode = financialEliminationsObjectCode;
080: }
081:
082: /**
083: * Gets the finConsolidationObjectCode attribute.
084: *
085: * @return Returns the finConsolidationObjectCode.
086: */
087: public String getFinConsolidationObjectCode() {
088: return finConsolidationObjectCode;
089: }
090:
091: /**
092: * Sets the finConsolidationObjectCode attribute value.
093: *
094: * @param finConsolidationObjectCode The finConsolidationObjectCode to set.
095: */
096: public void setFinConsolidationObjectCode(
097: String finConsolidationObjectCode) {
098: this .finConsolidationObjectCode = finConsolidationObjectCode;
099: }
100:
101: /**
102: * Gets the finConsolidationObjectName attribute.
103: *
104: * @return Returns the finConsolidationObjectName
105: */
106: public String getFinConsolidationObjectName() {
107: return finConsolidationObjectName;
108: }
109:
110: /**
111: * Sets the finConsolidationObjectName attribute.
112: *
113: * @param finConsolidationObjectName The finConsolidationObjectName to set.
114: */
115: public void setFinConsolidationObjectName(
116: String finConsolidationObjectName) {
117: this .finConsolidationObjectName = finConsolidationObjectName;
118: }
119:
120: /**
121: * Gets the finConsolidationObjShortName attribute.
122: *
123: * @return Returns the finConsolidationObjShortName
124: */
125: public String getFinConsolidationObjShortName() {
126: return finConsolidationObjShortName;
127: }
128:
129: /**
130: * Sets the finConsolidationObjShortName attribute.
131: *
132: * @param finConsolidationObjShortName The finConsolidationObjShortName to set.
133: */
134: public void setFinConsolidationObjShortName(
135: String finConsolidationObjShortName) {
136: this .finConsolidationObjShortName = finConsolidationObjShortName;
137: }
138:
139: /**
140: * Gets the finConsolidationObjActiveIndicator attribute.
141: *
142: * @return Returns the finConsolidationObjActiveIndicator
143: */
144: public boolean isFinConsolidationObjActiveIndicator() {
145: return finConsolidationObjActiveIndicator;
146: }
147:
148: /**
149: * Sets the finConsolidationObjActiveIndicator attribute.
150: *
151: * @param finConsolidationObjActiveIndicator The finConsolidationObjActiveIndicator to set.
152: */
153: public void setFinConsolidationObjActiveIndicator(
154: boolean finConsolidationObjActiveIndicator) {
155: this .finConsolidationObjActiveIndicator = finConsolidationObjActiveIndicator;
156: }
157:
158: /**
159: * Gets the financialReportingSortCode attribute.
160: *
161: * @return Returns the financialReportingSortCode
162: */
163: public String getFinancialReportingSortCode() {
164: return financialReportingSortCode;
165: }
166:
167: /**
168: * Sets the financialReportingSortCode attribute.
169: *
170: * @param financialReportingSortCode The financialReportingSortCode to set.
171: */
172: public void setFinancialReportingSortCode(
173: String financialReportingSortCode) {
174: this .financialReportingSortCode = financialReportingSortCode;
175: }
176:
177: /**
178: * Gets the chartOfAccounts attribute.
179: *
180: * @return Returns the chartOfAccounts
181: */
182: public Chart getChartOfAccounts() {
183: return chartOfAccounts;
184: }
185:
186: /**
187: * Sets the chartOfAccounts attribute.
188: *
189: * @param chartOfAccounts The chartOfAccounts to set.
190: * @deprecated
191: */
192: public void setChartOfAccounts(Chart chartOfAccounts) {
193: this .chartOfAccounts = chartOfAccounts;
194: }
195:
196: /**
197: * Gets the financialEliminationsObject attribute.
198: *
199: * @return Returns the financialEliminationsObject.
200: */
201: public ObjectCodeCurrent getFinancialEliminationsObject() {
202: if (financialEliminationsObjectCode != null
203: && (financialEliminationsObject == null || (financialEliminationsObject
204: .getFinancialObjectCode() != null
205: && financialEliminationsObjectCode != null && !financialEliminationsObject
206: .getFinancialObjectCode().equalsIgnoreCase(
207: this .financialEliminationsObjectCode)))) {
208: refreshReferenceObject("financialEliminationsObject");
209: }
210: return financialEliminationsObject;
211: }
212:
213: /**
214: * Sets the financialEliminationsObject attribute value.
215: *
216: * @param financialEliminationsObject The financialEliminationsObject to set.
217: * @deprecated
218: */
219: public void setFinancialEliminationsObject(
220: ObjectCodeCurrent financialEliminationsObject) {
221: this .financialEliminationsObject = financialEliminationsObject;
222: }
223:
224: /**
225: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
226: */
227: protected LinkedHashMap toStringMapper() {
228: LinkedHashMap m = new LinkedHashMap();
229:
230: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
231: m.put("finConsolidationObjectCode",
232: this.finConsolidationObjectCode);
233:
234: return m;
235: }
236:
237: }
|