Source Code Cross Referenced for CurrencyCode.java in  » Groupware » hipergate » com » knowgate » math » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Groupware » hipergate » com.knowgate.math 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:          Copyright (C) 2006  Know Gate S.L. All rights reserved.
003:                              C/Oña, 107 1º2 28050 Madrid (Spain)
004:
005:          Redistribution and use in source and binary forms, with or without
006:          modification, are permitted provided that the following conditions
007:          are met:
008:
009:          1. Redistributions of source code must retain the above copyright
010:             notice, this list of conditions and the following disclaimer.
011:
012:          2. The end-user documentation included with the redistribution,
013:             if any, must include the following acknowledgment:
014:             "This product includes software parts from hipergate
015:             (http://www.hipergate.org/)."
016:             Alternately, this acknowledgment may appear in the software itself,
017:             if and wherever such third-party acknowledgments normally appear.
018:
019:          3. The name hipergate must not be used to endorse or promote products
020:             derived from this software without prior written permission.
021:             Products derived from this software may not be called hipergate,
022:             nor may hipergate appear in their name, without prior written
023:             permission.
024:
025:          This library is distributed in the hope that it will be useful,
026:          but WITHOUT ANY WARRANTY; without even the implied warranty of
027:          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
028:
029:          You should have received a copy of hipergate License with this code;
030:          if not, visit http://www.hipergate.org or mail to info@hipergate.org
031:         */
032:
033:        package com.knowgate.math;
034:
035:        import java.util.Arrays;
036:        import java.util.Currency;
037:        import java.util.Comparator;
038:
039:        /**
040:         * Currency Code
041:         * @author Sergio Montoro Ten
042:         * @version 1.0
043:         */
044:
045:        public final class CurrencyCode {
046:
047:            private class CurrencyCodeComparator implements  Comparator {
048:                public int compare(Object oCurr1, Object oCurr2)
049:                        throws NullPointerException {
050:                    return oCurr1.toString().compareToIgnoreCase(
051:                            oCurr2.toString());
052:                }
053:            }
054:
055:            // ---------------------------------------------------------------------------
056:
057:            /**
058:             * <p>Constructor</p>
059:             * @param iNum int
060:             * @param sAlpha String ISO 4217 3-letter code
061:             * @param sSign String "$", "€", "£", etc.
062:             * @param sId String ISO-639 two letter country code
063:             * @param sNm String Country Name
064:             * @param sTrEn String Currency Name (english)
065:             * @throws NullPointerException if currencyCode is null
066:             * @throws IllegalArgumentException if currencyCode is not a supported ISO 4217 code.
067:             */
068:            public CurrencyCode(int iNum, String sAlpha, String sSign,
069:                    String sId, String sNm, String sTrEn)
070:                    throws NullPointerException, IllegalArgumentException {
071:
072:                iNumericCode = iNum;
073:                sAlphaCode = sAlpha;
074:                sSignCode = sSign;
075:                sIdEntity = sId;
076:                sNmEntity = sNm;
077:                sNmCurrencyEn = sTrEn;
078:                jCurrency = Currency.getInstance(sAlpha);
079:            }
080:
081:            // ---------------------------------------------------------------------------
082:
083:            public Currency currency() {
084:                return jCurrency;
085:            }
086:
087:            // ---------------------------------------------------------------------------
088:
089:            public String countryCode() {
090:                return sIdEntity;
091:            }
092:
093:            // ---------------------------------------------------------------------------
094:
095:            public String alphaCode() {
096:                return sAlphaCode;
097:            }
098:
099:            // ---------------------------------------------------------------------------
100:
101:            public String singleCharSign() {
102:                return sSignCode;
103:            }
104:
105:            // ---------------------------------------------------------------------------
106:
107:            public String currencyName() {
108:                return sNmCurrencyEn;
109:            }
110:
111:            // ---------------------------------------------------------------------------
112:
113:            public int numericCode() {
114:                return iNumericCode;
115:            }
116:
117:            // ---------------------------------------------------------------------------
118:
119:            public boolean equals(CurrencyCode oCurCod) {
120:                if (sAlphaCode == null || oCurCod.alphaCode() == null)
121:                    return false;
122:                else
123:                    return sAlphaCode.equals(oCurCod.alphaCode());
124:            }
125:
126:            // ---------------------------------------------------------------------------
127:
128:            public String toString() {
129:                return sAlphaCode;
130:            }
131:
132:            // ---------------------------------------------------------------------------
133:
134:            public static CurrencyCode currencyCodeFor(String sAlphaCode) {
135:                CurrencyCode oCurrCode;
136:                int iTableIndex;
137:                if (sAlphaCode != null) {
138:                    if (sAlphaCode.equalsIgnoreCase("EUR"))
139:                        oCurrCode = EUR;
140:                    else if (sAlphaCode.equalsIgnoreCase("USD"))
141:                        oCurrCode = USD;
142:                    else if (sAlphaCode.equalsIgnoreCase("GBP"))
143:                        oCurrCode = GBP;
144:                    else if (sAlphaCode.equalsIgnoreCase("JPY"))
145:                        oCurrCode = JPY;
146:                    else if (sAlphaCode.equalsIgnoreCase("CNY"))
147:                        oCurrCode = CNY;
148:                    else if (sAlphaCode.equalsIgnoreCase("RUB"))
149:                        oCurrCode = RUB;
150:                    else {
151:                        oCurrCode = EUR; // Avoid variable might not have been initialized
152:                        iTableIndex = Arrays.binarySearch(Table, sAlphaCode,
153:                                oCurrCode.currencyCodeComparator());
154:                        if (iTableIndex >= 0)
155:                            oCurrCode = Table[iTableIndex];
156:                        else
157:                            oCurrCode = null;
158:                    }
159:                } else {
160:                    oCurrCode = null;
161:                }
162:                return oCurrCode;
163:            } // currencyCodeFor
164:
165:            // ---------------------------------------------------------------------------
166:
167:            public static CurrencyCode currencyCodeFor(int iNumCode) {
168:                final int iCount = Table.length;
169:                CurrencyCode oCurrCode = null;
170:                if (iNumCode == 978)
171:                    oCurrCode = EUR;
172:                else if (iNumCode == 840)
173:                    oCurrCode = USD;
174:                else if (iNumCode == 826)
175:                    oCurrCode = GBP;
176:                else if (iNumCode == 392)
177:                    oCurrCode = JPY;
178:                else if (iNumCode == 156)
179:                    oCurrCode = CNY;
180:                else if (iNumCode == 643)
181:                    oCurrCode = RUB;
182:                else {
183:                    for (int c = 0; c < iCount && oCurrCode == null; c++) {
184:                        if (Table[c].iNumericCode == iNumCode)
185:                            oCurrCode = Table[c];
186:                    } // next
187:                }
188:                return oCurrCode;
189:            } // currencyCodeFor
190:
191:            // ---------------------------------------------------------------------------
192:
193:            private CurrencyCodeComparator currencyCodeComparator() {
194:                if (null == oCurrCodeComp)
195:                    oCurrCodeComp = new CurrencyCodeComparator();
196:                return oCurrCodeComp;
197:            }
198:
199:            // ---------------------------------------------------------------------------
200:
201:            public static final CurrencyCode CNY = new CurrencyCode(156, "CNY",
202:                    "¤", "cn", "China", "Yuan Renminbi");
203:            public static final CurrencyCode EUR = new CurrencyCode(978, "EUR",
204:                    "€", "eec", "European Economic Comunity", "Euro");
205:            public static final CurrencyCode GBP = new CurrencyCode(826, "GBP",
206:                    "£", "uk", "United Kingdom", "Pound Sterling");
207:            public static final CurrencyCode JPY = new CurrencyCode(392, "JPY",
208:                    "¥", "jp", "Japan", "Yen");
209:            public static final CurrencyCode USD = new CurrencyCode(840, "USD",
210:                    "$", "us", "United States", "US Dollar");
211:            public static final CurrencyCode RUB = new CurrencyCode(643, "RUB",
212:                    "R", "ru", "Russia", "Russian Ruble");
213:
214:            // ---------------------------------------------------------------------------
215:
216:            private int iNumericCode;
217:            private String sAlphaCode;
218:            private String sSignCode;
219:            private String sIdEntity;
220:            private String sNmEntity;
221:            private String sNmCurrencyEn;
222:            private Currency jCurrency;
223:
224:            // ---------------------------------------------------------------------------
225:
226:            private static final Class ComparatorClass = new CurrencyCode(0,
227:                    null, null, null, null, null).getClass();
228:
229:            private CurrencyCodeComparator oCurrCodeComp = null;
230:
231:            // ---------------------------------------------------------------------------
232:
233:            private static final CurrencyCode[] Table = new CurrencyCode[] {
234:                    new CurrencyCode(20, "ADP", "¤", "ad", "Andorra",
235:                            "Andorran Peseta"),
236:                    new CurrencyCode(784, "AED", "¤", "ae",
237:                            "United Arab Emirates", "UAE Dirham"),
238:                    new CurrencyCode(4, "AFA", "¤", "af", "Afghanistan",
239:                            "Afghani"),
240:                    new CurrencyCode(8, "ALL", "¤", "al", "Albania", "Lek"),
241:                    new CurrencyCode(51, "AMD", "¤", "am", "Armenia",
242:                            "Armenian Dram"),
243:                    new CurrencyCode(532, "ANG", "ƒ", "an",
244:                            "Netherlands Antilles", "Antillian Guilder"),
245:                    new CurrencyCode(982, "AOR", "¤", "ao", "Angola",
246:                            "Kwanza Reajustado"),
247:                    new CurrencyCode(32, "ARS", "¤", "ar", "Argentina",
248:                            "Argentine Peso"),
249:                    new CurrencyCode(40, "ATS", "¤", "as", "Austria",
250:                            "Schilling"),
251:                    new CurrencyCode(36, "AUD", "$", "au", "Australia",
252:                            "Australian Dollar"),
253:                    new CurrencyCode(533, "AWG", "ƒ", "aw", "Aruba",
254:                            "Aruban Guilder"),
255:                    new CurrencyCode(31, "AZM", "¤", "az", "Azerbaijan",
256:                            "Azerbaijanian Manat"),
257:                    new CurrencyCode(977, "BAM", "¤", "ba",
258:                            "Bosnia-Herzegovina", "Convertible Marks"),
259:                    new CurrencyCode(52, "BBD", "$", "bb", "Barbados",
260:                            "Barbados Dollar"),
261:                    new CurrencyCode(50, "BDT", "¤", "bd", "Bangladesh", "Taka"),
262:                    new CurrencyCode(56, "BEF", "¤", "be", "Belgium",
263:                            "Belgian Franc"),
264:                    new CurrencyCode(975, "BGN", "¤", "bg", "Bulgaria",
265:                            "Bulgarian Lev"),
266:                    new CurrencyCode(48, "BHD", "¤", "bh", "Bahrain",
267:                            "Bahraini Dinar"),
268:                    new CurrencyCode(108, "BIF", "¤", "bi", "Burundi",
269:                            "Burundi Franc"),
270:                    new CurrencyCode(60, "BMD", "¤", "bm", "Bermuda",
271:                            "Bermudian Dollar"),
272:                    new CurrencyCode(96, "BND", "¤", "bn", "Brunei Darussalam",
273:                            "Brunei Dollar"),
274:                    new CurrencyCode(986, "BRL", "¤", "br", "Brazil",
275:                            "Brazilian Real"),
276:                    new CurrencyCode(44, "BSD", "¤", "bs", "Bahamas",
277:                            "Bahamian Dollar"),
278:                    new CurrencyCode(64, "BTN", "¤", "bt", "Bhutan", "Ngultrum"),
279:                    new CurrencyCode(72, "BWP", "¤", null, "Botswana", "Pula"),
280:                    new CurrencyCode(974, "BYR", "¤", "by", "Belarus",
281:                            "Belarussian Ruble"),
282:                    new CurrencyCode(84, "BZD", "¤", "bz", "Belize",
283:                            "Belize Dollar"),
284:                    new CurrencyCode(124, "CAD", "¤", "ca", "Canada",
285:                            "Canadian Dollar"),
286:                    new CurrencyCode(976, "CDF", "¤", "cg",
287:                            "Congo, The Democratic Republic Of",
288:                            "Franc Congolais"),
289:                    new CurrencyCode(756, "CHF", "¤", "ch", "Switzerland",
290:                            "Swiss Franc"),
291:                    new CurrencyCode(152, "CLP", "¤", "cl", "Chile",
292:                            "Chilean Peso"),
293:                    CNY,
294:                    new CurrencyCode(170, "COP", "¤", "co", "Colombia",
295:                            "Colombian Peso"),
296:                    new CurrencyCode(188, "CRC", "¤", "cr", "Costa Rica",
297:                            "Costa Rican Colon"),
298:                    new CurrencyCode(192, "CUP", "¤", "cu", "Cuba",
299:                            "Cuban Peso"),
300:                    new CurrencyCode(132, "CVE", "¤", "cv", "Cape Verde",
301:                            "Cape Verde Escudo"),
302:                    new CurrencyCode(196, "CYP", "¤", "cy", "Cyprus",
303:                            "Cyprus Pound"),
304:                    new CurrencyCode(203, "CZK", "¤", "cz", "Czech Republic",
305:                            "Czech Koruna"),
306:                    new CurrencyCode(280, "DEM", "¤", "nu", "Germany",
307:                            "Deutsche Mark"),
308:                    new CurrencyCode(262, "DJF", "¤", "dj", "Djibouti",
309:                            "Djibouti Franc"),
310:                    new CurrencyCode(208, "DKK", "¤", "dk", "Denmark",
311:                            "Danish Krone"),
312:                    new CurrencyCode(214, "DOP", "¤", "do",
313:                            "Dominican Republic", "Dominican Peso"),
314:                    new CurrencyCode(12, "DZD", "¤", "dz", "Algeria",
315:                            "Algerian Dinar"),
316:                    new CurrencyCode(218, "ECS", "¤", "ec", "Ecuador", "Sucre"),
317:                    new CurrencyCode(233, "EEK", "¤", "ee", "Estonia", "Kroon"),
318:                    new CurrencyCode(818, "EGP", "£", "eg", "Egypt",
319:                            "Egyptian Pound"),
320:                    new CurrencyCode(232, "ERN", "¤", "nu", "Eritrea", "Nakfa"),
321:                    new CurrencyCode(724, "ESP", "Pts", "es", "Spain",
322:                            "Spanish Peseta"),
323:                    new CurrencyCode(230, "ETB", "¤", "et", "Ethiopia",
324:                            "Ethiopian Birr"),
325:                    EUR,
326:                    new CurrencyCode(246, "FIM", "¤", "fi", "Finland", "Markka"),
327:                    new CurrencyCode(242, "FJD", "¤", "fj", "Fiji",
328:                            "Fiji Dollar"),
329:                    new CurrencyCode(238, "FKP", "¤", "fk", "Falkland Islands",
330:                            "Pound"),
331:                    new CurrencyCode(250, "FRF", "F", "fr", "France",
332:                            "French Franc"),
333:                    GBP,
334:                    new CurrencyCode(981, "GEL", "¤", "ge", "Georgia", "Lari"),
335:                    new CurrencyCode(288, "GHC", "¤", "gh", "Ghana", "Cedi"),
336:                    new CurrencyCode(292, "GIP", "£", "gi", "Gibraltar",
337:                            "Gibraltar Pound"),
338:                    new CurrencyCode(270, "GMD", "¤", "gm", "Gambia", "Dalasi"),
339:                    new CurrencyCode(324, "GNF", "F", "gn", "Guinea",
340:                            "Guinea Franc"),
341:                    new CurrencyCode(300, "GRD", "¤", "gr", "Greece", "Drachma"),
342:                    new CurrencyCode(320, "GTQ", "¤", "gt", "Guatemala",
343:                            "Quetzal"),
344:                    new CurrencyCode(624, "GWP", "¤", "gw", "Guinea-Bissau",
345:                            "Guinea-Bissau Peso"),
346:                    new CurrencyCode(328, "GYD", "$", "gy", "Guyana",
347:                            "Guyana Dollar"),
348:                    new CurrencyCode(344, "HKD", "$", "hk", "Hong Kong",
349:                            "Hong Kong Dollar"),
350:                    new CurrencyCode(340, "HNL", "¤", "hn", "Honduras",
351:                            "Lempira"),
352:                    new CurrencyCode(191, "HRK", "¤", "hr", "Croatia", "Kuna"),
353:                    new CurrencyCode(332, "HTG", "¤", "ht", "Haiti", "Gourde"),
354:                    new CurrencyCode(348, "HUF", "ƒ", "hu", "Hungary", "Forint"),
355:                    new CurrencyCode(360, "IDR", "¤", "id", "Indonesia",
356:                            "Rupiah"),
357:                    new CurrencyCode(360, "IDR", "¤", "tp", "East Timor",
358:                            "Rupiah"),
359:                    new CurrencyCode(372, "IEP", "£", "ie", "Ireland",
360:                            "Irish Pound"),
361:                    new CurrencyCode(376, "ILS", "¤", "il", "Israel",
362:                            "New Israeli Sheqel"),
363:                    new CurrencyCode(356, "INR", "¤", "in", "India",
364:                            "Indian Rupee"),
365:                    new CurrencyCode(368, "IQD", "¤", "iq", "Iraq",
366:                            "Iraqi Dinar"),
367:                    new CurrencyCode(364, "IRR", "¤", "ir", "Iran",
368:                            "Iranian Rial"),
369:                    new CurrencyCode(352, "ISK", "¤", "is", "Iceland",
370:                            "Iceland Krona"),
371:                    new CurrencyCode(380, "ITL", "£", "it", "Italy",
372:                            "Italian Lira"),
373:                    new CurrencyCode(388, "JMD", "$", "jm", "Jamaica",
374:                            "Jamaican Dollar"),
375:                    new CurrencyCode(400, "JOD", "¤", "jo", "Jordan",
376:                            "Jordanian Dinar"),
377:                    JPY,
378:                    new CurrencyCode(404, "KES", "¤", "ke", "Kenya",
379:                            "Kenyan Shilling"),
380:                    new CurrencyCode(417, "KGS", "¤", "kg", "Kyrgyzstan", "Som"),
381:                    new CurrencyCode(116, "KHR", "¤", "kh",
382:                            "Cambodia, Kingdom of", "Riel"),
383:                    new CurrencyCode(174, "KMF", "¤", "km", "Comoros",
384:                            "Comoro Franc"),
385:                    new CurrencyCode(408, "KPW", "¤", null,
386:                            "Korea, Democratic People's Republic Of",
387:                            "North Korean Won"),
388:                    new CurrencyCode(410, "KRW", "¤", null,
389:                            "Korea, Republic Of", "Won"),
390:                    new CurrencyCode(414, "KWD", "¤", "kw", "Kuwait",
391:                            "Kuwaiti Dinar"),
392:                    new CurrencyCode(136, "KYD", "¤", "ky", "Cayman Islands",
393:                            "Cayman Islands Dollar"),
394:                    new CurrencyCode(398, "KZT", "¤", "kz", "Kazakhstan",
395:                            "Tenge"),
396:                    new CurrencyCode(418, "LAK", "¤", "la",
397:                            "Lao People's Democratic Republic", "Kip"),
398:                    new CurrencyCode(422, "LBP", "¤", "lb", "Lebanon",
399:                            "Lebanese Pound"),
400:                    new CurrencyCode(144, "LKR", "¤", "lk", "Sri Lanka",
401:                            "Sri Lanka Rupee"),
402:                    new CurrencyCode(430, "LRD", "¤", "lr", "Liberia",
403:                            "Liberian Dollar"),
404:                    new CurrencyCode(426, "LSL", "¤", "ls", "Lesotho", "Loti"),
405:                    new CurrencyCode(440, "LTL", "¤", "lt", "Lithuania",
406:                            "Lithuanian Litas"),
407:                    new CurrencyCode(442, "LUF", "¤", "lu", "Luxembourg",
408:                            "Luxembourg Franc"),
409:                    new CurrencyCode(428, "LVL", "¤", "lv", "Latvia",
410:                            "Latvian Lats"),
411:                    new CurrencyCode(434, "LYD", "¤", "ly",
412:                            "Libyan Arab Jamahiriya", "Libyan Dinar"),
413:                    new CurrencyCode(504, "MAD", "¤", "ma", "Morocco",
414:                            "Moroccan Dirham"),
415:                    new CurrencyCode(498, "MDL", "¤", "md",
416:                            "Republic Of Moldova", "Moldovan Leu"),
417:                    new CurrencyCode(450, "MGF", "¤", "mg", "Madagascar",
418:                            "Malagasy Franc"),
419:                    new CurrencyCode(807, "MKD", "¤", "mk",
420:                            "Macedonia, The Former Yugoslav Republic Of",
421:                            "Denar"),
422:                    new CurrencyCode(104, "MMK", "¤", "mm", "Myanmar", "Kyat"),
423:                    new CurrencyCode(496, "MNT", "¤", "mn", "Mongolia",
424:                            "Tugrik"),
425:                    new CurrencyCode(446, "MOP", "¤", "mo", "Macau", "Pataca"),
426:                    new CurrencyCode(478, "MRO", "¤", "mr", "Mauritania",
427:                            "Ouguiya"),
428:                    new CurrencyCode(470, "MTL", "¤", "mt", "Malta",
429:                            "Maltese Lira"),
430:                    new CurrencyCode(480, "MUR", "¤", "mu", "Mauritius",
431:                            "Mauritius Rupee"),
432:                    new CurrencyCode(462, "MVR", "¤", "mv", "Maldives",
433:                            "Rufiyaa"),
434:                    new CurrencyCode(454, "MWK", "¤", "mw", "Malawi", "Kwacha"),
435:                    new CurrencyCode(484, "MXN", "¤", "mx", "Mexico",
436:                            "Mexican Peso"),
437:                    new CurrencyCode(979, "MXV", "¤", "mx", "Mexico",
438:                            "Mexican Unidad de Inversion (UDI)"),
439:                    new CurrencyCode(458, "MYR", "¤", "my", "Malaysia",
440:                            "Malaysian Ringgit"),
441:                    new CurrencyCode(508, "MZM", "¤", "mz", "Mozambique",
442:                            "Metical"),
443:                    new CurrencyCode(516, "NAD", "¤", "na", "Namibia",
444:                            "Namibia Dollar"),
445:                    new CurrencyCode(566, "NGN", "¤", "ng", "Nigeria", "Naira"),
446:                    new CurrencyCode(558, "NIO", "¤", "ni", "Nicaragua",
447:                            "Cordoba Oro"),
448:                    new CurrencyCode(528, "NLG", "¤", "nl", "Netherlands",
449:                            "Netherlands Guilder"),
450:                    new CurrencyCode(578, "NOK", "¤", "no", "Norway",
451:                            "Norwegian Krone"),
452:                    new CurrencyCode(524, "NPR", "¤", "np", "Nepal",
453:                            "Nepalese Rupee"),
454:                    new CurrencyCode(554, "NZD", "¤", "nz", "New Zealand",
455:                            "New Zealand Dollar"),
456:                    new CurrencyCode(512, "OMR", "¤", "om", "Oman",
457:                            "Rial Omani"),
458:                    new CurrencyCode(590, "PAB", "¤", "pa", "Panama", "Balboa"),
459:                    new CurrencyCode(604, "PEN", "¤", "pe", "Peru", "Nuevo Sol"),
460:                    new CurrencyCode(598, "PGK", "¤", "pg", "Papua New Guinea",
461:                            "Kina"),
462:                    new CurrencyCode(608, "PHP", "¤", "ph", "Philippines",
463:                            "Philippine Peso"),
464:                    new CurrencyCode(586, "PKR", "¤", "pk", "Pakistan",
465:                            "Pakistan Rupee"),
466:                    new CurrencyCode(985, "PLN", "¤", "pl", "Poland", "Zloty"),
467:                    new CurrencyCode(620, "PTE", "¤", "pt", "Portugal",
468:                            "Portuguese Escudo"),
469:                    new CurrencyCode(600, "PYG", "¤", "py", "Paraguay",
470:                            "Guarani"),
471:                    new CurrencyCode(634, "QAR", "¤", "qa", "Qatar",
472:                            "Qatari Rial"),
473:                    new CurrencyCode(642, "ROL", "¤", "ro", "Romania", "Leu"),
474:                    RUB,
475:                    new CurrencyCode(810, "RUR", "¤", "ru",
476:                            "Russian Federation", "Russian Ruble"),
477:                    new CurrencyCode(646, "RWF", "¤", "rw", "Rwanda",
478:                            "Rwanda Franc"),
479:                    new CurrencyCode(682, "SAR", "¤", "sa", "Saudi Arabia",
480:                            "Saudi Riyal"),
481:                    new CurrencyCode(90, "SBD", "¤", "sb", "Solomon Islands",
482:                            "Solomon Islands Dollar"),
483:                    new CurrencyCode(690, "SCR", "¤", "sc", "Seychelles",
484:                            "Seychelles Rupee"),
485:                    new CurrencyCode(736, "SDD", "¤", "sd", "Sudan",
486:                            "Sudanese Dinar"),
487:                    new CurrencyCode(752, "SEK", "¤", "se", "Sweden",
488:                            "Swedish Krona"),
489:                    new CurrencyCode(702, "SGD", "¤", "sg", "Singapore",
490:                            "Singapore Dollar"),
491:                    new CurrencyCode(705, "SIT", "¤", "si", "Slovenia", "Tolar"),
492:                    new CurrencyCode(703, "SKK", "¤", "si", "Slovakia",
493:                            "Slovak Koruna"),
494:                    new CurrencyCode(694, "SLL", "¤", "sl", "Sierra Leone",
495:                            "Leone"),
496:                    new CurrencyCode(706, "SOS", "¤", "so", "Somalia",
497:                            "Somali Shilling"),
498:                    new CurrencyCode(740, "SRG", "¤", "sr", "Suriname",
499:                            "Surinam Guilder"),
500:                    new CurrencyCode(678, "STD", "¤", "st",
501:                            "Saint Tome and Principe", "Dobra"),
502:                    new CurrencyCode(222, "SVC", "¤", "sv", "El Salvador",
503:                            "El Salvador Colon"),
504:                    new CurrencyCode(760, "SYP", "¤", "sy",
505:                            "Syrian Arab Republic", "Syrian Pound"),
506:                    new CurrencyCode(748, "SZL", "¤", "sz", "Swaziland",
507:                            "Lilangeni"),
508:                    new CurrencyCode(764, "THB", "?", "th", "Thailand", "Baht"),
509:                    new CurrencyCode(762, "TJR", "¤", "tj",
510:                            "Tadjikistan (Old)", "Tajik Ruble (old)"),
511:                    new CurrencyCode(972, "TJS", "¤", "tj", "Tadjikistan",
512:                            "Somoni"),
513:                    new CurrencyCode(795, "TMM", "¤", "tm", "Turkmenistan",
514:                            "Manat"),
515:                    new CurrencyCode(788, "TND", "¤", "tn", "Tunisia",
516:                            "Tunisian Dinar"),
517:                    new CurrencyCode(776, "TOP", "¤", "to", "Tonga", "Pa'anga"),
518:                    new CurrencyCode(626, "TPE", "¤", "tp", "East Timor",
519:                            "Timor Escudo"),
520:                    new CurrencyCode(792, "TRL", "£", "tr", "Turkey",
521:                            "Turkish Lira"),
522:                    new CurrencyCode(780, "TTD", "¤", "tt",
523:                            "Trinidad and Tobago", "Trinidad and Tobago Dollar"),
524:                    new CurrencyCode(901, "TWD", "¤", "tw", "Taiwan",
525:                            "New Taiwan Dollar"),
526:                    new CurrencyCode(834, "TZS", "¤", "tz",
527:                            "United Republic Of Tanzania", "Tanzanian Shilling"),
528:                    new CurrencyCode(980, "UAH", "¤", "ua", "Ukraine",
529:                            "Hryvnia"),
530:                    new CurrencyCode(800, "UGX", "¤", "ug", "Uganda",
531:                            "Uganda Shilling"),
532:                    USD,
533:                    new CurrencyCode(858, "UYU", "¤", "uy", "Uruguay",
534:                            "Peso Uruguayo"),
535:                    new CurrencyCode(860, "UZS", "¤", "uz", "Uzbekistan",
536:                            "Uzbekistan Sum"),
537:                    new CurrencyCode(862, "VEB", "¤", "ve", "Venezuela",
538:                            "Bolivar"),
539:                    new CurrencyCode(704, "VND", "¤", "vn", "Vietnam", "Dong"),
540:                    new CurrencyCode(548, "VUV", "¤", "vu", "Vanuatu", "Vatu"),
541:                    new CurrencyCode(882, "WST", "¤", "ws", "Samoa", "Tala"),
542:                    new CurrencyCode(950, "XAF", "¤", "ga",
543:                            "Gabon/Guinea/Congo/Chad/Cameroon",
544:                            "CFA Franc BEAC"),
545:                    new CurrencyCode(951, "XCD", "$", "gd",
546:                            "Caribbean Islands", "Caribbean Dollar"),
547:                    new CurrencyCode(952, "XOF", "¤", "gw",
548:                            "Guinea-Bissau/Togo/Senegal/niger/Mali",
549:                            "CFA Franc BCEAO"),
550:                    new CurrencyCode(953, "XPF", "¤", "pf",
551:                            "Polynesia/New Caledonia/Wallis", "CFP Franc"),
552:                    new CurrencyCode(999, "XXX", "", null, null, "No currency"),
553:                    new CurrencyCode(886, "YER", "¤", "ye", "Yemen",
554:                            "Yemeni Rial"),
555:                    new CurrencyCode(891, "YUM", "¤", "yu", "Yugoslavia",
556:                            "New Dinar"),
557:                    new CurrencyCode(710, "ZAR", "¤", "za",
558:                            "South Africa/Namibia/Lesotho", "Rand"),
559:                    new CurrencyCode(894, "ZMK", "¤", "zm", "Zambia", "Kwacha"),
560:                    new CurrencyCode(180, "ZRN", "¤", "zr", "Zaire",
561:                            "New Zaire"),
562:                    new CurrencyCode(716, "ZWD", "$", "zw", "Zimbabwe",
563:                            "Zimbabwe Dollar") };
564:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.