View Javadoc
1   /**
2    * Copyright 2005-2016 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 a small subset of postal country codes
22   *
23   * @author Kuali Rice Team (rice.collab@kuali.org)
24   */
25  public enum PostalCountryCode implements Coded {
26      AD("AD", "Andorra"),
27      AO("AO", "Angola"),
28      AI("AI", "Anguilla"),
29      AU("AU", "Australia"),
30      AT("AT", "Austria"),
31      BN("BN", "Brunei Darussalam"),
32      BG("BG", "Bulgaria"),
33      TD("TD", "Chad"),
34      CL("CL", "Chile"),
35      CN("CN", "China"),
36      YT("YT", "Mayotte"),
37      MX("MX", "Mexico"),
38      MC("MC", "Monaco"),
39      MN("MN", "Mongolia"),
40      ME("ME", "Montenegro"),
41      MS("MS", "Montserrat"),
42      MA("MA", "Morocco"),
43      MZ("MZ", "Mozambique"),
44      MM("MM", "Myanmar"),
45      NO("NO", "Norway"),
46      OM("OM", "Oman"),
47      PK("PK", "Pakistan"),
48      PW("PW", "Palau"),
49      RO("RO", "Romania"),
50      RU("RU", "Russian Federation"),
51      RW("RW", "Rwanda"),
52      ZA("ZA", "South Africa"),
53      SS("SS", "South Sudan"),
54      ES("ES", "Spain"),
55      TV("TV", "Tuvalu"),
56      UG("UG", "Uganda"),
57      UA("UA", "Ukraine"),
58      AE("AE", "United Arab Emirates"),
59      GB("GB", "United Kingdom"),
60      US("US", "United States"),
61      ZW("ZW", "Zimbabwe");
62  
63      private final String code;
64      private final String label;
65  
66      PostalCountryCode(String code, String label) {
67          this.code = code;
68          this.label = label;
69      }
70  
71      @Override
72      public String getCode() {
73          return code;
74      }
75  
76      public String getLabel() {
77          return label;
78      }
79  
80  }