View Javadoc
1   /**
2    * Copyright 2005-2015 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 edu.sampleu.travel.options;
17  
18  import org.kuali.rice.core.api.mo.common.Coded;
19  
20  /**
21   * This class provides state postal codes for US
22   *
23   * @author Kuali Rice Team (rice.collab@kuali.org)
24   */
25  public enum PostalStateCode implements Coded {
26  
27      AL("AL", "Alabama"),
28      AK("AK", "Alaska"),
29      AZ("AZ", "Arizona"),
30      AR("AR", "Arkansas"),
31      CA("CA", "California"),
32      CO("CO", "Colorado"),
33      CT("CT", "Connecticut"),
34      DE("DE", "Delaware"),
35      FL("FL", "Florida"),
36      GA("GA", "Georgia"),
37      HI("HI", "Hawaii"),
38      ID("ID", "Idaho"),
39      IL("IL", "Illinois"),
40      IN("IN", "Indiana"),
41      IA("IA", "Iowa"),
42      KS("KS", "Kansas"),
43      KY("KY", "Kentucky"),
44      LA("LA", "Louisiana"),
45      ME("ME", "Maine"),
46      MD("MD", "Maryland"),
47      MA("MA", "Massachusetts"),
48      MI("MI", "Michigan"),
49      MN("MN", "Minnesota"),
50      MS("MS", "Mississippi"),
51      MO("MO", "Missouri"),
52      MT("MT", "Montana"),
53      NE("NE", "Nebraska"),
54      NV("NV", "Nevada"),
55      NH("NH", "New Hampshire"),
56      NJ("NJ", "New Jersey"),
57      NM("NM", "New Mexico"),
58      NY("NY", "New York"),
59      NC("NC", "North Carolina"),
60      ND("ND", "North Dakota"),
61      OH("OH", "Ohio"),
62      OK("OK", "Oklahoma"),
63      OR("OR", "Oregon"),
64      PA("PA", "Pennsylvania"),
65      RI("RI", "Rhode Island"),
66      SC("SC", "South Carolina"),
67      SD("SD", "South Dakota"),
68      TN("TN", "Tennessee"),
69      TX("TX", "Texas"),
70      UT("UT", "Utah"),
71      VT("VT", "Vermont"),
72      VA("VA", "Virginia"),
73      WA("WA", "Washington"),
74      WV("WV", "West Virginia"),
75      WI("WI", "Wisconsin"),
76      WY("WY", "Wyoming"),
77      DC("DC", "District of Columbia"),
78      AS("AS", "American Samoa"),
79      GU("GU", "Guam"),
80      MP("MP", "Northern Mariana Islands"),
81      PR("PR", "Puerto Rico"),
82      UM("UM", "United States Minor Outlying Islands"),
83      VI("VI", "Virgin Islands");
84  
85      private final String code;
86      private final String label;
87  
88      PostalStateCode(String code, String label) {
89          this.code = code;
90          this.label = label;
91      }
92  
93      @Override
94      public String getCode() {
95          return code;
96      }
97  
98      public String getLabel() {
99          return label;
100     }
101 
102 }
103