001: /*
002: * Copyright 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.kfs.bo;
018:
019: import java.util.LinkedHashMap;
020:
021: import org.kuali.core.bo.Campus;
022: import org.kuali.core.bo.PersistableBusinessObjectBase;
023:
024: /**
025: *
026: */
027: public class Building extends PersistableBusinessObjectBase {
028:
029: private String campusCode;
030: private String buildingCode;
031: private String buildingName;
032: private String buildingStreetAddress;
033: private String buildingAddressCityName;
034: private String buildingAddressStateCode;
035: private String buildingAddressZipCode;
036: private String alternateBuildingCode;
037:
038: private Campus campus;
039: private State buildingAddressState;
040: private PostalZipCode buildingAddressZip;
041:
042: /**
043: * Default constructor.
044: */
045: public Building() {
046:
047: }
048:
049: /**
050: * Gets the campusCode attribute.
051: *
052: * @return Returns the campusCode
053: */
054: public String getCampusCode() {
055: return campusCode;
056: }
057:
058: /**
059: * Sets the campusCode attribute.
060: *
061: * @param campusCode The campusCode to set.
062: */
063: public void setCampusCode(String campusCode) {
064: this .campusCode = campusCode;
065: }
066:
067: /**
068: * Gets the buildingCode attribute.
069: *
070: * @return Returns the buildingCode
071: */
072: public String getBuildingCode() {
073: return buildingCode;
074: }
075:
076: /**
077: * Sets the buildingCode attribute.
078: *
079: * @param buildingCode The buildingCode to set.
080: */
081: public void setBuildingCode(String buildingCode) {
082: this .buildingCode = buildingCode;
083: }
084:
085: /**
086: * Gets the buildingName attribute.
087: *
088: * @return Returns the buildingName
089: */
090: public String getBuildingName() {
091: return buildingName;
092: }
093:
094: /**
095: * Sets the buildingName attribute.
096: *
097: * @param buildingName The buildingName to set.
098: */
099: public void setBuildingName(String buildingName) {
100: this .buildingName = buildingName;
101: }
102:
103: /**
104: * Gets the campus attribute.
105: *
106: * @return Returns the campus.
107: */
108: public Campus getCampus() {
109: return campus;
110: }
111:
112: /**
113: * Sets the campus attribute value.
114: *
115: * @param campus The campus to set.
116: */
117: public void setCampus(Campus campus) {
118: this .campus = campus;
119: }
120:
121: /**
122: * Gets the alternateBuildingCode attribute.
123: *
124: * @return Returns the alternateBuildingCode.
125: */
126: public String getAlternateBuildingCode() {
127: return alternateBuildingCode;
128: }
129:
130: /**
131: * Sets the alternateBuildingCode attribute value.
132: *
133: * @param alternateBuildingCode The alternateBuildingCode to set.
134: */
135: public void setAlternateBuildingCode(String alternateBuildingCode) {
136: this .alternateBuildingCode = alternateBuildingCode;
137: }
138:
139: /**
140: * Gets the buildingAddressCityName attribute.
141: *
142: * @return Returns the buildingAddressCityName.
143: */
144: public String getBuildingAddressCityName() {
145: return buildingAddressCityName;
146: }
147:
148: /**
149: * Sets the buildingAddressCityName attribute value.
150: *
151: * @param buildingAddressCityName The buildingAddressCityName to set.
152: */
153: public void setBuildingAddressCityName(
154: String buildingAddressCityName) {
155: this .buildingAddressCityName = buildingAddressCityName;
156: }
157:
158: /**
159: * Gets the buildingAddressStateCode attribute.
160: *
161: * @return Returns the buildingAddressStateCode.
162: */
163: public String getBuildingAddressStateCode() {
164: return buildingAddressStateCode;
165: }
166:
167: /**
168: * Sets the buildingAddressStateCode attribute value.
169: *
170: * @param buildingAddressStateCode The buildingAddressStateCode to set.
171: */
172: public void setBuildingAddressStateCode(
173: String buildingAddressStateCode) {
174: this .buildingAddressStateCode = buildingAddressStateCode;
175: }
176:
177: /**
178: * Gets the buildingAddressZipCode attribute.
179: *
180: * @return Returns the buildingAddressZipCode.
181: */
182: public String getBuildingAddressZipCode() {
183: return buildingAddressZipCode;
184: }
185:
186: /**
187: * Sets the buildingAddressZipCode attribute value.
188: *
189: * @param buildingAddressZipCode The buildingAddressZipCode to set.
190: */
191: public void setBuildingAddressZipCode(String buildingAddressZipCode) {
192: this .buildingAddressZipCode = buildingAddressZipCode;
193: }
194:
195: /**
196: * Gets the buildingStreetAddress attribute.
197: *
198: * @return Returns the buildingStreetAddress.
199: */
200: public String getBuildingStreetAddress() {
201: return buildingStreetAddress;
202: }
203:
204: /**
205: * Sets the buildingStreetAddress attribute value.
206: *
207: * @param buildingStreetAddress The buildingStreetAddress to set.
208: */
209: public void setBuildingStreetAddress(String buildingStreetAddress) {
210: this .buildingStreetAddress = buildingStreetAddress;
211: }
212:
213: /**
214: * Gets the buildingAddressState attribute.
215: *
216: * @return Returns the buildingAddressState.
217: */
218: public State getBuildingAddressState() {
219: return buildingAddressState;
220: }
221:
222: /**
223: * Sets the buildingAddressState attribute value.
224: *
225: * @param buildingAddressState The buildingAddressState to set.
226: * @deprecated
227: */
228: public void setBuildingAddressState(State buildingAddressState) {
229: this .buildingAddressState = buildingAddressState;
230: }
231:
232: /**
233: * Gets the buildingAddressZip attribute.
234: *
235: * @return Returns the buildingAddressZip.
236: */
237: public PostalZipCode getBuildingAddressZip() {
238: return buildingAddressZip;
239: }
240:
241: /**
242: * Sets the buildingAddressZip attribute value.
243: *
244: * @param buildingAddressZip The buildingAddressZip to set.
245: * @deprecated
246: */
247: public void setBuildingAddressZip(PostalZipCode buildingAddressZip) {
248: this .buildingAddressZip = buildingAddressZip;
249: }
250:
251: /**
252: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
253: */
254: protected LinkedHashMap toStringMapper() {
255: LinkedHashMap m = new LinkedHashMap();
256: m.put("campusCode", this .campusCode);
257: m.put("buildingCode", this.buildingCode);
258: return m;
259: }
260:
261: }
|