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.kfs.sys.businessobject.Building;
022    import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
023    
024    /**
025     * 
026     */
027    public class AccountDescription extends PersistableBusinessObjectBase {
028    
029        private static final long serialVersionUID = 6233459415790165510L;
030    
031        private String chartOfAccountsCode;
032        private String accountNumber;
033        private String campusDescription;
034        private String organizationDescription;
035        private String responsibilityCenterDescription;
036        private String campusCode;
037        private String buildingCode;
038    
039        private Building building;
040    
041        /**
042         * Default constructor.
043         */
044        public AccountDescription() {
045    
046        }
047    
048        /**
049         * Gets the chartOfAccountsCode attribute.
050         * 
051         * @return Returns the chartOfAccountsCode
052         */
053        public String getChartOfAccountsCode() {
054            return chartOfAccountsCode;
055        }
056    
057        /**
058         * Sets the chartOfAccountsCode attribute.
059         * 
060         * @param chartOfAccountsCode The chartOfAccountsCode to set.
061         */
062        public void setChartOfAccountsCode(String chartOfAccountsCode) {
063            this.chartOfAccountsCode = chartOfAccountsCode;
064        }
065    
066    
067        /**
068         * Gets the accountNumber attribute.
069         * 
070         * @return Returns the accountNumber
071         */
072        public String getAccountNumber() {
073            return accountNumber;
074        }
075    
076        /**
077         * Sets the accountNumber attribute.
078         * 
079         * @param accountNumber The accountNumber to set.
080         */
081        public void setAccountNumber(String accountNumber) {
082            this.accountNumber = accountNumber;
083        }
084    
085    
086        /**
087         * Gets the campusDescription attribute.
088         * 
089         * @return Returns the campusDescription
090         */
091        public String getCampusDescription() {
092            return campusDescription;
093        }
094    
095        /**
096         * Sets the campusDescription attribute.
097         * 
098         * @param campusDescription The campusDescription to set.
099         */
100        public void setCampusDescription(String campusDescription) {
101            this.campusDescription = campusDescription;
102        }
103    
104    
105        /**
106         * Gets the organizationDescription attribute.
107         * 
108         * @return Returns the organizationDescription
109         */
110        public String getOrganizationDescription() {
111            return organizationDescription;
112        }
113    
114        /**
115         * Sets the organizationDescription attribute.
116         * 
117         * @param organizationDescription The organizationDescription to set.
118         */
119        public void setOrganizationDescription(String organizationDescription) {
120            this.organizationDescription = organizationDescription;
121        }
122    
123    
124        /**
125         * Gets the responsibilityCenterDescription attribute.
126         * 
127         * @return Returns the responsibilityCenterDescription
128         */
129        public String getResponsibilityCenterDescription() {
130            return responsibilityCenterDescription;
131        }
132    
133        /**
134         * Sets the responsibilityCenterDescription attribute.
135         * 
136         * @param responsibilityCenterDescription The responsibilityCenterDescription to set.
137         */
138        public void setResponsibilityCenterDescription(String responsibilityCenterDescription) {
139            this.responsibilityCenterDescription = responsibilityCenterDescription;
140        }
141    
142    
143        /**
144         * Gets the campusCode attribute.
145         * 
146         * @return Returns the campusCode
147         */
148        public String getCampusCode() {
149            return campusCode;
150        }
151    
152        /**
153         * Sets the campusCode attribute.
154         * 
155         * @param campusCode The campusCode to set.
156         */
157        public void setCampusCode(String campusCode) {
158            this.campusCode = campusCode;
159        }
160    
161    
162        /**
163         * Gets the buildingCode attribute.
164         * 
165         * @return Returns the buildingCode
166         */
167        public String getBuildingCode() {
168            return buildingCode;
169        }
170    
171        /**
172         * Sets the buildingCode attribute.
173         * 
174         * @param buildingCode The buildingCode to set.
175         */
176        public void setBuildingCode(String buildingCode) {
177            this.buildingCode = buildingCode;
178        }
179    
180        /**
181         * Gets the building attribute.
182         * 
183         * @return Returns the building.
184         */
185        public Building getBuilding() {
186            return building;
187        }
188    
189        /**
190         * Sets the building attribute value.
191         * 
192         * @param building The building to set.
193         * @deprecated
194         */
195        public void setBuilding(Building building) {
196            this.building = building;
197        }
198    
199        /**
200         * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
201         */
202        protected LinkedHashMap toStringMapper() {
203            LinkedHashMap m = new LinkedHashMap();
204            m.put("chartOfAccountsCode", this.chartOfAccountsCode);
205            m.put("accountNumber", this.accountNumber);
206            return m;
207        }
208    }