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: package org.kuali.module.purap.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: import org.kuali.core.bo.Campus;
021: import org.kuali.core.bo.PersistableBusinessObjectBase;
022: import org.kuali.kfs.bo.Building;
023:
024: /**
025: * Building Parameter Business Object. Maintenance document for building parameters.
026: */
027: public class BuildingParameter extends PersistableBusinessObjectBase {
028:
029: private String campusCode;
030: private String buildingCode;
031: private String buildingOverrideCode;
032: private String buildingOverrideName;
033: private String buildingOverrideStreetAddress;
034: private String buildingOverrideAddressCityName;
035: private String buildingOverrideAddressStateCode;
036: private String buildingOverrideAddressZipCode;
037:
038: private Campus campus;
039: private Building building;
040:
041: /**
042: * Default constructor.
043: */
044: public BuildingParameter() {
045:
046: }
047:
048: public String getCampusCode() {
049: return campusCode;
050: }
051:
052: public void setCampusCode(String campusCode) {
053: this .campusCode = campusCode;
054: }
055:
056: public String getBuildingCode() {
057: return buildingCode;
058: }
059:
060: public void setBuildingCode(String buildingCode) {
061: this .buildingCode = buildingCode;
062: }
063:
064: public String getBuildingOverrideCode() {
065: return buildingOverrideCode;
066: }
067:
068: public void setBuildingOverrideCode(String buildingOverrideCode) {
069: this .buildingOverrideCode = buildingOverrideCode;
070: }
071:
072: public String getBuildingOverrideName() {
073: return buildingOverrideName;
074: }
075:
076: public void setBuildingOverrideName(String buildingOverrideName) {
077: this .buildingOverrideName = buildingOverrideName;
078: }
079:
080: public String getBuildingOverrideStreetAddress() {
081: return buildingOverrideStreetAddress;
082: }
083:
084: public void setBuildingOverrideStreetAddress(
085: String buildingOverrideStreetAddress) {
086: this .buildingOverrideStreetAddress = buildingOverrideStreetAddress;
087: }
088:
089: public String getBuildingOverrideAddressCityName() {
090: return buildingOverrideAddressCityName;
091: }
092:
093: public void setBuildingOverrideAddressCityName(
094: String buildingOverrideAddressCityName) {
095: this .buildingOverrideAddressCityName = buildingOverrideAddressCityName;
096: }
097:
098: public String getBuildingOverrideAddressStateCode() {
099: return buildingOverrideAddressStateCode;
100: }
101:
102: public void setBuildingOverrideAddressStateCode(
103: String buildingOverrideAddressStateCode) {
104: this .buildingOverrideAddressStateCode = buildingOverrideAddressStateCode;
105: }
106:
107: public String getBuildingOverrideAddressZipCode() {
108: return buildingOverrideAddressZipCode;
109: }
110:
111: public void setBuildingOverrideAddressZipCode(
112: String buildingOverrideAddressZipCode) {
113: this .buildingOverrideAddressZipCode = buildingOverrideAddressZipCode;
114: }
115:
116: public Campus getCampus() {
117: return campus;
118: }
119:
120: /**
121: * @deprecated
122: */
123: public void setCampus(Campus campus) {
124: this .campus = campus;
125: }
126:
127: public Building getBuilding() {
128: return building;
129: }
130:
131: /**
132: * @deprecated
133: */
134: public void setBuilding(Building building) {
135: this .building = building;
136: }
137:
138: /**
139: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
140: */
141: protected LinkedHashMap toStringMapper() {
142: LinkedHashMap m = new LinkedHashMap();
143: m.put("campusCode", this .campusCode);
144: m.put("buildingCode", this .buildingCode);
145: m.put("buildingOverrideCode", this.buildingOverrideCode);
146: return m;
147: }
148: }
|