Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PostalCodeImpl |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright 2007-2009 The Kuali Foundation | |
3 | * | |
4 | * Licensed under the Educational Community License, Version 2.0 (the "License"); | |
5 | * you may not use this file except in compliance with the License. | |
6 | * You may obtain a copy of the License at | |
7 | * | |
8 | * http://www.opensource.org/licenses/ecl2.php | |
9 | * | |
10 | * Unless required by applicable law or agreed to in writing, software | |
11 | * distributed under the License is distributed on an "AS IS" BASIS, | |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
13 | * See the License for the specific language governing permissions and | |
14 | * limitations under the License. | |
15 | */ | |
16 | ||
17 | package org.kuali.rice.kns.bo; | |
18 | ||
19 | import java.util.LinkedHashMap; | |
20 | ||
21 | import org.kuali.rice.kns.bo.ExternalizableBusinessObject; | |
22 | import org.kuali.rice.kns.bo.Inactivateable; | |
23 | import org.kuali.rice.kns.bo.PersistableBusinessObjectBase; | |
24 | ||
25 | /** | |
26 | * | |
27 | */ | |
28 | public class PostalCodeImpl extends PersistableBusinessObjectBase implements Inactivateable, PostalCode { | |
29 | ||
30 | private String postalCountryCode; | |
31 | private String postalCode; | |
32 | private String postalStateCode; | |
33 | private String postalCityName; | |
34 | private String buildingCode; | |
35 | private String buildingRoomNumber; | |
36 | private boolean active; | |
37 | private String countyCode; | |
38 | ||
39 | private State state; | |
40 | private Country country; | |
41 | private County county; | |
42 | /** | |
43 | * Default no-arg constructor. | |
44 | */ | |
45 | 0 | public PostalCodeImpl() { |
46 | ||
47 | 0 | } |
48 | ||
49 | /** | |
50 | * Gets the postalCode attribute. | |
51 | * | |
52 | * @return Returns the postalCode | |
53 | */ | |
54 | public String getPostalCode() { | |
55 | 0 | return postalCode; |
56 | } | |
57 | ||
58 | /** | |
59 | * Sets the postalCode attribute. | |
60 | * | |
61 | * @param postalCode The postalZipCode to set. | |
62 | */ | |
63 | public void setPostalCode(String postalCode) { | |
64 | 0 | this.postalCode = postalCode; |
65 | 0 | } |
66 | ||
67 | /** | |
68 | * Gets the postalStateCode attribute. | |
69 | * | |
70 | * @return Returns the postalStateCode | |
71 | */ | |
72 | public String getPostalStateCode() { | |
73 | 0 | return postalStateCode; |
74 | } | |
75 | ||
76 | /** | |
77 | * Sets the postalStateCode attribute. | |
78 | * | |
79 | * @param postalStateCode The postalStateCode to set. | |
80 | */ | |
81 | public void setPostalStateCode(String postalStateCode) { | |
82 | 0 | this.postalStateCode = postalStateCode; |
83 | 0 | } |
84 | ||
85 | /** | |
86 | * Gets the postalCityName attribute. | |
87 | * | |
88 | * @return Returns the postalCityName | |
89 | */ | |
90 | public String getPostalCityName() { | |
91 | 0 | return postalCityName; |
92 | } | |
93 | ||
94 | /** | |
95 | * Sets the postalCityName attribute. | |
96 | * | |
97 | * @param postalCityName The postalCityName to set. | |
98 | */ | |
99 | public void setPostalCityName(String postalCityName) { | |
100 | 0 | this.postalCityName = postalCityName; |
101 | 0 | } |
102 | ||
103 | /** | |
104 | * Gets the state attribute. | |
105 | * | |
106 | * @return Returns the state. | |
107 | */ | |
108 | public State getState() { | |
109 | 0 | return state; |
110 | } | |
111 | ||
112 | /** | |
113 | * Sets the state attribute value. | |
114 | * | |
115 | * @param state The state to set. | |
116 | */ | |
117 | public void setState(State state) { | |
118 | 0 | this.state = state; |
119 | 0 | } |
120 | ||
121 | /** | |
122 | * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper() | |
123 | */ | |
124 | protected LinkedHashMap toStringMapper() { | |
125 | 0 | LinkedHashMap m = new LinkedHashMap(); |
126 | 0 | m.put("postalCode", this.postalCode); |
127 | 0 | return m; |
128 | } | |
129 | ||
130 | /** | |
131 | * Gets the active attribute. | |
132 | * | |
133 | * @return Returns the active. | |
134 | */ | |
135 | public boolean isActive() { | |
136 | 0 | return active; |
137 | } | |
138 | ||
139 | /** | |
140 | * Sets the active attribute value. | |
141 | * | |
142 | * @param active The active to set. | |
143 | */ | |
144 | public void setActive(boolean active) { | |
145 | 0 | this.active = active; |
146 | 0 | } |
147 | ||
148 | public String getCountyCode() { | |
149 | 0 | return countyCode; |
150 | } | |
151 | ||
152 | public void setCountyCode(String countyCode) { | |
153 | 0 | this.countyCode = countyCode; |
154 | 0 | } |
155 | ||
156 | /** | |
157 | * Gets the postalCountryCode attribute. | |
158 | * | |
159 | * @return Returns the postalCountryCode. | |
160 | */ | |
161 | public String getPostalCountryCode() { | |
162 | 0 | return postalCountryCode; |
163 | } | |
164 | ||
165 | /** | |
166 | * Sets the postalCountryCode attribute value. | |
167 | * | |
168 | * @param postalCountryCode The postalCountryCode to set. | |
169 | */ | |
170 | public void setPostalCountryCode(String postalCountryCode) { | |
171 | 0 | this.postalCountryCode = postalCountryCode; |
172 | 0 | } |
173 | ||
174 | /** | |
175 | * Gets the country attribute. | |
176 | * | |
177 | * @return Returns the country. | |
178 | */ | |
179 | public Country getCountry() { | |
180 | 0 | return country; |
181 | } | |
182 | ||
183 | /** | |
184 | * Sets the country attribute value. | |
185 | * | |
186 | * @param country The country to set. | |
187 | */ | |
188 | public void setCountry(Country country) { | |
189 | 0 | this.country = country; |
190 | 0 | } |
191 | ||
192 | ||
193 | public County getCounty() { | |
194 | 0 | return county; |
195 | } | |
196 | ||
197 | public void setCounty(County county) { | |
198 | 0 | this.county = county; |
199 | 0 | } |
200 | ||
201 | ||
202 | } |