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.core.bo;
017:
018: import java.util.LinkedHashMap;
019:
020: /**
021: *
022: */
023: public class Campus extends PersistableBusinessObjectBase {
024:
025: private static final long serialVersionUID = 787567094298971223L;
026: private String campusCode;
027: private String campusName;
028: private String campusShortName;
029: private String campusTypeCode;
030:
031: private CampusType campusType;
032:
033: /**
034: * Default no-arg constructor.
035: */
036: public Campus() {
037:
038: }
039:
040: /**
041: * Gets the campusCode attribute.
042: *
043: * @return Returns the campusCode
044: *
045: */
046: public String getCampusCode() {
047: return campusCode;
048: }
049:
050: /**
051: * Sets the campusCode attribute.
052: *
053: * @param campusCode The campusCode to set.
054: *
055: */
056: public void setCampusCode(String campusCode) {
057: this .campusCode = campusCode;
058: }
059:
060: /**
061: * Gets the campusName attribute.
062: *
063: * @return Returns the campusName
064: *
065: */
066: public String getCampusName() {
067: return campusName;
068: }
069:
070: /**
071: * Sets the campusName attribute.
072: *
073: * @param campusName The campusName to set.
074: *
075: */
076: public void setCampusName(String campusName) {
077: this .campusName = campusName;
078: }
079:
080: /**
081: * Gets the campusShortName attribute.
082: *
083: * @return Returns the campusShortName
084: *
085: */
086: public String getCampusShortName() {
087: return campusShortName;
088: }
089:
090: /**
091: * Sets the campusShortName attribute.
092: *
093: * @param campusShortName The campusShortName to set.
094: *
095: */
096: public void setCampusShortName(String campusShortName) {
097: this .campusShortName = campusShortName;
098: }
099:
100: /**
101: * Gets the campusTypeCode attribute.
102: *
103: * @return Returns the campusTypeCode
104: *
105: */
106: public String getCampusTypeCode() {
107: return campusTypeCode;
108: }
109:
110: /**
111: * Sets the campusTypeCode attribute.
112: *
113: * @param campusTypeCode The campusTypeCode to set.
114: *
115: */
116: public void setCampusTypeCode(String campusTypeCode) {
117: this .campusTypeCode = campusTypeCode;
118: }
119:
120: /**
121: * Gets the campusType attribute.
122: * @return Returns the campusType.
123: */
124: public CampusType getCampusType() {
125: return campusType;
126: }
127:
128: /**
129: * Sets the campusType attribute value.
130: * @param campusType The campusType to set.
131: * @deprecated
132: */
133: public void setCampusType(CampusType campusType) {
134: this .campusType = campusType;
135: }
136:
137: /**
138: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
139: */
140: protected LinkedHashMap toStringMapper() {
141: LinkedHashMap m = new LinkedHashMap();
142: m.put("campusCode", this.campusCode);
143: return m;
144: }
145:
146: }
|