Enum Class LanguageAlpha3Code
- All Implemented Interfaces:
Serializable
,Comparable<LanguageAlpha3Code>
,java.lang.constant.Constable
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
- Author:
- Takahiko Kawasaki
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The usage of this language code.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum 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. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<LanguageAlpha3Code>
findByName
(String regex) Get a list ofLanguageAlpha3Code
by a name regular expression.static List<LanguageAlpha3Code>
findByName
(Pattern pattern) Get a list ofLanguageAlpha3Code
by a name pattern.Get ISO 639-1 language code.Get the bibliographic code of this language.Get the terminological code of this language.static LanguageAlpha3Code
static LanguageAlpha3Code
static LanguageAlpha3Code
getByCodeIgnoreCase
(String code) getName()
Get the language name.Get the synonym of this code.getUsage()
Get the usage of this language code.static LanguageAlpha3Code
Returns the enum constant of this class with the specified name.static LanguageAlpha3Code[]
values()
Returns an array containing the constants of this enum class, 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
- Since:
- 1.10
-
abk
-
ace
- Since:
- 1.10
-
ach
- Since:
- 1.10
-
ada
- Since:
- 1.10
-
ady
- Since:
- 1.10
-
afa
- Since:
- 1.10
-
afh
- Since:
- 1.10
-
afr
-
ain
- Since:
- 1.10
-
aka
-
akk
- Since:
- 1.10
-
alb
- See Also:
-
ale
- Since:
- 1.10
-
alg
- Since:
- 1.10
-
alt
- Since:
- 1.10
-
alv
- Since:
- 1.10
-
amh
-
ang
Old English (ca. 450-1100)- Since:
- 1.10
-
anp
- Since:
- 1.10
-
apa
- Since:
- 1.10
-
aqa
- Since:
- 1.10
-
aql
- Since:
- 1.10
-
ara
-
arc
Official Aramaic (700-300 BCE)- Since:
- 1.10
-
arg
-
arm
- See Also:
-
arn
- Since:
- 1.10
-
arp
- Since:
- 1.10
-
art
- Since:
- 1.10
-
arw
- Since:
- 1.10
-
asm
-
ast
- Since:
- 1.10
-
ath
- Since:
- 1.10
-
auf
- Since:
- 1.10
-
aus
- Since:
- 1.10
-
ava
-
ave
-
awa
- Since:
- 1.10
-
awd
- Since:
- 1.10
-
aym
-
azc
- Since:
- 1.10
-
aze
Azerbaijani (az
). -
bad
- Since:
- 1.10
-
bai
- Since:
- 1.10
-
bak
-
bal
-
bam
-
ban
- Since:
- 1.10
-
baq
- See Also:
-
bas
- Since:
- 1.10
-
bat
- Since:
- 1.10
-
bej
- Since:
- 1.10
-
bel
Belarusian (be
). -
bem
- Since:
- 1.10
-
ben
-
ber
- Since:
- 1.10
-
bho
- Since:
- 1.10
-
bih
-
bik
- Since:
- 1.10
-
bin
- Since:
- 1.10
-
bis
-
bla
- Since:
- 1.10
-
bnt
- Since:
- 1.10
-
bod
- See Also:
-
bos
-
bra
- Since:
- 1.10
-
bre
-
btk
- Since:
- 1.10
-
bua
- Since:
- 1.10
-
bug
- Since:
- 1.10
-
bul
-
bur
- See Also:
-
byn
- Since:
- 1.10
-
cad
- Since:
- 1.10
-
cai
- Since:
- 1.10
-
car
- Since:
- 1.10
-
cat
-
cau
- Since:
- 1.10
-
cba
- Since:
- 1.10
-
ccn
- Since:
- 1.10
-
ccs
- Since:
- 1.10
-
cdc
- Since:
- 1.10
-
cdd
- Since:
- 1.10
-
ceb
- Since:
- 1.10
-
cel
- Since:
- 1.10
-
ces
- See Also:
-
cha
-
chb
- Since:
- 1.10
-
che
-
chg
- Since:
- 1.10
-
chi
- See Also:
-
chk
- Since:
- 1.10
-
chm
- Since:
- 1.10
-
chn
- Since:
- 1.10
-
cho
- Since:
- 1.10
-
chp
- Since:
- 1.10
-
chr
- Since:
- 1.10
-
chu
-
chv
-
chy
- Since:
- 1.10
-
cmc
- Since:
- 1.10
-
cop
- Since:
- 1.1.0
-
cor
-
cos
-
cpe
- Since:
- 1.10
-
cpf
- Since:
- 1.10
-
cpp
- Since:
- 1.10
-
cre
-
crh
- Since:
- 1.10
-
crp
- Since:
- 1.10
-
csb
- Since:
- 1.10
-
csu
- Since:
- 1.10
-
cus
- Since:
- 1.10
-
cym
- See Also:
-
cze
- See Also:
-
dak
- Since:
- 1.10
-
dan
-
dar
- Since:
- 1.10
-
day
- Since:
- 1.10
-
del
- Since:
- 1.10
-
den
- Since:
- 1.10
-
deu
- See Also:
-
dgr
- Since:
- 1.10
-
din
- Since:
- 1.10
-
div
-
dmn
- Since:
- 1.10
-
doi
Dogri (macrolanguage)- Since:
- 1.10
-
dra
- Since:
- 1.10
-
dsb
- Since:
- 1.10
-
dua
- Since:
- 1.10
-
dum
Middle Dutch (ca. 1050-1350)- Since:
- 1.10
-
dut
- See Also:
-
dyu
- Since:
- 1.10
-
dzo
-
efi
- Since:
- 1.10
-
egx
- Since:
- 1.10
-
egy
- Since:
- 1.10
-
eka
- Since:
- 1.10
-
ell
Modern Greek (1453-) (el
) for terminology applications.- See Also:
-
elx
- Since:
- 1.10
-
eng
-
enm
Middle English (1100-1500) -
epo
-
est
-
esx
- Since:
- 1.10
-
euq
Basque (family)- Since:
- 1.10
-
eus
- See Also:
-
ewe
-
ewo
- Since:
- 1.10
-
fan
- Since:
- 1.10
-
fao
-
fas
- See Also:
-
fat
- Since:
- 1.10
-
fij
-
fil
- Since:
- 1.10
-
fin
-
fiu
- Since:
- 1.10
-
fon
- Since:
- 1.10
-
fox
- Since:
- 1.10
-
fra
- See Also:
-
fre
- See Also:
-
frm
Middle French (ca. 1400-1600)- Since:
- 1.10
-
fro
Old French (842-ca. 1400)- Since:
- 1.10
-
frr
- Since:
- 1.10
-
frs
- Since:
- 1.10
-
fry
West Frisian (fy
). -
ful
-
fur
- Since:
- 1.10
-
gaa
- Since:
- 1.10
-
gay
- Since:
- 1.10
-
gba
- Since:
- 1.10
-
gem
- Since:
- 1.10
-
geo
- See Also:
-
ger
- See Also:
-
gez
- Since:
- 1.10
-
gil
- Since:
- 1.10
-
gla
-
gle
-
glg
-
glv
-
gme
- Since:
- 1.10
-
gmh
Middle High German (ca. 1050-1500)- Since:
- 1.10
-
gmq
- Since:
- 1.10
-
gmw
- Since:
- 1.10
-
goh
Old High German (ca. 750-1050)- Since:
- 1.10
-
gon
- Since:
- 1.10
-
gor
- Since:
- 1.10
-
got
- Since:
- 1.10
-
grb
- Since:
- 1.10
-
grc
Ancient Greek (to 1453)- Since:
- 1.10
- See Also:
-
gre
Modern Greek (1453-) (el
) for bibliographic applications.- See Also:
-
grk
- Since:
- 1.10
-
grn
-
gsw
- Since:
- 1.10
-
guj
-
gwi
- Since:
- 1.10
-
hai
- Since:
- 1.10
-
hat
-
hau
-
haw
- Since:
- 1.10
-
heb
-
her
-
hil
- Since:
- 1.10
-
him
- Since:
- 1.10
-
hin
-
hit
- Since:
- 1.10
-
hmn
- Since:
- 1.10
-
hmo
-
hmx
- Since:
- 1.10
-
hok
- Since:
- 1.10
-
hrv
-
hsb
- Since:
- 1.10
-
hun
-
hup
- Since:
- 1.10
-
hye
- See Also:
-
hyx
Armenian (family)- Since:
- 1.10
-
iba
- Since:
- 1.10
-
ibo
-
ice
- See Also:
-
ido
-
iii
-
iir
- Since:
- 1.10
-
ijo
- Since:
- 1.10
-
iku
-
ile
Interlingue (ie
). -
ilo
- Since:
- 1.10
-
ina
-
inc
- Since:
- 1.10
-
ind
Indonesian (id
). -
ine
- Since:
- 1.10
-
inh
- Since:
- 1.10
-
ipk
-
ira
- Since:
- 1.10
-
iro
- Since:
- 1.10
-
isl
- See Also:
-
ita
-
itc
- Since:
- 1.10
-
jav
-
jbo
- Since:
- 1.10
-
jpn
-
jpr
- Since:
- 1.10
-
jpx
Japanese (family)- Since:
- 1.10
-
jrb
- Since:
- 1.10
-
kaa
- Since:
- 1.10
-
kab
- Since:
- 1.10
-
kac
- Since:
- 1.10
-
kal
Kalaallisut (kl
). -
kam
- Since:
- 1.10
-
kan
-
kar
- Since:
- 1.10
-
kas
-
kat
- See Also:
-
kau
-
kaw
- Since:
- 1.10
-
kaz
-
kbd
- Since:
- 1.10
-
kdo
- Since:
- 1.10
-
kha
- Since:
- 1.10
-
khi
- Since:
- 1.10
-
khm
-
kho
- Since:
- 1.10
-
kik
-
kin
Kinyarwanda (rw
). -
kir
-
kmb
- Since:
- 1.10
-
kok
Konkani (macrolanguage)- Since:
- 1.10
-
kom
-
kon
-
kor
-
kos
- Since:
- 1.10
-
kpe
- Since:
- 1.10
-
krc
- Since:
- 1.10
-
krl
- Since:
- 1.10
-
kro
- Since:
- 1.10
-
kru
- Since:
- 1.10
-
kua
-
kum
- Since:
- 1.10
-
kur
-
kut
- Since:
- 1.10
-
lad
- Since:
- 1.10
-
lah
- Since:
- 1.10
-
lam
- Since:
- 1.10
-
lao
-
lat
-
lav
-
lez
- Since:
- 1.10
-
lim
Limburgish (li
). -
lin
-
lit
Lithuanian (lt
). -
lol
- Since:
- 1.10
-
loz
- Since:
- 1.10
-
ltz
Luxembourgish (lb
). -
lua
- Since:
- 1.10
-
lub
Luba-Katanga (lu
). -
lug
-
lui
- Since:
- 1.10
-
lun
- Since:
- 1.10
-
luo
- Since:
- 1.10
-
lus
- Since:
- 1.10
-
mac
Macedonian (mk
) for bibliographic applications.- See Also:
-
mad
- Since:
- 1.10
-
mag
- Since:
- 1.10
-
mah
Marshallese (mh
). -
mai
- Since:
- 1.10
-
mak
- Since:
- 1.10
-
mal
-
man
- Since:
- 1.10
-
mao
- See Also:
-
map
- Since:
- 1.10
-
mar
-
mas
- Since:
- 1.10
-
may
- See Also:
-
mdf
- Since:
- 1.10
-
mdr
- Since:
- 1.10
-
men
- Since:
- 1.10
-
mga
Middle Irish (900-1200)- Since:
- 1.10
-
mic
- Since:
- 1.10
-
min
- Since:
- 1.10
-
mis
Uncoded languages.- Since:
- 1.10
-
mkd
Macedonian (mk
) for terminology applications.- See Also:
-
mkh
- Since:
- 1.10
-
mlg
-
mlt
-
mnc
- Since:
- 1.10
-
mni
- Since:
- 1.10
-
mno
- Since:
- 1.10
-
moh
- Since:
- 1.10
-
mon
-
mos
- Since:
- 1.10
-
mri
- See Also:
-
msa
- See Also:
-
mul
Multiple languages.- Since:
- 1.10
-
mun
- Since:
- 1.10
-
mus
- Since:
- 1.10
-
mwl
- Since:
- 1.10
-
mwr
- Since:
- 1.10
-
mya
- See Also:
-
myn
- Since:
- 1.10
-
myv
- Since:
- 1.10
-
nah
- Since:
- 1.10
-
nai
- Since:
- 1.10
-
nap
- Since:
- 1.10
-
nau
-
nbl
-
nde
-
ndo
-
nds
- Since:
- 1.10
-
nep
-
New
NewariBecause
new
is a special word for Java programming language,new
cannot 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
- Since:
- 1.10
-
nia
- Since:
- 1.10
-
nic
- Since:
- 1.10
-
niu
- Since:
- 1.10
-
nld
- See Also:
-
nno
-
nob
-
nog
- Since:
- 1.10
-
non
- Since:
- 1.10
-
nor
-
nqo
- Since:
- 1.10
-
nso
- Since:
- 1.10
-
nub
- Since:
- 1.10
-
nwc
- Since:
- 1.10
-
nya
-
nym
- Since:
- 1.10
-
nyn
- Since:
- 1.10
-
nyo
- Since:
- 1.10
-
nzi
- Since:
- 1.10
-
oci
-
oji
-
omq
- Since:
- 1.10
-
omv
- Since:
- 1.10
-
ori
-
orm
-
osa
- Since:
- 1.10
-
oss
-
ota
Ottoman Turkish (1500-1928)- Since:
- 1.10
-
oto
- Since:
- 1.10
-
paa
- Since:
- 1.10
-
pag
- Since:
- 1.10
-
pal
- Since:
- 1.10
-
pam
- Since:
- 1.10
-
pan
-
pap
- Since:
- 1.10
-
pau
- Since:
- 1.10
-
peo
Old Persian (ca. 600-400 B.C.) -
per
- See Also:
-
phi
- Since:
- 1.10
-
phn
- Since:
- 1.10
-
plf
- Since:
- 1.10
-
pli
-
pol
-
pon
- Since:
- 1.10
-
por
Portuguese (pt
). -
poz
- Since:
- 1.10
-
pqe
- Since:
- 1.10
-
pqw
- Since:
- 1.10
-
pra
- Since:
- 1.10
-
pro
Old Provençal (to 1500)- Since:
- 1.10
-
pus
-
que
-
qwe
Quechuan (family)- Since:
- 1.10
-
raj
- Since:
- 1.10
-
rap
- Since:
- 1.10
-
rar
- Since:
- 1.10
-
roa
- Since:
- 1.10
-
roh
-
rom
- Since:
- 1.10
-
ron
- See Also:
-
rum
- See Also:
-
run
-
rup
- Since:
- 1.10
-
rus
-
sad
- Since:
- 1.10
-
sag
-
sah
- Since:
- 1.10
-
sai
- Since:
- 1.10
-
sal
- Since:
- 1.10
-
sam
- Since:
- 1.10
-
san
-
sas
- Since:
- 1.10
-
sat
- Since:
- 1.10
-
scn
- Since:
- 1.10
-
sco
- Since:
- 1.10
-
sdv
- Since:
- 1.10
-
sel
- Since:
- 1.10
-
sem
- Since:
- 1.10
-
sga
Old Irish (to 900)- Since:
- 1.10
-
sgn
- Since:
- 1.10
-
shn
- Since:
- 1.10
-
sid
- Since:
- 1.10
-
sin
-
sio
- Since:
- 1.10
-
sit
- Since:
- 1.10
-
sla
- Since:
- 1.10
-
slk
- See Also:
-
slo
- See Also:
-
slv
-
sma
- Since:
- 1.10
-
sme
Northern Sami (se
). -
smi
- Since:
- 1.10
-
smj
- Since:
- 1.10
-
smn
- Since:
- 1.10
-
smo
-
sms
- Since:
- 1.10
-
sna
-
snd
-
snk
- Since:
- 1.10
-
sog
- Since:
- 1.10
-
som
-
son
- Since:
- 1.10
-
sot
Southern Sotho (st
). -
spa
-
sqi
- See Also:
-
sqj
- Since:
- 1.10
-
srd
-
srn
- Since:
- 1.10
-
srp
-
srr
- Since:
- 1.10
-
ssa
- Since:
- 1.10
-
ssw
-
suk
- Since:
- 1.10
-
sun
-
sus
- Since:
- 1.10
-
sux
- Since:
- 1.10
-
swa
-
swe
-
syc
- Since:
- 1.10
-
syd
- Since:
- 1.10
-
syr
- Since:
- 1.10
-
tah
-
tai
- Since:
- 1.10
-
tam
-
tat
-
tbq
- Since:
- 1.10
-
tel
-
tem
- Since:
- 1.10
-
ter
- Since:
- 1.10
-
tet
- Since:
- 1.10
-
tgk
-
tgl
-
tha
-
tib
- See Also:
-
tig
- Since:
- 1.10
-
tir
-
tiv
- Since:
- 1.10
-
tkl
- Since:
- 1.10
-
tlh
- Since:
- 1.10
-
tli
- Since:
- 1.10
-
tmh
- Since:
- 1.10
-
tog
- Since:
- 1.10
-
ton
-
tpi
- Since:
- 1.10
-
trk
- Since:
- 1.10
-
tsi
- Since:
- 1.10
-
tsn
-
tso
-
tuk
-
tum
- Since:
- 1.10
-
tup
- Since:
- 1.10
-
tur
-
tut
- Since:
- 1.10
-
tuw
- Since:
- 1.10
-
tvl
- Since:
- 1.10
-
twi
-
tyv
- Since:
- 1.10
-
udm
- Since:
- 1.10
-
uga
- Since:
- 1.10
-
uig
-
ukr
-
umb
- Since:
- 1.10
-
und
Undetermined.- Since:
- 1.10
-
urd
-
urj
- Since:
- 1.10
-
uzb
-
vai
- Since:
- 1.10
-
ven
-
vie
Vietnamese (vi
). -
vol
-
vot
- Since:
- 1.10
-
wak
- Since:
- 1.10
-
wal
- Since:
- 1.10
-
war
- Since:
- 1.10
-
was
- Since:
- 1.10
-
wel
- See Also:
-
wen
- Since:
- 1.10
-
wln
-
wol
-
xal
- Since:
- 1.10
-
xgn
- Since:
- 1.10
-
xho
-
xnd
- Since:
- 1.10
-
yao
- Since:
- 1.10
-
yap
- Since:
- 1.10
-
yid
-
yor
-
ypk
- Since:
- 1.10
-
zap
- Since:
- 1.10
-
zbl
- Since:
- 1.10
-
zen
- Since:
- 1.10
-
zha
-
zho
- See Also:
-
zhx
Chinese (family)- Since:
- 1.10
-
zle
- Since:
- 1.10
-
zls
- Since:
- 1.10
-
zlw
- Since:
- 1.10
-
znd
- Since:
- 1.10
-
zul
-
zun
- Since:
- 1.10
-
zxx
No linguistic content.- Since:
- 1.10
-
zza
- Since:
- 1.10
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getByCode
Get aLanguageAlpha3Code
that 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
LanguageAlpha3Code
instance, ornull
if 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 aLanguageAlpha3Code
that 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
LanguageAlpha3Code
instance, ornull
if 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 aLanguageAlpha3Code
that 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
LanguageAlpha3Code
instance, ornull
if 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.
-
findByName
Get a list ofLanguageAlpha3Code
by 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
-regex
isnull
.PatternSyntaxException
-regex
failed to be compiled.- Since:
- 1.11
-
findByName
Get a list ofLanguageAlpha3Code
by 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
LanguageAlpha3Code
s as listed below.- Parameters:
pattern
- Pattern to match names.- Returns:
- List of
LanguageAlpha3Code
. If nothing has matched, an empty list is returned. - Throws:
IllegalArgumentException
-pattern
isnull
.- Since:
- 1.11
-
getName
Get the language name.- Returns:
- The language name.
-
getAlpha2
Get ISO 639-1 language code.- Returns:
- ISO 639-1
language code. This method may return
null
.
-
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
this
object. 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
this
object. 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
this
object. 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.
-