Enum LanguageAlpha3Code
- All Implemented Interfaces:
Serializable, Comparable<LanguageAlpha3Code>
Most languages have just one ISO 639-2 code, but there are some languages that have 2 codes, ISO 639-2/T code ("terminological" code) and ISO 639-2/B code ("bibliographic" code). The table below lists up langueses having two ISO 639-2 codes.
| ISO 639-1 | ISO 639-2/T | ISO 639-2/B | Language |
|---|---|---|---|
bo |
bod |
tib |
Tibetan |
eu |
eus |
baq |
Basque |
cs |
ces |
cze |
Czech |
cy |
cym |
wel |
Welsh |
de |
deu |
ger |
German |
el |
ell |
gre |
Greek |
fa |
fas |
per |
Persian |
fr |
fra |
fre |
French |
hy |
hye |
arm |
Armenian |
is |
isl |
ice |
Icelandic |
ka |
kat |
geo |
Georgian |
mi |
mri |
mao |
Māori |
mk |
mkd |
mac |
Macedonian |
ms |
msa |
may |
Malay |
my |
mya |
bur |
Burmese |
nl |
nld |
dut |
Dutch |
ro |
ron |
rum |
Romanian |
sk |
slk |
slo |
Slovak |
sq |
sqi |
alb |
Albanian |
ISO 639-2 code for Newari is new, but in this enum, the corresponding entry
is not new but New (the first letter is capital),
because new is a special word for Java programming language.
- Since:
- 1.1
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe usage of this language code. -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionOld English (ca. 450-1100)Official Aramaic (700-300 BCE)Azerbaijani (az).Belarusian (be).Dogri (macrolanguage)Middle Dutch (ca.Modern Greek (1453-) (el) for terminology applications.Middle English (1100-1500)Basque (family)Middle French (ca. 1400-1600)Old French (842-ca. 1400)West Frisian (fy).Middle High German (ca. 1050-1500)Old High German (ca. 750-1050)Ancient Greek (to 1453)Modern Greek (1453-) (el) for bibliographic applications.Armenian (family)Interlingue (ie).Indonesian (id).Japanese (family)Kalaallisut (kl).Kinyarwanda (rw).Konkani (macrolanguage)Limburgish (li).Lithuanian (lt).Luxembourgish (lb).Luba-Katanga (lu).Macedonian (mk) for bibliographic applications.Marshallese (mh).Middle Irish (900-1200)Uncoded languages.Macedonian (mk) for terminology applications.Multiple languages.Ottoman Turkish (1500-1928)Old Persian (ca.Portuguese (pt).Old Provençal (to 1500)Quechuan (family)Old Irish (to 900)Northern Sami (se).Southern Sotho (st).Undetermined.Undefined.Vietnamese (vi).Chinese (family)No linguistic content. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static Stringcanonicalize(String code, boolean caseSensitive) static List<LanguageAlpha3Code> findByName(String regex) Get a list ofLanguageAlpha3Codeby a name regular expression.static List<LanguageAlpha3Code> findByName(Pattern pattern) Get a list ofLanguageAlpha3Codeby a name pattern.Get ISO 639-1 language code.Get the bibliographic code of this language.Get the terminological code of this language.static LanguageAlpha3Codestatic LanguageAlpha3Codestatic LanguageAlpha3CodegetByCodeIgnoreCase(String code) (package private) static LanguageAlpha3CodegetByEnumName(String name) getName()Get the language name.Get the synonym of this code.getUsage()Get the usage of this language code.static LanguageAlpha3CodeReturns the enum constant of this type with the specified name.static LanguageAlpha3Code[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
undefined
Undefined.This is not an official ISO 639-2 code.
- Since:
- 1.14
- See Also:
-
aar
-
aav
-
abk
-
ace
-
ach
-
ada
-
ady
-
afa
-
afh
-
afr
-
ain
-
aka
-
akk
-
alb
-
ale
-
alg
-
alt
-
alv
-
amh
-
ang
-
anp
-
apa
-
aqa
-
aql
-
ara
-
arc
-
arg
-
arm
-
arn
-
arp
-
art
-
arw
-
asm
-
ast
-
ath
-
auf
-
aus
-
ava
-
ave
-
awa
-
awd
-
aym
-
azc
-
aze
Azerbaijani (az). -
bad
-
bai
-
bak
-
bal
-
bam
-
ban
-
baq
-
bas
-
bat
-
bej
-
bel
Belarusian (be). -
bem
-
ben
-
ber
-
bho
-
bih
-
bik
-
bin
-
bis
-
bla
-
bnt
-
bod
-
bos
-
bra
-
bre
-
btk
-
bua
-
bug
-
bul
-
bur
-
byn
-
cad
-
cai
-
car
-
cat
-
cau
-
cba
-
ccn
-
ccs
-
cdc
-
cdd
-
ceb
-
cel
-
ces
-
cha
-
chb
-
che
-
chg
-
chi
-
chk
-
chm
-
chn
-
cho
-
chp
-
chr
-
chu
-
chv
-
chy
-
cmc
-
cop
-
cor
-
cos
-
cpe
-
cpf
-
cpp
-
cre
-
crh
-
crp
-
csb
-
csu
-
cus
-
cym
-
cze
-
dak
-
dan
-
dar
-
day
-
del
-
den
-
deu
-
dgr
-
din
-
div
-
dmn
-
doi
-
dra
-
dsb
-
dua
-
dum
-
dut
-
dyu
-
dzo
-
efi
-
egx
-
egy
-
eka
-
ell
Modern Greek (1453-) (el) for terminology applications.- See Also:
-
elx
-
eng
-
enm
Middle English (1100-1500) -
epo
-
est
-
esx
-
euq
-
eus
- See Also:
-
ewe
-
ewo
-
fan
-
fao
-
fas
-
fat
-
fij
-
fil
-
fin
-
fiu
-
fon
-
fox
-
fra
-
fre
-
frm
-
fro
-
frr
-
frs
-
fry
West Frisian (fy). -
ful
-
fur
-
gaa
-
gay
-
gba
-
gem
-
geo
-
ger
-
gez
-
gil
-
gla
-
gle
-
glg
-
glv
-
gme
-
gmh
-
gmq
-
gmw
-
goh
-
gon
-
gor
-
got
-
grb
-
grc
-
gre
Modern Greek (1453-) (el) for bibliographic applications.- See Also:
-
grk
-
grn
-
gsw
-
guj
-
gwi
-
hai
-
hat
-
hau
-
haw
-
heb
-
her
-
hil
-
him
-
hin
-
hit
-
hmn
-
hmo
-
hmx
-
hok
-
hrv
-
hsb
-
hun
-
hup
-
hye
-
hyx
-
iba
-
ibo
-
ice
-
ido
-
iii
-
iir
-
ijo
-
iku
-
ile
Interlingue (ie). -
ilo
-
ina
-
inc
- Since:
- 1.10
-
ind
Indonesian (id). -
ine
-
inh
-
ipk
-
ira
-
iro
-
isl
-
ita
-
itc
-
jav
-
jbo
-
jpn
-
jpr
-
jpx
-
jrb
-
kaa
-
kab
-
kac
-
kal
Kalaallisut (kl). -
kam
-
kan
-
kar
-
kas
-
kat
-
kau
-
kaw
-
kaz
-
kbd
-
kdo
-
kha
-
khi
-
khm
-
kho
-
kik
-
kin
Kinyarwanda (rw). -
kir
-
kmb
-
kok
-
kom
-
kon
-
kor
-
kos
-
kpe
-
krc
-
krl
-
kro
-
kru
-
kua
-
kum
-
kur
-
kut
-
lad
-
lah
-
lam
-
lao
-
lat
-
lav
-
lez
-
lim
Limburgish (li). -
lin
-
lit
Lithuanian (lt). -
lol
-
loz
-
ltz
Luxembourgish (lb). -
lua
-
lub
Luba-Katanga (lu). -
lug
-
lui
-
lun
-
luo
-
lus
-
mac
Macedonian (mk) for bibliographic applications.- See Also:
-
mad
-
mag
-
mah
Marshallese (mh). -
mai
-
mak
-
mal
-
man
-
mao
-
map
-
mar
-
mas
-
may
- See Also:
-
mdf
-
mdr
-
men
-
mga
-
mic
-
min
-
mis
-
mkd
-
mkh
-
mlg
-
mlt
-
mnc
-
mni
-
mno
-
moh
-
mon
-
mos
-
mri
-
msa
-
mul
-
mun
-
mus
-
mwl
-
mwr
-
mya
-
myn
-
myv
-
nah
-
nai
-
nap
-
nau
-
nbl
-
nde
-
ndo
-
nds
-
nep
-
New
NewariBecause
newis a special word for Java programming language,newcannot be used as an enum entry. So, the first letter of this entry is a capital letter.toString()method of this instance (New) returns"new".- Since:
- 1.10
-
ngf
-
nia
-
nic
-
niu
-
nld
-
nno
-
nob
-
nog
-
non
-
nor
-
nqo
-
nso
-
nub
-
nwc
-
nya
-
nym
-
nyn
-
nyo
-
nzi
-
oci
-
oji
-
omq
-
omv
-
ori
-
orm
-
osa
-
oss
-
ota
-
oto
-
paa
-
pag
-
pal
-
pam
-
pan
-
pap
-
pau
-
peo
Old Persian (ca. 600-400 B.C.) -
per
-
phi
-
phn
-
plf
-
pli
-
pol
-
pon
-
por
Portuguese (pt). -
poz
-
pqe
-
pqw
-
pra
-
pro
-
pus
-
que
-
qwe
-
raj
-
rap
-
rar
-
roa
-
roh
-
rom
-
ron
-
rum
-
run
-
rup
-
rus
-
sad
-
sag
-
sah
-
sai
-
sal
-
sam
-
san
-
sas
-
sat
-
scn
-
sco
-
sdv
-
sel
-
sem
-
sga
-
sgn
-
shn
-
sid
-
sin
-
sio
-
sit
-
sla
-
slk
-
slo
-
slv
-
sma
-
sme
Northern Sami (se). -
smi
-
smj
-
smn
-
smo
-
sms
-
sna
-
snd
-
snk
-
sog
-
som
-
son
-
sot
Southern Sotho (st). -
spa
-
sqi
-
sqj
-
srd
-
srn
-
srp
-
srr
-
ssa
-
ssw
-
suk
-
sun
-
sus
-
sux
-
swa
-
swe
-
syc
-
syd
-
syr
-
tah
-
tai
-
tam
-
tat
-
tbq
-
tel
-
tem
-
ter
-
tet
-
tgk
-
tgl
-
tha
-
tib
-
tig
-
tir
-
tiv
-
tkl
-
tlh
-
tli
-
tmh
-
tog
-
ton
-
tpi
-
trk
-
tsi
-
tsn
-
tso
-
tuk
-
tum
-
tup
-
tur
-
tut
-
tuw
-
tvl
-
twi
-
tyv
-
udm
-
uga
-
uig
-
ukr
-
umb
-
und
-
urd
-
urj
-
uzb
-
vai
-
ven
-
vie
Vietnamese (vi). -
vol
-
vot
-
wak
-
wal
-
war
-
was
-
wel
-
wen
-
wln
-
wol
-
xal
-
xgn
-
xho
-
xnd
-
yao
-
yap
-
yid
-
yor
-
ypk
-
zap
-
zbl
-
zen
-
zha
-
zho
-
zhx
-
zle
-
zls
-
zlw
-
znd
-
zul
-
zun
-
zxx
-
zza
-
-
Field Details
-
name
Language name.
-
-
Constructor Details
-
LanguageAlpha3Code
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getName
-
getAlpha2
-
getUsage
Get the usage of this language code.Most language codes return
Usage.COMMON.- Returns:
- The usage of this language code.
-
getSynonym
Get the synonym of this code.In most cases, this method simply returns
thisobject. On the other hand, language codes that have two alpha-3 codes, namely, ISO 639-2/T code ("terminological" code) and ISO 639-2/B code ("bibliographic" code), return their counterparts. For example,LanguageAlpha3Code.deu.getSynonym()returnsLanguageAlpha3Code.ger.- Returns:
- ISO 639-2 language code.
-
getAlpha3B
Get the bibliographic code of this language.Most languages have just one ISO 639-2 code and they simply return
thisobject. Only ISO 639-2/T codes ("terminological" codes) return counterpart objects. For example,LanguageAlpha3Code.fra.getAlpha3B()returnsLanguageAlpha3Code.fre.- Returns:
- The bibliographic code of this language.
-
getAlpha3T
Get the terminological code of this language.Most languages have just one ISO 639-2 code and they simply return
thisobject. Only ISO 639-2/B codes ("bibliographic" codes) return counterpart objects. For example,LanguageAlpha3Code.fre.getAlpha3T()returnsLanguageAlpha3Code.fra.- Returns:
- The terminological code of this language.
-
getByCode
Get aLanguageAlpha3Codethat corresponds to a given ISO 639-1 code (2-letter lowercase code) or ISO 639-2 code (3-letter lowercase code).This method calls
getByCode(code, true). Note that the behavior has changed since the version 1.13. In the older versions, this method was an alias ofgetByCode(code, false).- Parameters:
code- An ISO 639-1 code (2-letter lowercase code) or an ISO 639-2 code (3-letter lowercase code). Or "undefined". Note that if the given code is one of legacy language codes ("iw", "ji" and "in"), it is treated as its official counterpart ("he", "yi" and "id"), respectively. For example, if "in" is given, this method returnsLanguageAlpha3Code.ind.- Returns:
- A
LanguageAlpha3Codeinstance, ornullif not found. If ISO 639-1 code (2-letter code) is given and the language has two ISO 639-2 codes, ISO 639/T code ("terminological" code) is returned.
-
getByCodeIgnoreCase
Get aLanguageAlpha3Codethat corresponds to a given ISO 639-1 code (2-letter lowercase code) or ISO 639-2 code (3-letter lowercase code).This method calls
getByCode(code, false).- Parameters:
code- An ISO 639-1 code (2-letter lowercase code) or an ISO 639-2 code (3-letter lowercase code). Or "undefined" (case insensitive). Note that if the given code is one of legacy language codes ("iw", "ji" and "in"), it is treated as its official counterpart ("he", "yi" and "id"), respectively. For example, if "in" is given, this method returnsLanguageAlpha3Code.ind.- Returns:
- A
LanguageAlpha3Codeinstance, ornullif not found. If ISO 639-1 code (2-letter code) is given and the language has two ISO 639-2 codes, ISO 639/T code ("terminological" code) is returned. - Since:
- 1.13
-
getByCode
Get aLanguageAlpha3Codethat corresponds to a given ISO 639-1 code (2-letter lowercase code) or ISO 639-2 code (3-letter lowercase code).- Parameters:
code- An ISO 639-1 code (2-letter lowercase code) or an ISO 639-2 code (3-letter lowercase code). Or "undefined" (its case sensitivity depends on the value ofcaseSensitive). Note that if the given code is one of legacy language codes ("iw", "ji" and "in"), it is treated as its official counterpart ("he", "yi" and "id"), respectively. For example, if "in" is given, this method returnsLanguageAlpha3Code.ind.caseSensitive- Iftrue, the given code should consist of lowercase letters only. Iffalse, this method internally canonicalizes the given code byString.toLowerCase()and then performs search. For example,getByCode("JPN", true)returnsnull, but on the other hand,getByCode("JPN", false)returnsLanguageAlpha3Code.jpn. As an exceptional case, bothgetByCode("New", true)andgetByCode("new", true)returnNew(Newari).- Returns:
- A
LanguageAlpha3Codeinstance, ornullif not found. If ISO 639-1 code (2-letter code) is given and the language has two ISO 639-2 codes, ISO 639/T code ("terminological" code) is returned.
-
getByEnumName
-
canonicalize
-
findByName
Get a list ofLanguageAlpha3Codeby a name regular expression.This method is almost equivalent to
findByName(Pattern.compile(regex)).- Parameters:
regex- Regular expression for names.- Returns:
- List of
LanguageAlpha3Code. If nothing has matched, an empty list is returned. - Throws:
IllegalArgumentException-regexisnull.PatternSyntaxException-regexfailed to be compiled.- Since:
- 1.11
-
findByName
Get a list ofLanguageAlpha3Codeby a name pattern.For example, the list obtained by the code snippet below:
Pattern pattern = Pattern.compile("Old.*"); List<LanguageAlpha3Code> list = LanguageAlpha3Code.findByName(pattern);contains 7
LanguageAlpha3Codes as listed below.- Parameters:
pattern- Pattern to match names.- Returns:
- List of
LanguageAlpha3Code. If nothing has matched, an empty list is returned. - Throws:
IllegalArgumentException-patternisnull.- Since:
- 1.11
-