KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > hp > hpl > jena > rdf > arp > lang > Iso3166


1 /*
2  * (c) Copyright 2001, 2002, 2003, 2004, 2005 Hewlett-Packard Development Company, LP
3  * All rights reserved.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  * notice, this list of conditions and the following disclaimer in the
12  * documentation and/or other materials provided with the distribution.
13  * 3. The name of the author may not be used to endorse or promote products
14  * derived from this software without specific prior written permission.
15
16  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
17  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
18  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
19  * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
20  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
21  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
25  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  
27  * * $Id: Iso3166.java,v 1.3 2005/02/21 12:10:57 andy_seaborne Exp $
28    
29    AUTHOR: Jeremy J. Carroll
30 */

31 /*
32  * Iso3166.java
33  *
34  * Created on July 24, 2001, 11:46 PM
35  */

36
37 package com.hp.hpl.jena.rdf.arp.lang;
38
39
40 import java.util.HashMap JavaDoc;
41 import java.util.Map JavaDoc;
42 /** Country code names from ISO 3166.
43  *<p>
44    An encapsulation of registry
45  * of ISO 3166.
46  * This was updated on 24th July 2001 from
47  * <a HREF="http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1/db_en.html">
48  * http://www.din.de/gremien/nas/nabd/iso3166ma/codlstp1/db_en.html</a>
49  *
50  * @author jjc
51  */

