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 Room extends PersistableBusinessObjectBase {
028:
029: private String campusCode;
030: private String buildingCode;
031: private String buildingRoomNumber;
032: private String buildingRoomType;
033: private String buildingRoomDepartment;
034: private String buildingRoomDescription;
035:
036: private Campus campus;
037:
038: /**
039: * Default constructor.
040: */
041: public Room() {
042:
043: }
044:
045: /**
046: * Gets the campusCode attribute.
047: *
048: * @return Returns the campusCode
049: */
050: public String getCampusCode() {
051: return campusCode;
052: }
053:
054: /**
055: * Sets the campusCode attribute.
056: *
057: * @param campusCode The campusCode to set.
058: */
059: public void setCampusCode(String campusCode) {
060: this .campusCode = campusCode;
061: }
062:
063: /**
064: * Gets the buildingCode attribute.
065: *
066: * @return Returns the buildingCode
067: */
068: public String getBuildingCode() {
069: return buildingCode;
070: }
071:
072: /**
073: * Sets the buildingCode attribute.
074: *
075: * @param buildingCode The buildingCode to set.
076: */
077: public void setBuildingCode(String buildingCode) {
078: this .buildingCode = buildingCode;
079: }
080:
081: /**
082: * Gets the buildingRoomNumber attribute.
083: *
084: * @return Returns the buildingRoomNumber
085: */
086: public String getBuildingRoomNumber() {
087: return buildingRoomNumber;
088: }
089:
090: /**
091: * Sets the buildingRoomNumber attribute.
092: *
093: * @param buildingRoomNumber The buildingRoomNumber to set.
094: */
095: public void setBuildingRoomNumber(String buildingRoomNumber) {
096: this .buildingRoomNumber = buildingRoomNumber;
097: }
098:
099: /**
100: * Gets the buildingRoomType attribute.
101: *
102: * @return Returns the buildingRoomType
103: */
104: public String getBuildingRoomType() {
105: return buildingRoomType;
106: }
107:
108: /**
109: * Sets the buildingRoomType attribute.
110: *
111: * @param buildingRoomType The buildingRoomType to set.
112: */
113: public void setBuildingRoomType(String buildingRoomType) {
114: this .buildingRoomType = buildingRoomType;
115: }
116:
117: /**
118: * Gets the buildingRoomDepartment attribute.
119: *
120: * @return Returns the buildingRoomDepartment
121: */
122: public String getBuildingRoomDepartment() {
123: return buildingRoomDepartment;
124: }
125:
126: /**
127: * Sets the buildingRoomDepartment attribute.
128: *
129: * @param buildingRoomDepartment The buildingRoomDepartment to set.
130: */
131: public void setBuildingRoomDepartment(String buildingRoomDepartment) {
132: this .buildingRoomDepartment = buildingRoomDepartment;
133: }
134:
135: /**
136: * Gets the buildingRoomDescription attribute.
137: *
138: * @return Returns the buildingRoomDescription
139: */
140: public String getBuildingRoomDescription() {
141: return buildingRoomDescription;
142: }
143:
144: /**
145: * Sets the buildingRoomDescription attribute.
146: *
147: * @param buildingRoomDescription The buildingRoomDescription to set.
148: */
149: public void setBuildingRoomDescription(
150: String buildingRoomDescription) {
151: this .buildingRoomDescription = buildingRoomDescription;
152: }
153:
154: /**
155: * Gets the campus attribute.
156: *
157: * @return Returns the campus
158: */
159: public Campus getCampus() {
160: return campus;
161: }
162:
163: /**
164: * Sets the campus attribute.
165: *
166: * @param campus The campus to set.
167: * @deprecated
168: */
169: public void setCampus(Campus campus) {
170: this .campus = campus;
171: }
172:
173: /**
174: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
175: */
176: protected LinkedHashMap toStringMapper() {
177: LinkedHashMap m = new LinkedHashMap();
178: m.put("campusCode", this .campusCode);
179: m.put("buildingCode", this .buildingCode);
180: m.put("buildingRoomNumber", this.buildingRoomNumber);
181: return m;
182: }
183: }
|