001: /*
002: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
003: *
004: * Copyright 1997-2007 Sun Microsystems, Inc. All rights reserved.
005: *
006: * The contents of this file are subject to the terms of either the GNU
007: * General Public License Version 2 only ("GPL") or the Common
008: * Development and Distribution License("CDDL") (collectively, the
009: * "License"). You may not use this file except in compliance with the
010: * License. You can obtain a copy of the License at
011: * http://www.netbeans.org/cddl-gplv2.html
012: * or nbbuild/licenses/CDDL-GPL-2-CP. See the License for the
013: * specific language governing permissions and limitations under the
014: * License. When distributing the software, include this License Header
015: * Notice in each file and include the License file at
016: * nbbuild/licenses/CDDL-GPL-2-CP. Sun designates this
017: * particular file as subject to the "Classpath" exception as provided
018: * by Sun in the GPL Version 2 section of the License file that
019: * accompanied this code. If applicable, add the following below the
020: * License Header, with the fields enclosed by brackets [] replaced by
021: * your own identifying information:
022: * "Portions Copyrighted [year] [name of copyright owner]"
023: *
024: * Contributor(s):
025: *
026: * The Original Software is NetBeans. The Initial Developer of the Original
027: * Software is Sun Microsystems, Inc. Portions Copyright 1997-2007 Sun
028: * Microsystems, Inc. All Rights Reserved.
029: *
030: * If you wish your version of this file to be governed by only the CDDL
031: * or only the GPL Version 2, indicate your decision by adding
032: * "[Contributor] elects to include this software in this distribution
033: * under the [CDDL or GPL Version 2] license." If you do not indicate a
034: * single choice of license, a recipient has the option to distribute
035: * your version of this file under either the CDDL, the GPL Version 2 or
036: * to extend the choice of license to its licensees as provided above.
037: * However, if you add GPL Version 2 code and therefore, elected the GPL
038: * Version 2 license, then the option applies only if the new code is
039: * made subject to such option by the copyright holder.
040: */
041: /*
042: * ISO4217CurrencyCode.java
043: *
044: * Created on September 21, 2005, 12:06 AM
045: *
046: * To change this template, choose Tools | Options and locate the template under
047: * the Source Creation and Management node. Right-click the template and choose
048: * Open. You can then make changes to the template in the Source Editor.
049: */
050:
051: package org.netbeans.modules.visualweb.faces.dt.converter;
052:
053: import java.util.HashMap;
054: import java.util.Map;
055: import org.openide.util.NbBundle;
056:
057: /**
058: * The class lists all the currency code defined by ISO 4217
059: *
060: * @author cao
061: */
062: public class ISO4217CurrencyCode {
063:
064: // I got the list from http://www.xe.com/iso4217.htm
065: // Note: some of them are commented out because the java.util.Currency throws IllegalArgumentException on them in JDK1.4
066: private static String[] descriptions = new String[] {
067: "AED "
068: + NbBundle.getMessage(ISO4217CurrencyCode.class,
069: "AED"), // United Arab Emirates, Dirhams
070: "AFA "
071: + NbBundle.getMessage(ISO4217CurrencyCode.class,
072: "AFA"), // Afghanistan, Afghanis",
073: "ALL "
074: + NbBundle.getMessage(ISO4217CurrencyCode.class,
075: "ALL"), // Albania, Leke",
076: "AMD "
077: + NbBundle.getMessage(ISO4217CurrencyCode.class,
078: "AMD"), // Armenia, Drams",
079: "ANG "
080: + NbBundle.getMessage(ISO4217CurrencyCode.class,
081: "ANG"), // Netherlands Antilles, Guilders (also called Florins)",
082: "AOA "
083: + NbBundle.getMessage(ISO4217CurrencyCode.class,
084: "AOA"), // Angola, Kwanza",
085: "ARS "
086: + NbBundle.getMessage(ISO4217CurrencyCode.class,
087: "ARS"), // Argentina, Pesos",
088: "AUD "
089: + NbBundle.getMessage(ISO4217CurrencyCode.class,
090: "AUD"), // Australia, Dollars",
091: "AWG "
092: + NbBundle.getMessage(ISO4217CurrencyCode.class,
093: "AWG"), // Aruba, Guilders (also called Florins)",
094: "AZM "
095: + NbBundle.getMessage(ISO4217CurrencyCode.class,
096: "AZM"), // Azerbaijan, Manats",
097: "BAM "
098: + NbBundle.getMessage(ISO4217CurrencyCode.class,
099: "BAM"), // Bosnia and Herzegovina, Convertible Marka",
100: "BBD "
101: + NbBundle.getMessage(ISO4217CurrencyCode.class,
102: "BBD"), // Barbados, Dollars",
103: "BDT "
104: + NbBundle.getMessage(ISO4217CurrencyCode.class,
105: "BDT"), // Bangladesh, Taka",
106: "BGN "
107: + NbBundle.getMessage(ISO4217CurrencyCode.class,
108: "BGN"), // Bulgaria, Leva",
109: "BHD "
110: + NbBundle.getMessage(ISO4217CurrencyCode.class,
111: "BHD"), // Bahrain, Dinars",
112: "BIF "
113: + NbBundle.getMessage(ISO4217CurrencyCode.class,
114: "BIF"), // Burundi, Francs",
115: "BMD "
116: + NbBundle.getMessage(ISO4217CurrencyCode.class,
117: "BMD"), // Bermuda, Dollars",
118: "BND "
119: + NbBundle.getMessage(ISO4217CurrencyCode.class,
120: "BND"), // Brunei Darussalam, Dollars",
121: "BOB "
122: + NbBundle.getMessage(ISO4217CurrencyCode.class,
123: "BOB"), // Bolivia, Bolivianos",
124: "BRL "
125: + NbBundle.getMessage(ISO4217CurrencyCode.class,
126: "BRL"), // Brazil, Brazil Real",
127: "BSD "
128: + NbBundle.getMessage(ISO4217CurrencyCode.class,
129: "BSD"), // Bahamas, Dollars",
130: "BTN "
131: + NbBundle.getMessage(ISO4217CurrencyCode.class,
132: "BTN"), // Bhutan, Ngultrum",
133: "BWP "
134: + NbBundle.getMessage(ISO4217CurrencyCode.class,
135: "BWP"), // Botswana, Pulas",
136: "BYR "
137: + NbBundle.getMessage(ISO4217CurrencyCode.class,
138: "BYR"), // Belarus, Rubles",
139: "BZD "
140: + NbBundle.getMessage(ISO4217CurrencyCode.class,
141: "BZD"), // Belize, Dollars",
142: "CAD "
143: + NbBundle.getMessage(ISO4217CurrencyCode.class,
144: "CAD"), // Canada, Dollars",
145: "CDF "
146: + NbBundle.getMessage(ISO4217CurrencyCode.class,
147: "CDF"), // Congo/Kinshasa, Congolese Francs",
148: "CHF "
149: + NbBundle.getMessage(ISO4217CurrencyCode.class,
150: "CHF"), // Switzerland, Francs",
151: "CLP "
152: + NbBundle.getMessage(ISO4217CurrencyCode.class,
153: "CLP"), // Chile, Pesos",
154: "CNY "
155: + NbBundle.getMessage(ISO4217CurrencyCode.class,
156: "CNY"), // China, Yuan Renminbi",
157: "COP "
158: + NbBundle.getMessage(ISO4217CurrencyCode.class,
159: "COP"), // Colombia, Pesos",
160: "CRC "
161: + NbBundle.getMessage(ISO4217CurrencyCode.class,
162: "CRC"), // Costa Rica, Colones",
163: //"CSD Serbia, Dinars",
164: "CUP "
165: + NbBundle.getMessage(ISO4217CurrencyCode.class,
166: "CUP"), // Cuba, Pesos",
167: "CVE "
168: + NbBundle.getMessage(ISO4217CurrencyCode.class,
169: "CVE"), // Cape Verde, Escudos",
170: "CYP "
171: + NbBundle.getMessage(ISO4217CurrencyCode.class,
172: "CYP"), // Cyprus, Pounds",
173: "CZK "
174: + NbBundle.getMessage(ISO4217CurrencyCode.class,
175: "CZK"), // Czech Republic, Koruny",
176: "DJF "
177: + NbBundle.getMessage(ISO4217CurrencyCode.class,
178: "DJF"), // Djibouti, Francs",
179: "DKK "
180: + NbBundle.getMessage(ISO4217CurrencyCode.class,
181: "DKK"), // Denmark, Kroner",
182: "DOP "
183: + NbBundle.getMessage(ISO4217CurrencyCode.class,
184: "DOP"), // Dominican Republic, Pesos",
185: "DZD "
186: + NbBundle.getMessage(ISO4217CurrencyCode.class,
187: "DZD"), // Algeria, Algeria Dinars",
188: "EEK "
189: + NbBundle.getMessage(ISO4217CurrencyCode.class,
190: "EEK"), // Estonia, Krooni",
191: "EGP "
192: + NbBundle.getMessage(ISO4217CurrencyCode.class,
193: "EGP"), // Egypt, Pounds",
194: "ERN "
195: + NbBundle.getMessage(ISO4217CurrencyCode.class,
196: "ERN"), // Eritrea, Nakfa",
197: "ETB "
198: + NbBundle.getMessage(ISO4217CurrencyCode.class,
199: "ETB"), // Ethiopia, Birr",
200: "EUR "
201: + NbBundle.getMessage(ISO4217CurrencyCode.class,
202: "EUR"), // Euro Member Countries, Euro",
203: "FJD "
204: + NbBundle.getMessage(ISO4217CurrencyCode.class,
205: "FJD"), // Fiji, Dollars",
206: "FKP "
207: + NbBundle.getMessage(ISO4217CurrencyCode.class,
208: "FKP"), // Falkland Islands (Malvinas), Pounds",
209: "GBP "
210: + NbBundle.getMessage(ISO4217CurrencyCode.class,
211: "GBP"), // United Kingdom, Pounds",
212: "GEL "
213: + NbBundle.getMessage(ISO4217CurrencyCode.class,
214: "GEL"), // Georgia, Lari",
215: //"GGP Guernsey, Pounds",
216: "GHC "
217: + NbBundle.getMessage(ISO4217CurrencyCode.class,
218: "GHC"), // Ghana, Cedis",
219: "GIP "
220: + NbBundle.getMessage(ISO4217CurrencyCode.class,
221: "GIP"), // Gibraltar, Pounds",
222: "GMD "
223: + NbBundle.getMessage(ISO4217CurrencyCode.class,
224: "GMD"), // Gambia, Dalasi",
225: "GNF "
226: + NbBundle.getMessage(ISO4217CurrencyCode.class,
227: "GNF"), // Guinea, Francs",
228: "GTQ "
229: + NbBundle.getMessage(ISO4217CurrencyCode.class,
230: "GTQ"), // Guatemala, Quetzales",
231: "GYD "
232: + NbBundle.getMessage(ISO4217CurrencyCode.class,
233: "GYD"), // Guyana, Dollars",
234: "HKD "
235: + NbBundle.getMessage(ISO4217CurrencyCode.class,
236: "HKD"), // Hong Kong, Dollars",
237: "HNL "
238: + NbBundle.getMessage(ISO4217CurrencyCode.class,
239: "HNL"), // Honduras, Lempiras",
240: "HRK "
241: + NbBundle.getMessage(ISO4217CurrencyCode.class,
242: "HRK"), // Croatia, Kuna",
243: "HTG "
244: + NbBundle.getMessage(ISO4217CurrencyCode.class,
245: "HTG"), // Haiti, Gourdes",
246: "HUF "
247: + NbBundle.getMessage(ISO4217CurrencyCode.class,
248: "HUF"), // Hungary, Forint",
249: "IDR "
250: + NbBundle.getMessage(ISO4217CurrencyCode.class,
251: "IDR"), // Indonesia, Rupiahs",
252: "ILS "
253: + NbBundle.getMessage(ISO4217CurrencyCode.class,
254: "ILS"), // Israel, New Shekels",
255: //"IMP Isle of Man, Pounds",
256: "INR "
257: + NbBundle.getMessage(ISO4217CurrencyCode.class,
258: "INR"), // India, Rupees",
259: "IQD "
260: + NbBundle.getMessage(ISO4217CurrencyCode.class,
261: "IQD"), // Iraq, Dinars",
262: "IRR "
263: + NbBundle.getMessage(ISO4217CurrencyCode.class,
264: "IRR"), // Iran, Rials",
265: "ISK "
266: + NbBundle.getMessage(ISO4217CurrencyCode.class,
267: "ISK"), // Iceland, Kronur",
268: //"JEP Jersey, Pounds",
269: "JMD "
270: + NbBundle.getMessage(ISO4217CurrencyCode.class,
271: "JMD"), // Jamaica, Dollars",
272: "JOD "
273: + NbBundle.getMessage(ISO4217CurrencyCode.class,
274: "JOD"), // Jordan, Dinars",
275: "JPY "
276: + NbBundle.getMessage(ISO4217CurrencyCode.class,
277: "JPY"), // Japan, Yen",
278: "KES "
279: + NbBundle.getMessage(ISO4217CurrencyCode.class,
280: "KES"), // Kenya, Shillings",
281: "KGS "
282: + NbBundle.getMessage(ISO4217CurrencyCode.class,
283: "KGS"), // Kyrgyzstan, Soms",
284: "KHR "
285: + NbBundle.getMessage(ISO4217CurrencyCode.class,
286: "KHR"), // Cambodia, Riels",
287: "KMF "
288: + NbBundle.getMessage(ISO4217CurrencyCode.class,
289: "KMF"), // Comoros, Francs",
290: "KPW "
291: + NbBundle.getMessage(ISO4217CurrencyCode.class,
292: "KPW"), // Korea (North), Won",
293: "KRW "
294: + NbBundle.getMessage(ISO4217CurrencyCode.class,
295: "KRW"), // Korea (South), Won",
296: "KWD "
297: + NbBundle.getMessage(ISO4217CurrencyCode.class,
298: "KWD"), // Kuwait, Dinars",
299: "KYD "
300: + NbBundle.getMessage(ISO4217CurrencyCode.class,
301: "KYD"), // Cayman Islands, Dollars",
302: "KZT "
303: + NbBundle.getMessage(ISO4217CurrencyCode.class,
304: "KZT"), // Kazakhstan, Tenge",
305: "LAK "
306: + NbBundle.getMessage(ISO4217CurrencyCode.class,
307: "LAK"), // Laos, Kips",
308: "LBP "
309: + NbBundle.getMessage(ISO4217CurrencyCode.class,
310: "LBP"), // Lebanon, Pounds",
311: "LKR "
312: + NbBundle.getMessage(ISO4217CurrencyCode.class,
313: "LKR"), // Sri Lanka, Rupees",
314: "LRD "
315: + NbBundle.getMessage(ISO4217CurrencyCode.class,
316: "LRD"), // Liberia, Dollars",
317: "LSL "
318: + NbBundle.getMessage(ISO4217CurrencyCode.class,
319: "LSL"), // Lesotho, Maloti",
320: "LTL "
321: + NbBundle.getMessage(ISO4217CurrencyCode.class,
322: "LTL"), // Lithuania, Litai",
323: "LVL "
324: + NbBundle.getMessage(ISO4217CurrencyCode.class,
325: "LVL"), // Latvia, Lati",
326: "LYD "
327: + NbBundle.getMessage(ISO4217CurrencyCode.class,
328: "LYD"), // Libya, Dinars",
329: "MAD "
330: + NbBundle.getMessage(ISO4217CurrencyCode.class,
331: "MAD"), // Morocco, Dirhams",
332: "MDL "
333: + NbBundle.getMessage(ISO4217CurrencyCode.class,
334: "MDL"), // Moldova, Lei",
335: //"MGA Madagascar, Ariary",
336: "MKD "
337: + NbBundle.getMessage(ISO4217CurrencyCode.class,
338: "MKD"), // Macedonia, Denars",
339: "MMK "
340: + NbBundle.getMessage(ISO4217CurrencyCode.class,
341: "MMK"), // Myanmar (Burma), Kyats",
342: "MNT "
343: + NbBundle.getMessage(ISO4217CurrencyCode.class,
344: "MNT"), // Mongolia, Tugriks",
345: "MOP "
346: + NbBundle.getMessage(ISO4217CurrencyCode.class,
347: "MOP"), // Macau, Patacas",
348: "MRO "
349: + NbBundle.getMessage(ISO4217CurrencyCode.class,
350: "MRO"), // Mauritania, Ouguiyas",
351: "MTL "
352: + NbBundle.getMessage(ISO4217CurrencyCode.class,
353: "MTL"), // Malta, Liri",
354: "MUR "
355: + NbBundle.getMessage(ISO4217CurrencyCode.class,
356: "MUR"), // Mauritius, Rupees",
357: "MVR "
358: + NbBundle.getMessage(ISO4217CurrencyCode.class,
359: "MVR"), // Maldives (Maldive Islands), Rufiyaa",
360: "MWK "
361: + NbBundle.getMessage(ISO4217CurrencyCode.class,
362: "MWK"), // Malawi, Kwachas",
363: "MXN "
364: + NbBundle.getMessage(ISO4217CurrencyCode.class,
365: "MXN"), // Mexico, Pesos",
366: "MYR "
367: + NbBundle.getMessage(ISO4217CurrencyCode.class,
368: "MYR"), // Malaysia, Ringgits",
369: "MZM "
370: + NbBundle.getMessage(ISO4217CurrencyCode.class,
371: "MZM"), // Mozambique, Meticais",
372: "NAD "
373: + NbBundle.getMessage(ISO4217CurrencyCode.class,
374: "NAD"), // Namibia, Dollars",
375: "NGN "
376: + NbBundle.getMessage(ISO4217CurrencyCode.class,
377: "NGN"), // Nigeria, Nairas",
378: "NIO "
379: + NbBundle.getMessage(ISO4217CurrencyCode.class,
380: "NIO"), // Nicaragua, Cordobas",
381: "NOK "
382: + NbBundle.getMessage(ISO4217CurrencyCode.class,
383: "NOK"), // Norway, Krone",
384: "NPR "
385: + NbBundle.getMessage(ISO4217CurrencyCode.class,
386: "NPR"), // Nepal, Nepal Rupees",
387: "NZD "
388: + NbBundle.getMessage(ISO4217CurrencyCode.class,
389: "NZD"), // New Zealand, Dollars",
390: "OMR "
391: + NbBundle.getMessage(ISO4217CurrencyCode.class,
392: "OMR"), // Oman, Rials",
393: "PAB "
394: + NbBundle.getMessage(ISO4217CurrencyCode.class,
395: "PAB"), // Panama, Balboa",
396: "PEN "
397: + NbBundle.getMessage(ISO4217CurrencyCode.class,
398: "PEN"), // Peru, Nuevos Soles",
399: "PGK "
400: + NbBundle.getMessage(ISO4217CurrencyCode.class,
401: "PGK"), // Papua New Guinea, Kina",
402: "PHP "
403: + NbBundle.getMessage(ISO4217CurrencyCode.class,
404: "PHP"), // Philippines, Pesos",
405: "PKR "
406: + NbBundle.getMessage(ISO4217CurrencyCode.class,
407: "PKR"), // Pakistan, Rupees",
408: "PLN "
409: + NbBundle.getMessage(ISO4217CurrencyCode.class,
410: "PLN"), // Poland, Zlotych",
411: "PYG "
412: + NbBundle.getMessage(ISO4217CurrencyCode.class,
413: "PYG"), // Paraguay, Guarani",
414: "QAR "
415: + NbBundle.getMessage(ISO4217CurrencyCode.class,
416: "QAR"), // Qatar, Rials",
417: //"RON Romania, New Lei",
418: "RUB "
419: + NbBundle.getMessage(ISO4217CurrencyCode.class,
420: "RUB"), // Russia, Rubles",
421: "RWF "
422: + NbBundle.getMessage(ISO4217CurrencyCode.class,
423: "RWF"), // Rwanda, Rwanda Francs",
424: "SAR "
425: + NbBundle.getMessage(ISO4217CurrencyCode.class,
426: "SAR"), // Saudi Arabia, Riyals",
427: "SBD "
428: + NbBundle.getMessage(ISO4217CurrencyCode.class,
429: "SBD"), // Solomon Islands, Dollars",
430: "SCR "
431: + NbBundle.getMessage(ISO4217CurrencyCode.class,
432: "SCR"), // Seychelles, Rupees",
433: "SDD "
434: + NbBundle.getMessage(ISO4217CurrencyCode.class,
435: "SDD"), // Sudan, Dinars",
436: "SEK "
437: + NbBundle.getMessage(ISO4217CurrencyCode.class,
438: "SEK"), // Sweden, Kronor",
439: "SGD "
440: + NbBundle.getMessage(ISO4217CurrencyCode.class,
441: "SGD"), // Singapore, Dollars",
442: "SHP "
443: + NbBundle.getMessage(ISO4217CurrencyCode.class,
444: "SHP"), // Saint Helena, Pounds",
445: "SIT "
446: + NbBundle.getMessage(ISO4217CurrencyCode.class,
447: "SIT"), // Slovenia, Tolars",
448: "SKK "
449: + NbBundle.getMessage(ISO4217CurrencyCode.class,
450: "SKK"), // Slovakia, Koruny",
451: "SLL "
452: + NbBundle.getMessage(ISO4217CurrencyCode.class,
453: "SLL"), // Sierra Leone, Leones",
454: "SOS "
455: + NbBundle.getMessage(ISO4217CurrencyCode.class,
456: "SOS"), // Somalia, Shillings",
457: //"SPL Seborga, Luigini",
458: //"SRD Suriname, Dollars",
459: "STD "
460: + NbBundle.getMessage(ISO4217CurrencyCode.class,
461: "STD"), // Sao Tome and Principe, Dobras",
462: "SVC "
463: + NbBundle.getMessage(ISO4217CurrencyCode.class,
464: "SVC"), // El Salvador, Colones",
465: "SYP "
466: + NbBundle.getMessage(ISO4217CurrencyCode.class,
467: "SYP"), // Syria, Pounds",
468: "SZL "
469: + NbBundle.getMessage(ISO4217CurrencyCode.class,
470: "SZL"), // Swaziland, Emalangeni",
471: "THB "
472: + NbBundle.getMessage(ISO4217CurrencyCode.class,
473: "THB"), // Thailand, Baht",
474: "TJS "
475: + NbBundle.getMessage(ISO4217CurrencyCode.class,
476: "TJS"), // Tajikistan, Somoni",
477: "TMM "
478: + NbBundle.getMessage(ISO4217CurrencyCode.class,
479: "TMM"), // Turkmenistan, Manats",
480: "TND "
481: + NbBundle.getMessage(ISO4217CurrencyCode.class,
482: "TND"), // Tunisia, Dinars",
483: "TOP "
484: + NbBundle.getMessage(ISO4217CurrencyCode.class,
485: "TOP"), // Tonga, Pa\'anga",
486: "TRL "
487: + NbBundle.getMessage(ISO4217CurrencyCode.class,
488: "TRL"), // Turkey, Liras [being phased out]",
489: //"TRY Turkey, New Lira",
490: "TTD "
491: + NbBundle.getMessage(ISO4217CurrencyCode.class,
492: "TTD"), // Trinidad and Tobago, Dollars",
493: //"TVD Tuvalu, Tuvalu Dollars",
494: "TWD "
495: + NbBundle.getMessage(ISO4217CurrencyCode.class,
496: "TWD"), // Taiwan, New Dollars",
497: "TZS "
498: + NbBundle.getMessage(ISO4217CurrencyCode.class,
499: "TZS"), // Tanzania, Shillings",
500: "UAH "
501: + NbBundle.getMessage(ISO4217CurrencyCode.class,
502: "UAH"), // Ukraine, Hryvnia",
503: "UGX "
504: + NbBundle.getMessage(ISO4217CurrencyCode.class,
505: "UGX"), // Uganda, Shillings",
506: "USD "
507: + NbBundle.getMessage(ISO4217CurrencyCode.class,
508: "USD"), // United States of America, Dollars",
509: "UYU "
510: + NbBundle.getMessage(ISO4217CurrencyCode.class,
511: "UYU"), // Uruguay, Pesos",
512: "UZS "
513: + NbBundle.getMessage(ISO4217CurrencyCode.class,
514: "UZS"), // Uzbekistan, Sums",
515: "VEB "
516: + NbBundle.getMessage(ISO4217CurrencyCode.class,
517: "VEB"), // Venezuela, Bolivares",
518: "VND "
519: + NbBundle.getMessage(ISO4217CurrencyCode.class,
520: "VND"), // Viet Nam, Dong",
521: "VUV "
522: + NbBundle.getMessage(ISO4217CurrencyCode.class,
523: "VUV"), // Vanuatu, Vatu",
524: "WST "
525: + NbBundle.getMessage(ISO4217CurrencyCode.class,
526: "WST"), // Samoa, Tala",
527: "XAF "
528: + NbBundle.getMessage(ISO4217CurrencyCode.class,
529: "XAF"), // Communaute Financiere Africaine BEAC, Francs",
530: "XAG "
531: + NbBundle.getMessage(ISO4217CurrencyCode.class,
532: "XAG"), // Silver, Ounces",
533: "XAU "
534: + NbBundle.getMessage(ISO4217CurrencyCode.class,
535: "XAU"), // Gold, Ounces",
536: "XCD "
537: + NbBundle.getMessage(ISO4217CurrencyCode.class,
538: "XCD"), // East Caribbean Dollars",
539: "XDR "
540: + NbBundle.getMessage(ISO4217CurrencyCode.class,
541: "XDR"), // International Monetary Fund (IMF) Special Drawing Rights",
542: "XOF "
543: + NbBundle.getMessage(ISO4217CurrencyCode.class,
544: "XOF"), // Communaute Financiere Africaine BCEAO, Francs",
545: "XPD "
546: + NbBundle.getMessage(ISO4217CurrencyCode.class,
547: "XPD"), // Palladium Ounces",
548: "XPF "
549: + NbBundle.getMessage(ISO4217CurrencyCode.class,
550: "XPF"), // Comptoirs Fran?ais du Pacifique Francs",
551: "XPT "
552: + NbBundle.getMessage(ISO4217CurrencyCode.class,
553: "XPT"), // Platinum, Ounces",
554: "YER "
555: + NbBundle.getMessage(ISO4217CurrencyCode.class,
556: "YER"), // Yemen, Rials",
557: "ZAR "
558: + NbBundle.getMessage(ISO4217CurrencyCode.class,
559: "ZAR"), // South Africa, Rand",
560: "ZMK "
561: + NbBundle.getMessage(ISO4217CurrencyCode.class,
562: "ZMK"), // Zambia, Kwacha",
563: "ZWD "
564: + NbBundle.getMessage(ISO4217CurrencyCode.class,
565: "ZWD") // Zimbabwe, Zimbabwe Dollars"
566: };
567:
568: // Note: the codes should be in the same order as the descriptions
569: private static Map codesMap = new HashMap();
570: static {
571: for (int i = 0; i < descriptions.length; i++) {
572: codesMap.put(descriptions[i].substring(0, 3),
573: descriptions[i]);
574: }
575: }
576:
577: public static String getCode(int index) {
578: return descriptions[index].substring(0, 3);
579: }
580:
581: public static String[] getDisplayNames() {
582:
583: return descriptions;
584: }
585:
586: public static String getDisplayName(String code) {
587: return (String) codesMap.get(code);
588: }
589: }
|