52 public class Iso3166 {
53
54    
55     static final Map JavaDoc all = new HashMap JavaDoc();
56
57     /** Creates new Iso639 */
58     private Iso3166(String JavaDoc code,String JavaDoc engName) {
59         this.code = code.toLowerCase();
60         name = engName;
61         all.put(this.code,this);
62     }
63     
64 /** Look a country code up in the list.
65  * @param countryId The country code to look up.
66  * @return The corresponding Iso3166 object,
67  * or null if not in the list.
68  */

69     static public Iso3166 find(String JavaDoc countryId) {
70         return (Iso3166)all.get(countryId);
71     }
72 /** The 2 character country code.
73  */

74     public final String JavaDoc code;
75 /** The name of the country (in English).
76  */

77     public final String JavaDoc name;
78     
79     static {
80         new Iso3166("AF","AFGHANISTAN");
81         new Iso3166("AL","ALBANIA");
82         new Iso3166("DZ","ALGERIA");
83         new Iso3166("AS","AMERICAN SAMOA");
84         new Iso3166("AD","ANDORRA");
85         new Iso3166("AO","ANGOLA");
86         new Iso3166("AI","ANGUILLA");
87         new Iso3166("AQ","ANTARCTICA");
88         new Iso3166("AG","ANTIGUA AND BARBUDA");
89         new Iso3166("AR","ARGENTINA");
90         new Iso3166("AM","ARMENIA");
91         new Iso3166("AW","ARUBA");
92         new Iso3166("AU","AUSTRALIA");
93         new Iso3166("AT","AUSTRIA");
94         new Iso3166("AZ","AZERBAIJAN");
95         new Iso3166("BS","BAHAMAS");
96         new Iso3166("BH","BAHRAIN");
97         new Iso3166("BD","BANGLADESH");
98         new Iso3166("BB","BARBADOS");
99         new Iso3166("BY","BELARUS");
100         new Iso3166("BE","BELGIUM");
101         new Iso3166("BZ","BELIZE");
102         new Iso3166("BJ","BENIN");
103         new Iso3166("BM","BERMUDA");
104         new Iso3166("BT","BHUTAN");
105         new Iso3166("BO","BOLIVIA");
106         new Iso3166("BA","BOSNIA AND HERZEGOVINA");
107         new Iso3166("BW","BOTSWANA");
108         new Iso3166("BV","BOUVET ISLAND");
109         new Iso3166("BR","BRAZIL");
110         new Iso3166("IO","BRITISH INDIAN OCEAN TERRITORY");
111         new Iso3166("BN","BRUNEI DARUSSALAM");
112         new Iso3166("BG","BULGARIA");
113         new Iso3166("BF","BURKINA FASO");
114         new Iso3166("BI","BURUNDI");
115         new Iso3166("KH","CAMBODIA");
116         new Iso3166("CM","CAMEROON");
117         new Iso3166("CA","CANADA");
118         new Iso3166("CV","CAPE VERDE");
119         new Iso3166("KY","CAYMAN ISLANDS");
120         new Iso3166("CF","CENTRAL AFRICAN REPUBLIC");
121         new Iso3166("TD","CHAD");
122         new Iso3166("CL","CHILE");
123         new Iso3166("CN","CHINA");
124         new Iso3166("CX","CHRISTMAS ISLAND");
125         new Iso3166("CC","COCOS (KEELING) ISLANDS");
126         new Iso3166("CO","COLOMBIA");
127         new Iso3166("KM","COMOROS");
128         new Iso3166("CG","CONGO");
129         new Iso3166("CD","CONGO, THE DEMOCRATIC REPUBLIC OF THE");
130         new Iso3166("CK","COOK ISLANDS");
131         new Iso3166("CR","COSTA RICA");
132         new Iso3166("CI","COTE D'IVOIRE");
133         new Iso3166("HR","CROATIA");
134         new Iso3166("CU","CUBA");
135         new Iso3166("CY","CYPRUS");
136         new Iso3166("CZ","CZECH REPUBLIC");
137         new Iso3166("DK","DENMARK");
138         new Iso3166("DJ","DJIBOUTI");
139         new Iso3166("DM","DOMINICA");
140         new Iso3166("DO","DOMINICAN REPUBLIC");
141         new Iso3166("TP","EAST TIMOR");
142         new Iso3166("EC","ECUADOR");
143         new Iso3166("EG","EGYPT");
144         new Iso3166("SV","EL SALVADOR");
145         new Iso3166("GQ","EQUATORIAL GUINEA");
146         new Iso3166("ER","ERITREA");
147         new Iso3166("EE","ESTONIA");
148         new Iso3166("ET","ETHIOPIA");
149         new Iso3166("FK","FALKLAND ISLANDS (MALVINAS)");
150         new Iso3166("FO","FAROE ISLANDS");
151         new Iso3166("FJ","FIJI");
152         new Iso3166("FI","FINLAND");
153         new Iso3166("FR","FRANCE");
154         new Iso3166("GF","FRENCH GUIANA");
155         new Iso3166("PF","FRENCH POLYNESIA");
156         new Iso3166("TF","FRENCH SOUTHERN TERRITORIES");
157         new Iso3166("GA","GABON");
158         new Iso3166("GM","GAMBIA");
159         new Iso3166("GE","GEORGIA");
160         new Iso3166("DE","GERMANY");
161         new Iso3166("GH","GHANA");
162         new Iso3166("GI","GIBRALTAR");
163         new Iso3166("GR","GREECE");
164         new Iso3166("GL","GREENLAND");
165         new Iso3166("GD","GRENADA");
166         new Iso3166("GP","GUADELOUPE");
167         new Iso3166("GU","GUAM");
168         new Iso3166("GT","GUATEMALA");
169         new Iso3166("GN","GUINEA");
170         new Iso3166("GW","GUINEA-BISSAU");
171         new Iso3166("GY","GUYANA");
172         new Iso3166("HT","HAITI");
173         new Iso3166("HM","HEARD ISLAND AND MCDONALD ISLANDS");
174         new Iso3166("VA","HOLY SEE (VATICAN CITY STATE)");
175         new Iso3166("HN","HONDURAS");
176         new Iso3166("HK","HONG KONG");
177         new Iso3166("HU","HUNGARY");
178         new Iso3166("IS","ICELAND");
179         new Iso3166("IN","INDIA");
180         new Iso3166("ID","INDONESIA");
181         new Iso3166("IR","IRAN, ISLAMIC REPUBLIC OF");
182         new Iso3166("IQ","IRAQ");
183         new Iso3166("IE","IRELAND");
184         new Iso3166("IL","ISRAEL");
185         new Iso3166("IT","ITALY");
186         new Iso3166("JM","JAMAICA");
187         new Iso3166("JP","JAPAN");
188         new Iso3166("JO","JORDAN");
189         new Iso3166("KZ","KAZAKSTAN");
190         new Iso3166("KE","KENYA");
191         new Iso3166("KI","KIRIBATI");
192         new Iso3166("KP","KOREA, DEMOCRATIC PEOPLE'S REPUBLIC OF");
193         new Iso3166("KR","KOREA, REPUBLIC OF");
194         new Iso3166("KW","KUWAIT");
195         new Iso3166("KG","KYRGYZSTAN");
196         new Iso3166("LA","LAO PEOPLE'S DEMOCRATIC REPUBLIC");
197         new Iso3166("LV","LATVIA");
198         new Iso3166("LB","LEBANON");
199         new Iso3166("LS","LESOTHO");
200         new Iso3166("LR","LIBERIA");
201         new Iso3166("LY","LIBYAN ARAB JAMAHIRIYA");
202         new Iso3166("LI","LIECHTENSTEIN");
203         new Iso3166("LT","LITHUANIA");
204         new Iso3166("LU","LUXEMBOURG");
205         new Iso3166("MO","MACAU");
206         new Iso3166("MK","MACEDONIA, THE FORMER YUGOSLAV REPUBLIC OF");
207         new Iso3166("MG","MADAGASCAR");
208         new Iso3166("MW","MALAWI");
209         new Iso3166("MY","MALAYSIA");
210         new Iso3166("MV","MALDIVES");
211         new Iso3166("ML","MALI");
212         new Iso3166("MT","MALTA");
213         new Iso3166("MH","MARSHALL ISLANDS");
214         new Iso3166("MQ","MARTINIQUE");
215         new Iso3166("MR","MAURITANIA");
216         new Iso3166("MU","MAURITIUS");
217         new Iso3166("YT","MAYOTTE");
218         new Iso3166("MX","MEXICO");
219         new Iso3166("FM","MICRONESIA, FEDERATED STATES OF");
220         new Iso3166("MD","MOLDOVA, REPUBLIC OF");
221         new Iso3166("MC","MONACO");
222         new Iso3166("MN","MONGOLIA");
223         new Iso3166("MS","MONTSERRAT");
224         new Iso3166("MA","MOROCCO");
225         new Iso3166("MZ","MOZAMBIQUE");
226         new Iso3166("MM","MYANMAR");
227         new Iso3166("NA","NAMIBIA");
228         new Iso3166("NR","NAURU");
229         new Iso3166("NP","NEPAL");
230         new Iso3166("NL","NETHERLANDS");
231         new Iso3166("AN","NETHERLANDS ANTILLES");
232         new Iso3166("NC","NEW CALEDONIA");
233         new Iso3166("NZ","NEW ZEALAND");
234         new Iso3166("NI","NICARAGUA");
235         new Iso3166("NE","NIGER");
236         new Iso3166("NG","NIGERIA");
237         new Iso3166("NU","NIUE");
238         new Iso3166("NF","NORFOLK ISLAND");
239         new Iso3166("MP","NORTHERN MARIANA ISLANDS");
240         new Iso3166("NO","NORWAY");
241         new Iso3166("OM","OMAN");
242         new Iso3166("PK","PAKISTAN");
243         new Iso3166("PW","PALAU");
244         new Iso3166("PS","PALESTINIAN TERRITORY, OCCUPIED");
245         new Iso3166("PA","PANAMA");
246         new Iso3166("PG","PAPUA NEW GUINEA");
247         new Iso3166("PY","PARAGUAY");
248         new Iso3166("PE","PERU");
249         new Iso3166("PH","PHILIPPINES");
250         new Iso3166("PN","PITCAIRN");
251         new Iso3166("PL","POLAND");
252         new Iso3166("PT","PORTUGAL");
253         new Iso3166("PR","PUERTO RICO");
254         new Iso3166("QA","QATAR");
255         new Iso3166("RE","REUNION");
256         new Iso3166("RO","ROMANIA");
257         new Iso3166("RU","RUSSIAN FEDERATION");
258         new Iso3166("RW","RWANDA");
259         new Iso3166("SH","SAINT HELENA");
260         new Iso3166("KN","SAINT KITTS AND NEVIS");
261         new Iso3166("LC","SAINT LUCIA");
262         new Iso3166("PM","SAINT PIERRE AND MIQUELON");
263         new Iso3166("VC","SAINT VINCENT AND THE GRENADINES");
264         new Iso3166("WS","SAMOA");
265         new Iso3166("SM","SAN MARINO");
266         new Iso3166("ST","SAO TOME AND PRINCIPE");
267         new Iso3166("SA","SAUDI ARABIA");
268         new Iso3166("SN","SENEGAL");
269         new Iso3166("SC","SEYCHELLES");
270         new Iso3166("SL","SIERRA LEONE");
271         new Iso3166("SG","SINGAPORE");
272         new Iso3166("SK","SLOVAKIA");
273         new Iso3166("SI","SLOVENIA");
274         new Iso3166("SB","SOLOMON ISLANDS");
275         new Iso3166("SO","SOMALIA");
276         new Iso3166("ZA","SOUTH AFRICA");
277         new Iso3166("GS","SOUTH GEORGIA AND THE SOUTH SANDWICH ISLANDS");
278         new Iso3166("ES","SPAIN");
279         new Iso3166("LK","SRI LANKA");
280         new Iso3166("SD","SUDAN");
281         new Iso3166("SR","SURINAME");
282         new Iso3166("SJ","SVALBARD AND JAN MAYEN");
283         new Iso3166("SZ","SWAZILAND");
284         new Iso3166("SE","SWEDEN");
285         new Iso3166("CH","SWITZERLAND");
286         new Iso3166("SY","SYRIAN ARAB REPUBLIC");
287         new Iso3166("TW","TAIWAN, PROVINCE OF CHINA");
288         new Iso3166("TJ","TAJIKISTAN");
289         new Iso3166("TZ","TANZANIA, UNITED REPUBLIC OF");
290         new Iso3166("TH","THAILAND");
291         new Iso3166("TG","TOGO");
292         new Iso3166("TK","TOKELAU");
293         new Iso3166("TO","TONGA");
294         new Iso3166("TT","TRINIDAD AND TOBAGO");
295         new Iso3166("TN","TUNISIA");
296         new Iso3166("TR","TURKEY");
297         new Iso3166("TM","TURKMENISTAN");
298         new Iso3166("TC","TURKS AND CAICOS ISLANDS");
299         new Iso3166("TV","TUVALU");
300         new Iso3166("UG","UGANDA");
301         new Iso3166("UA","UKRAINE");
302         new Iso3166("AE","UNITED ARAB EMIRATES");
303         new Iso3166("GB","UNITED KINGDOM");
304         new Iso3166("US","UNITED STATES");
305         new Iso3166("UM","UNITED STATES MINOR OUTLYING ISLANDS");
306         new Iso3166("UY","URUGUAY");
307         new Iso3166("UZ","UZBEKISTAN");
308         new Iso3166("VU","VANUATU");
309         new Iso3166("VE","VENEZUELA");
310         new Iso3166("VN","VIET NAM");
311         new Iso3166("VG","VIRGIN ISLANDS, BRITISH");
312         new Iso3166("VI","VIRGIN ISLANDS, U.S.");
313         new Iso3166("WF","WALLIS AND FUTUNA");
314         new Iso3166("EH","WESTERN SAHARA");
315         new Iso3166("YE","YEMEN");
316         new Iso3166("YU","YUGOSLAVIA");
317         new Iso3166("ZM","ZAMBIA");
318         new Iso3166("ZW","ZIMBABWE");
319         
320     }
321 }
322  
Popular Tags