001 /*
002 * Copyright 2011 The Kuali Foundation.
003 *
004 * Licensed under the Educational Community License, Version 2.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/ecl2.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.kfs.coa.businessobject;
017
018 import java.util.LinkedHashMap;
019
020 import org.kuali.rice.kns.bo.Inactivateable;
021 import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
022
023 /**
024 *
025 */
026 public class ObjectConsolidation extends PersistableBusinessObjectBase implements Inactivateable {
027
028 /**
029 * Default no-arg constructor.
030 */
031 public ObjectConsolidation() {
032
033 }
034
035 private String chartOfAccountsCode;
036 private String finConsolidationObjectCode;
037 private String finConsolidationObjectName;
038 private String finConsolidationObjShortName;
039 private boolean active;
040 private String financialReportingSortCode;
041
042 private Chart chartOfAccounts;
043
044 /**
045 * Gets the chartOfAccountsCode attribute.
046 *
047 * @return Returns the chartOfAccountsCode.
048 */
049 public String getChartOfAccountsCode() {
050 return chartOfAccountsCode;
051 }
052
053 /**
054 * Sets the chartOfAccountsCode attribute value.
055 *
056 * @param chartOfAccountsCode The chartOfAccountsCode to set.
057 */
058 public void setChartOfAccountsCode(String chartOfAccountsCode) {
059 this.chartOfAccountsCode = chartOfAccountsCode;
060 }
061
062
063 /**
064 * Gets the finConsolidationObjectCode attribute.
065 *
066 * @return Returns the finConsolidationObjectCode.
067 */
068 public String getFinConsolidationObjectCode() {
069 return finConsolidationObjectCode;
070 }
071
072 /**
073 * Sets the finConsolidationObjectCode attribute value.
074 *
075 * @param finConsolidationObjectCode The finConsolidationObjectCode to set.
076 */
077 public void setFinConsolidationObjectCode(String finConsolidationObjectCode) {
078 this.finConsolidationObjectCode = finConsolidationObjectCode;
079 }
080
081 /**
082 * Gets the finConsolidationObjectName attribute.
083 *
084 * @return Returns the finConsolidationObjectName
085 */
086 public String getFinConsolidationObjectName() {
087 return finConsolidationObjectName;
088 }
089
090 /**
091 * Sets the finConsolidationObjectName attribute.
092 *
093 * @param finConsolidationObjectName The finConsolidationObjectName to set.
094 */
095 public void setFinConsolidationObjectName(String finConsolidationObjectName) {
096 this.finConsolidationObjectName = finConsolidationObjectName;
097 }
098
099 /**
100 * Gets the finConsolidationObjShortName attribute.
101 *
102 * @return Returns the finConsolidationObjShortName
103 */
104 public String getFinConsolidationObjShortName() {
105 return finConsolidationObjShortName;
106 }
107
108 /**
109 * Sets the finConsolidationObjShortName attribute.
110 *
111 * @param finConsolidationObjShortName The finConsolidationObjShortName to set.
112 */
113 public void setFinConsolidationObjShortName(String finConsolidationObjShortName) {
114 this.finConsolidationObjShortName = finConsolidationObjShortName;
115 }
116
117 /**
118 * Gets the active attribute.
119 *
120 * @return Returns the active
121 */
122 public boolean isActive() {
123 return active;
124 }
125
126 /**
127 * Sets the active attribute.
128 *
129 * @param active The active to set.
130 */
131 public void setActive(boolean active) {
132 this.active = active;
133 }
134
135 /**
136 * Gets the financialReportingSortCode attribute.
137 *
138 * @return Returns the financialReportingSortCode
139 */
140 public String getFinancialReportingSortCode() {
141 return financialReportingSortCode;
142 }
143
144 /**
145 * Sets the financialReportingSortCode attribute.
146 *
147 * @param financialReportingSortCode The financialReportingSortCode to set.
148 */
149 public void setFinancialReportingSortCode(String financialReportingSortCode) {
150 this.financialReportingSortCode = financialReportingSortCode;
151 }
152
153 /**
154 * Gets the chartOfAccounts attribute.
155 *
156 * @return Returns the chartOfAccounts
157 */
158 public Chart getChartOfAccounts() {
159 return chartOfAccounts;
160 }
161
162 /**
163 * Sets the chartOfAccounts attribute.
164 *
165 * @param chartOfAccounts The chartOfAccounts to set.
166 * @deprecated
167 */
168 public void setChartOfAccounts(Chart chartOfAccounts) {
169 this.chartOfAccounts = chartOfAccounts;
170 }
171
172
173 /**
174 * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
175 */
176 protected LinkedHashMap toStringMapper() {
177 LinkedHashMap m = new LinkedHashMap();
178
179 m.put("chartOfAccountsCode", this.chartOfAccountsCode);
180 m.put("finConsolidationObjectCode", this.finConsolidationObjectCode);
181
182 return m;
183 }
184
185 }