001: /*
002: * Copyright 2006-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:
017: package org.kuali.module.chart.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.bo.Building;
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: * Gets the accountNumber attribute.
068: *
069: * @return Returns the accountNumber
070: */
071: public String getAccountNumber() {
072: return accountNumber;
073: }
074:
075: /**
076: * Sets the accountNumber attribute.
077: *
078: * @param accountNumber The accountNumber to set.
079: */
080: public void setAccountNumber(String accountNumber) {
081: this .accountNumber = accountNumber;
082: }
083:
084: /**
085: * Gets the campusDescription attribute.
086: *
087: * @return Returns the campusDescription
088: */
089: public String getCampusDescription() {
090: return campusDescription;
091: }
092:
093: /**
094: * Sets the campusDescription attribute.
095: *
096: * @param campusDescription The campusDescription to set.
097: */
098: public void setCampusDescription(String campusDescription) {
099: this .campusDescription = campusDescription;
100: }
101:
102: /**
103: * Gets the organizationDescription attribute.
104: *
105: * @return Returns the organizationDescription
106: */
107: public String getOrganizationDescription() {
108: return organizationDescription;
109: }
110:
111: /**
112: * Sets the organizationDescription attribute.
113: *
114: * @param organizationDescription The organizationDescription to set.
115: */
116: public void setOrganizationDescription(
117: String organizationDescription) {
118: this .organizationDescription = organizationDescription;
119: }
120:
121: /**
122: * Gets the responsibilityCenterDescription attribute.
123: *
124: * @return Returns the responsibilityCenterDescription
125: */
126: public String getResponsibilityCenterDescription() {
127: return responsibilityCenterDescription;
128: }
129:
130: /**
131: * Sets the responsibilityCenterDescription attribute.
132: *
133: * @param responsibilityCenterDescription The responsibilityCenterDescription to set.
134: */
135: public void setResponsibilityCenterDescription(
136: String responsibilityCenterDescription) {
137: this .responsibilityCenterDescription = responsibilityCenterDescription;
138: }
139:
140: /**
141: * Gets the campusCode attribute.
142: *
143: * @return Returns the campusCode
144: */
145: public String getCampusCode() {
146: return campusCode;
147: }
148:
149: /**
150: * Sets the campusCode attribute.
151: *
152: * @param campusCode The campusCode to set.
153: */
154: public void setCampusCode(String campusCode) {
155: this .campusCode = campusCode;
156: }
157:
158: /**
159: * Gets the buildingCode attribute.
160: *
161: * @return Returns the buildingCode
162: */
163: public String getBuildingCode() {
164: return buildingCode;
165: }
166:
167: /**
168: * Sets the buildingCode attribute.
169: *
170: * @param buildingCode The buildingCode to set.
171: */
172: public void setBuildingCode(String buildingCode) {
173: this .buildingCode = buildingCode;
174: }
175:
176: /**
177: * Gets the building attribute.
178: *
179: * @return Returns the building.
180: */
181: public Building getBuilding() {
182: return building;
183: }
184:
185: /**
186: * Sets the building attribute value.
187: *
188: * @param building The building to set.
189: * @deprecated
190: */
191: public void setBuilding(Building building) {
192: this .building = building;
193: }
194:
195: /**
196: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
197: */
198: protected LinkedHashMap toStringMapper() {
199: LinkedHashMap m = new LinkedHashMap();
200: m.put("chartOfAccountsCode", this .chartOfAccountsCode);
201: m.put("accountNumber", this.accountNumber);
202: return m;
203: }
204: }
|