1 16 package org.apache.juddi.util; 17 18 import java.lang.reflect.Field ; 19 20 25 public class Language 26 { 27 public static final String ABKHAZIAN = "ab"; 28 public static final String AFAR = "aa"; 29 public static final String AFRIKAANS = "af"; 30 public static final String ALBANIAN = "sq"; 31 public static final String AMHARIC = "am"; 32 public static final String ARABIC = "ar"; 33 public static final String ARMENIAN = "hy"; 34 public static final String ASSAMESE = "as"; 35 public static final String AYMARA = "ay"; 36 public static final String AZERBAIJANI = "az"; 37 public static final String BASHKIR = "ba"; 38 public static final String BASQUE = "eu"; 39 public static final String BENGALI = "bn"; 40 public static final String BHUTANI = "dz"; 41 public static final String BIHARI = "bh"; 42 public static final String BISLAMA = "bi"; 43 public static final String BRETON = "br"; 44 public static final String BULGARIAN = "bg"; 45 public static final String BURMESE = "my"; 46 public static final String BYELORUSSIAN = "be"; 47 public static final String CAMBODIAN = "km"; 48 public static final String CATALAN = "ca"; 49 public static final String CHINESE = "zh"; 50 public static final String CORSICAN = "co"; 51 public static final String CROATION = "hr"; 52 public static final String CZECH = "cs"; 53 public static final String DANISCH = "da"; 54 public static final String DUTCH = "nl"; 55 public static final String ENGLISH = "en"; 56 public static final String ESPERANTO = "eo"; 57 public static final String ESTONIAN = "et"; 58 public static final String FAEROESE = "fo"; 59 public static final String FARSI = "fa"; 60 public static final String FIJI = "fj"; 61 public static final String FINNISH = "fi"; 62 public static final String FRENCH = "fr"; 63 public static final String FRISIAN = "fy"; 64 public static final String GALICIAN = "gl"; 65 public static final String GEORGIAN = "ka"; 66 public static final String GERMAN = "de"; 67 public static final String GREEK = "el"; 68 public static final String GREENLANDIC = "kl"; 69 public static final String GUARANI = "gn"; 70 public static final String GUJARATI = "gu"; 71 public static final String HAUSA = "ha"; 72 public static final String HEBREW = "iw"; 73 public static final String HEBREW_2 = "he"; 74 public static final String HINDI = "hi"; 75 public static final String HUNGARIAN = "hu"; 76 public static final String ICELANDIC = "is"; 77 public static final String INDONESIAN = "in"; 78 public static final String INDONESIAN_2 = "id"; 79 public static final String INTERLINGUA = "ia"; 80 public static final String INTERLINGUE = "ie"; 81 public static final String INUKTITUT = "iu"; 82 public static final String INUPIAK = "ik"; 83 public static final String IRISH = "ga"; 84 public static final String ITALIAN = "it"; 85 public static final String JAPANESE = "ja"; 86 public static final String JAVANESE = "jw"; 87 public static final String KANNADA = "kn"; 88 public static final String KASHMIRI = "ks"; 89 public static final String KAZAKH = "kk"; 90 public static final String KINYARWANDA = "rw"; 91 public static final String KIRGHIZ = "ky"; 92 public static final String KIRUNDI = "rn"; 93 public static final String KOREAN = "ko"; 94 public static final String KURDISH = "ku"; 95 public static final String LAOTHIAN = "lo"; 96 public static final String LATIN = "la"; 97 public static final String LATVIAN = "lv"; 98 public static final String LINGALA = "ln"; 99 public static final String LITHUANIAN = "lt"; 100 public static final String MACEDONIAN = "mk"; 101 public static final String MALAGASY = "mg"; 102 public static final String MALAY = "ms"; 103 public static final String MALAYALAM = "ml"; 104 public static final String MALTESE = "mt"; 105 public static final String MANX_GAELIC = "gv"; 106 public static final String MAORI = "mi"; 107 public static final String MARATHI = "mr"; 108 public static final String MOLDAVIAN = "mo"; 109 public static final String MONGOLIAN = "mn"; 110 public static final String NAURU = "na"; 111 public static final String NEPALI = "ne"; 112 public static final String NORWEGIAN = "no"; 113 public static final String OCCITAN = "oc"; 114 public static final String ORIYA = "or"; 115 public static final String OROMO = "om"; 116 public static final String PASHTO = "ps"; 117 public static final String POLISH = "pl"; 118 public static final String PORTUGUESE = "pt"; 119 public static final String PUNJABI = "pa"; 120 public static final String QUECHUA = "qu"; 121 public static final String RHAETO_ROMANCE = "rm"; 122 public static final String ROMANIAN = "ro"; 123 public static final String RUSSIAN = "ru"; 124 public static final String SAMOAN = "sm"; 125 public static final String SANGRO = "sg"; 126 public static final String SANSKRIT = "sa"; 127 public static final String SCOTS_GAELIC = "gd"; 128 public static final String SERBIAN = "sr"; 129 public static final String SERBO_CROATIAN = "sh"; 130 public static final String SESOTHO = "st"; 131 public static final String SETSWANA = "tn"; 132 public static final String SHONA = "sn"; 133 public static final String SINDHI = "sd"; 134 public static final String SINGHALESE = "si"; 135 public static final String SISWATI = "ss"; 136 public static final String SLOVAK = "sk"; 137 public static final String SLOVENIAN = "sl"; 138 public static final String SOMALI = "so"; 139 public static final String SPANISH = "es"; 140 public static final String SUNDANESE = "su"; 141 public static final String SWAHILI = "sw"; 142 public static final String SWEDISH = "sv"; 143 public static final String TAGALOG = "tl"; 144 public static final String TAJIK = "tg"; 145 public static final String TAMIL = "ta"; 146 public static final String TATAR = "tt"; 147 public static final String TELUGU = "te"; 148 public static final String THAI = "th"; 149 public static final String TIBETAN = "bo"; 150 public static final String TIGRINYA = "ti"; 151 public static final String TONGA = "to"; 152 public static final String TSONGA = "ts"; 153 public static final String TURKISH = "tr"; 154 public static final String TURKMEN = "tk"; 155 public static final String TWI = "tw"; 156 public static final String UIGHUR = "ug"; 157 public static final String UKRAINIAN = "uk"; 158 public static final String URDU = "ur"; 159 public static final String UZBEK = "uz"; 160 public static final String VIETNAMESE = "vi"; 161 public static final String VOLAPUK = "vo"; 162 public static final String WELSH = "cy"; 163 public static final String WOLOF = "wo"; 164 public static final String XHOSA = "xh"; 165 public static final String YIDDISH = "ji"; 166 public static final String YIDDISH_2 = "yi"; 167 public static final String YORUBA = "yo"; 168 public static final String ZULU = "zu"; 169 170 174 public static boolean isLanguageCode(String code) 175 { 176 try 178 { 179 Field [] codes = Language.class.getFields(); 180 181 for (int i=0; i<codes.length; i++) 182 { 183 if (codes[i].get(null).equals(code)) 184 return true; 185 } 186 } 187 catch (IllegalAccessException e) { } 188 189 return false; 190 } 191 } | Popular Tags |