01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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: package org.kuali.kfs.bo;
17:
18: import java.util.LinkedHashMap;
19:
20: import org.kuali.core.bo.PersistableBusinessObjectBase;
21:
22: /**
23: *
24: */
25:
26: public class Country extends PersistableBusinessObjectBase {
27:
28: private String postalCountryCode;
29: private String postalCountryName;
30: private boolean postalCountryRestrictedIndicator;
31:
32: /**
33: * Default no-arg constructor.
34: */
35:
36: public Country() {
37: super ();
38: }
39:
40: /**
41: * @param postalCountryCode - The postalCountryCode to set
42: */
43: public void setPostalCountryCode(String postalCountryCode) {
44: this .postalCountryCode = postalCountryCode;
45: }
46:
47: /**
48: * @return Returns the postalCountryCode
49: */
50: public String getPostalCountryCode() {
51: return postalCountryCode;
52: }
53:
54: /**
55: * @param postalCountryName - The postalCountryName to set
56: */
57: public void setPostalCountryName(String postalCountryName) {
58: this .postalCountryName = postalCountryName;
59: }
60:
61: /**
62: * @return Returns the postalCountryName
63: */
64: public String getPostalCountryName() {
65: return postalCountryName;
66: }
67:
68: /**
69: * Gets the postalCountryRestrictedIndicator attribute.
70: *
71: * @return Returns the postalCountryRestrictedIndicator.
72: */
73: public boolean isPostalCountryRestrictedIndicator() {
74: return postalCountryRestrictedIndicator;
75: }
76:
77: /**
78: * Sets the postalCountryRestrictedIndicator attribute value.
79: *
80: * @param postalCountryRestrictedIndicator The postalCountryRestrictedIndicator to set.
81: */
82: public void setPostalCountryRestrictedIndicator(
83: boolean postalCountryRestrictedIndicator) {
84: this .postalCountryRestrictedIndicator = postalCountryRestrictedIndicator;
85: }
86:
87: /**
88: * @see org.kuali.core.bo.BusinessObjectBase#toStringMapper()
89: */
90: protected LinkedHashMap toStringMapper() {
91: LinkedHashMap m = new LinkedHashMap();
92:
93: m.put("postalCountryCode", getPostalCountryCode());
94:
95: return m;
96: }
97:
98: }
|