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    
017    package org.kuali.kfs.coa.businessobject;
018    
019    import java.util.LinkedHashMap;
020    
021    import org.kuali.rice.kns.bo.Inactivateable;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    
024    /**
025     * 
026     */
027    public class IndirectCostRecoveryExclusionAccount extends PersistableBusinessObjectBase implements Inactivateable {
028    
029        private String chartOfAccountsCode;
030        private String accountNumber;
031        private String financialObjectChartOfAccountCode;
032        private String financialObjectCode;
033        private Chart chart;
034        private Account account;
035        private Chart financialObjectChartOfAccount;
036        private ObjectCode objectCodeCurrent;
037        private boolean active; 
038    
039        public IndirectCostRecoveryExclusionAccount() {
040            super();
041        }
042    
043        /**
044         * Gets the chartOfAccountsCode attribute.
045         * 
046         * @return Returns the chartOfAccountsCode
047         */
048        public String getChartOfAccountsCode() {
049            return chartOfAccountsCode;
050        }
051    
052        /**
053         * Sets the chartOfAccountsCode attribute.
054         * 
055         * @param chartOfAccountsCode The chartOfAccountsCode to set.
056         */
057        public void setChartOfAccountsCode(String chartOfAccountsCode) {
058            this.chartOfAccountsCode = chartOfAccountsCode;
059        }
060    
061    
062        /**
063         * Gets the accountNumber attribute.
064         * 
065         * @return Returns the accountNumber
066         */
067        public String getAccountNumber() {
068            return accountNumber;
069        }
070    
071        /**
072         * Sets the accountNumber attribute.
073         * 
074         * @param accountNumber The accountNumber to set.
075         */
076        public void setAccountNumber(String accountNumber) {
077            this.accountNumber = accountNumber;
078        }
079    
080    
081        /**
082         * Gets the financialObjectChartOfAccountCode attribute.
083         * 
084         * @return Returns the financialObjectChartOfAccountCode
085         */
086        public String getFinancialObjectChartOfAccountCode() {
087            return financialObjectChartOfAccountCode;
088        }
089    
090        /**
091         * Sets the financialObjectChartOfAccountCode attribute.
092         * 
093         * @param financialObjectChartOfAccountCode The financialObjectChartOfAccountCode to set.
094         */
095        public void setFinancialObjectChartOfAccountCode(String financialObjectChartOfAccountCode) {
096            this.financialObjectChartOfAccountCode = financialObjectChartOfAccountCode;
097        }
098    
099    
100        /**
101         * Gets the financialObjectCode attribute.
102         * 
103         * @return Returns the financialObjectCode
104         */
105        public String getFinancialObjectCode() {
106            return financialObjectCode;
107        }
108    
109        /**
110         * Sets the financialObjectCode attribute.
111         * 
112         * @param financialObjectCode The financialObjectCode to set.
113         */
114        public void setFinancialObjectCode(String financialObjectCode) {
115            this.financialObjectCode = financialObjectCode;
116        }
117    
118    
119        /**
120         * Gets the chart attribute.
121         * 
122         * @return Returns the chart
123         */
124        public Chart getChart() {
125            return chart;
126        }
127    
128        /**
129         * Sets the chart attribute.
130         * 
131         * @param chart The chart to set.
132         * @deprecated
133         */
134        public void setChart(Chart chart) {
135            this.chart = chart;
136        }
137    
138        /**
139         * Gets the account attribute.
140         * 
141         * @return Returns the account
142         */
143        public Account getAccount() {
144            return account;
145        }
146    
147        /**
148         * Sets the account attribute.
149         * 
150         * @param account The account to set.
151         * @deprecated
152         */
153        public void setAccount(Account account) {
154            this.account = account;
155        }
156    
157        /**
158         * Gets the financialObjectChartOfAccount attribute.
159         * 
160         * @return Returns the financialObjectChartOfAccount
161         */
162        public Chart getFinancialObjectChartOfAccount() {
163            return financialObjectChartOfAccount;
164        }
165    
166        /**
167         * Sets the financialObjectChartOfAccount attribute.
168         * 
169         * @param financialObjectChartOfAccount The financialObjectChartOfAccount to set.
170         * @deprecated
171         */
172        public void setFinancialObjectChartOfAccount(Chart financialObjectChartOfAccount) {
173            this.financialObjectChartOfAccount = financialObjectChartOfAccount;
174        }
175    
176        /**
177         * @return Returns the objectCode.
178         */
179        public ObjectCode getObjectCodeCurrent() {
180            return objectCodeCurrent;
181        }
182    
183        /**
184         * @param objectCode The objectCode to set.
185         * @deprecated
186         */
187        public void setObjectCodeCurrent(ObjectCode objectCodeCurrent) {
188            this.objectCodeCurrent = objectCodeCurrent;
189        }
190        
191        /**
192         * @return Returns whether the objectCode is active.
193         */
194        public boolean isActive() {
195            return active;
196        }
197    
198        /**
199         * @param active Set if the record is active.
200         */
201         
202        public void setActive(boolean active) {
203            this.active = active;
204        }
205    
206    
207        /**
208         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
209         */
210        protected LinkedHashMap toStringMapper() {
211            LinkedHashMap m = new LinkedHashMap();
212            m.put("chartOfAccountsCode", this.chartOfAccountsCode);
213            m.put("accountNumber", this.accountNumber);
214            m.put("financialObjectChartOfAccountCode", this.financialObjectChartOfAccountCode);
215            m.put("financialObjectCode", this.financialObjectCode);
216            return m;
217        }
218    
219    
220    }