View Javadoc

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  package org.kuali.rice.kns.bo;
17  
18  import java.util.LinkedHashMap;
19  
20  import org.kuali.rice.kns.bo.Inactivateable;
21  import org.kuali.rice.kns.bo.PersistableBusinessObjectBase;
22  
23  /**
24   *
25   */
26  
27  public class CountryImpl extends PersistableBusinessObjectBase implements Inactivateable, Country{
28  
29      private String postalCountryCode;
30      private String alternatePostalCountryCode;
31      private String postalCountryName;
32      private boolean postalCountryRestrictedIndicator;
33      private boolean active;
34  
35      /**
36       * Default no-arg constructor.
37       */
38  
39      public CountryImpl() {
40          super();
41      }
42  
43      /**
44       * @param postalCountryCode - The postalCountryCode to set
45       */
46      public void setPostalCountryCode(String postalCountryCode) {
47          this.postalCountryCode = postalCountryCode;
48      }
49  
50      /**
51       * @return Returns the postalCountryCode
52       */
53      public String getPostalCountryCode() {
54          return postalCountryCode;
55      }
56  
57      /**
58       * @param alternatePostalCountryCode - The alternatePostalCountryCode to set
59       */
60      public void setAlternatePostalCountryCode(String alternatePostalCountryCode) {
61          this.alternatePostalCountryCode = alternatePostalCountryCode;
62      }
63  
64      /**
65       * @return Returns the alternatePostalCountryCode
66       */
67      public String getAlternatePostalCountryCode() {
68      	return alternatePostalCountryCode;
69      }
70  
71      /**
72       * @param postalCountryName - The postalCountryName to set
73       */
74      public void setPostalCountryName(String postalCountryName) {
75          this.postalCountryName = postalCountryName;
76      }
77  
78      /**
79       * @return Returns the postalCountryName
80       */
81      public String getPostalCountryName() {
82          return postalCountryName;
83      }
84  
85      /**
86       * Gets the postalCountryRestrictedIndicator attribute.
87       * 
88       * @return Returns the postalCountryRestrictedIndicator.
89       */
90      public boolean isPostalCountryRestrictedIndicator() {
91          return postalCountryRestrictedIndicator;
92      }
93  
94      /**
95       * Sets the postalCountryRestrictedIndicator attribute value.
96       * 
97       * @param postalCountryRestrictedIndicator The postalCountryRestrictedIndicator to set.
98       */
99      public void setPostalCountryRestrictedIndicator(boolean postalCountryRestrictedIndicator) {
100         this.postalCountryRestrictedIndicator = postalCountryRestrictedIndicator;
101     }
102 
103     /**
104      * @see org.kuali.rice.kns.bo.BusinessObjectBase#toStringMapper()
105      */
106     protected LinkedHashMap toStringMapper() {
107         LinkedHashMap m = new LinkedHashMap();
108 
109         m.put("postalCountryCode", getPostalCountryCode());
110 
111         return m;
112     }
113 
114     /**
115      * Gets the active attribute. 
116      * @return Returns the active.
117      */
118     public boolean isActive() {
119         return active;
120     }
121 
122     /**
123      * Sets the active attribute value.
124      * @param active The active to set.
125      */
126     public void setActive(boolean active) {
127         this.active = active;
128     }
129 
130 }