View Javadoc

1   /*
2    * Copyright 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  public class CountyImpl extends PersistableBusinessObjectBase implements Inactivateable, County {
24  
25      private String postalCountryCode;
26      private String countyCode;
27      private String stateCode;
28      private String countyName;
29      private boolean active;
30  
31      private State state;
32      private Country country;
33  
34      public State getState() {
35          return state;
36      }
37  
38      public void setState(State state) {
39          this.state = state;
40      }
41  
42      public boolean isActive() {
43          return active;
44      }
45  
46      public void setActive(boolean active) {
47          this.active = active;
48      }
49  
50      public String getCountyName() {
51          return countyName;
52      }
53  
54      public void setCountyName(String countName) {
55          this.countyName = countName;
56      }
57  
58      public String getCountyCode() {
59          return countyCode;
60      }
61  
62      public void setCountyCode(String countyCode) {
63          this.countyCode = countyCode;
64      }
65  
66      public String getStateCode() {
67          return stateCode;
68      }
69  
70      public void setStateCode(String stateCode) {
71          this.stateCode = stateCode;
72      }
73  
74      protected LinkedHashMap toStringMapper() {
75          LinkedHashMap m = new LinkedHashMap();
76          m.put("countyCode", this.countyCode);
77          m.put("stateCode", this.stateCode);
78          return m;
79      }
80  
81      /**
82       * Gets the postalCountryCode attribute.
83       * 
84       * @return Returns the postalCountryCode.
85       */
86      public String getPostalCountryCode() {
87          return postalCountryCode;
88      }
89  
90      /**
91       * Sets the postalCountryCode attribute value.
92       * 
93       * @param postalCountryCode The postalCountryCode to set.
94       */
95      public void setPostalCountryCode(String postalCountryCode) {
96          this.postalCountryCode = postalCountryCode;
97      }
98  
99      /**
100      * Gets the country attribute.
101      * 
102      * @return Returns the country.
103      */
104     public Country getCountry() {
105         return country;
106     }
107 
108     /**
109      * Sets the country attribute value.
110      * 
111      * @param country The country to set.
112      */
113     public void setCountry(Country country) {
114         this.country = country;
115     }
116 }