001 /**
002 * Copyright 2005-2014 The Kuali Foundation
003 *
004 * Licensed under the Educational Community License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 * http://www.opensource.org/licenses/ecl2.php
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016 package edu.sampleu.travel.options;
017
018 import org.kuali.rice.core.api.mo.common.Coded;
019
020 /**
021 * This class provides a small subset of postal country codes
022 *
023 * @author Kuali Rice Team (rice.collab@kuali.org)
024 */
025 public enum PostalCountryCode implements Coded {
026 AD("AD", "Andorra"),
027 AO("AO", "Angola"),
028 AI("AI", "Anguilla"),
029 AU("AU", "Australia"),
030 AT("AT", "Austria"),
031 BN("BN", "Brunei Darussalam"),
032 BG("BG", "Bulgaria"),
033 TD("TD", "Chad"),
034 CL("CL", "Chile"),
035 CN("CN", "China"),
036 YT("YT", "Mayotte"),
037 MX("MX", "Mexico"),
038 MC("MC", "Monaco"),
039 MN("MN", "Mongolia"),
040 ME("ME", "Montenegro"),
041 MS("MS", "Montserrat"),
042 MA("MA", "Morocco"),
043 MZ("MZ", "Mozambique"),
044 MM("MM", "Myanmar"),
045 NO("NO", "Norway"),
046 OM("OM", "Oman"),
047 PK("PK", "Pakistan"),
048 PW("PW", "Palau"),
049 RO("RO", "Romania"),
050 RU("RU", "Russian Federation"),
051 RW("RW", "Rwanda"),
052 ZA("ZA", "South Africa"),
053 SS("SS", "South Sudan"),
054 ES("ES", "Spain"),
055 TV("TV", "Tuvalu"),
056 UG("UG", "Uganda"),
057 UA("UA", "Ukraine"),
058 AE("AE", "United Arab Emirates"),
059 GB("GB", "United Kingdom"),
060 US("US", "United States"),
061 ZW("ZW", "Zimbabwe");
062
063 private final String code;
064 private final String label;
065
066 PostalCountryCode(String code, String label) {
067 this.code = code;
068 this.label = label;
069 }
070
071 @Override
072 public String getCode() {
073 return code;
074 }
075
076 public String getLabel() {
077 return label;
078 }
079
080 }