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.PersistableBusinessObjectBase;
022:
023: /**
024: *
025: */
026: public class PostalZipCode extends PersistableBusinessObjectBase {
027:
028: private String postalZipCode;
029: private String postalStateCode;
030: private String postalCityName;
031: private String buildingCode;
032: private String buildingRoomNumber;
033: private State state;
034:
035: /**
036: * Default no-arg constructor.
037: */
038: public PostalZipCode() {
039:
040: }
041:
042: /**
043: * Gets the postalZipCode attribute.
044: *
045: * @return Returns the postalZipCode
046: */
047: public String getPostalZipCode() {
048: return postalZipCode;
049: }
050:
051: /**
052: * Sets the postalZipCode attribute.
053: *
054: * @param postalZipCode The postalZipCode to set.
055: */
056: public void setPostalZipCode(String postalZipCode) {
057: this .postalZipCode = postalZipCode;
058: }
059:
060: /**
061: * Gets the postalStateCode attribute.
062: *
063: * @return Returns the postalStateCode
064: */
065: public String getPostalStateCode() {
066: return postalStateCode;
067: }
068:
069: /**
070: * Sets the postalStateCode attribute.
071: *
072: * @param postalStateCode The postalStateCode to set.
073: */
074: public void setPostalStateCode(String postalStateCode) {
075: this .postalStateCode = postalStateCode;
076: }
077:
078: /**
079: * Gets the postalCityName attribute.
080: *
081: * @return Returns the postalCityName
082: */
083: public String getPostalCityName() {
084: return postalCityName;
085: }
086:
087: /**
088: * Sets the postalCityName attribute.
089: *
090: * @param postalCityName The postalCityName to set.
091: */
092: public void setPostalCityName(String postalCityName) {
093: this .postalCityName = postalCityName;
094: }
095:
096: /**
097: * Gets the buildingCode attribute.
098: *
099: * @return Returns the buildingCode
100: */
101: public String getBuildingCode() {
102: return buildingCode;
103: }
104:
105: /**
106: * Sets the buildingCode attribute.
107: *
108: * @param buildingCode The buildingCode to set.
109: */
110: public void setBuildingCode(String buildingCode) {
111: this .buildingCode = buildingCode;
112: }
113:
114: /**
115: * Gets the buildingRoomNumber attribute.
116: *
117: * @return Returns the buildingRoomNumber
118: */
119: public String getBuildingRoomNumber() {
120: return buildingRoomNumber;
121: }
122:
123: /**
124: * Sets the buildingRoomNumber attribute.
125: *
126: * @param buildingRoomNumber The buildingRoomNumber to set.
127: */
128: public void setBuildingRoomNumber(String buildingRoomNumber) {
129: this .buildingRoomNumber = buildingRoomNumber;
130: }
131:
132: /**
133: * Gets the state attribute.
134: *
135: * @return Returns the state.
136: */
137: public State getState() {
138: return state;
139: }
140:
141: /**
142: * Sets the state attribute value.
143: *
144: * @param state The state to set.
145: */
146: public void setState(State state) {
147: this .state = state;
148: }
149:
150: /**
151: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
152: */
153: protected LinkedHashMap toStringMapper() {
154: LinkedHashMap m = new LinkedHashMap();
155: m.put("postalZipCode", this.postalZipCode);
156: return m;
157: }
158: }
|