
com.kaltura.client.enums.LanguageCode Maven / Gradle / Ivy
// ===================================================================================================
// _ __ _ _
// | |/ /__ _| | |_ _ _ _ _ __ _
// | ' _` | | _| || | '_/ _` |
// |_|\_\__,_|_|\__|\_,_|_| \__,_|
//
// This file is part of the Kaltura Collaborative Media Suite which allows users
// to do with audio, video, and animation what Wiki platforms allow them to do with
// text.
//
// Copyright (C) 2006-2023 Kaltura Inc.
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Affero General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Affero General Public License for more details.
//
// You should have received a copy of the GNU Affero General Public License
// along with this program. If not, see .
//
// @ignore
// ===================================================================================================
package com.kaltura.client.enums;
/**
* This class was generated using exec.php
* against an XML schema provided by Kaltura.
*
* MANUAL CHANGES TO THIS CLASS WILL BE OVERWRITTEN.
*/
public enum LanguageCode implements EnumAsString {
AA("aa"),
AB("ab"),
AF("af"),
ALG("alg"),
AM("am"),
AR("ar"),
AS_("as"),
ATH("ath"),
AY("ay"),
AZ("az"),
BA("ba"),
BE("be"),
BG("bg"),
BH("bh"),
BI("bi"),
BLA("bla"),
BN("bn"),
BO("bo"),
BR("br"),
CA("ca"),
CO("co"),
CR("cr"),
CRG("crg"),
CS("cs"),
CY("cy"),
DA("da"),
DE("de"),
DZ("dz"),
EL("el"),
EN("en"),
EN_GB("en_gb"),
EN_US("en_us"),
EO("eo"),
ES("es"),
ES_XL("es_xl"),
ET("et"),
EU("eu"),
FA("fa"),
FI("fi"),
FJ("fj"),
FO("fo"),
FR("fr"),
FR_CA("fr_ca"),
FY("fy"),
GA("ga"),
GD("gd"),
GL("gl"),
GN("gn"),
GU("gu"),
GV("gv"),
HA("ha"),
HE("he"),
HI("hi"),
HR("hr"),
HU("hu"),
HY("hy"),
IA("ia"),
ID("id"),
IE("ie"),
IK("ik"),
IKT("ikt"),
IN("in"),
IRO("iro"),
IS("is"),
IT("it"),
IU("iu"),
IW("iw"),
JA("ja"),
JI("ji"),
JV("jv"),
KA("ka"),
KK("kk"),
KL("kl"),
KM("km"),
KN("kn"),
KO("ko"),
KS("ks"),
KU("ku"),
KY("ky"),
LA("la"),
LB("lb"),
LI("li"),
LN("ln"),
LO("lo"),
LT("lt"),
LV("lv"),
MG("mg"),
MI("mi"),
MIC("mic"),
MK("mk"),
ML("ml"),
MN("mn"),
MO("mo"),
MOE("moe"),
MR("mr"),
MS("ms"),
MT("mt"),
MU("mu"),
MY("my"),
NA("na"),
NE("ne"),
NL("nl"),
NO("no"),
OC("oc"),
OJ("oj"),
OJS("ojs"),
OJW("ojw"),
OKA("oka"),
OM("om"),
OR_("or"),
PA("pa"),
PL("pl"),
PS("ps"),
PT("pt"),
PT_BR("pt_br"),
QU("qu"),
RM("rm"),
RN("rn"),
RO("ro"),
RU("ru"),
RW("rw"),
SA("sa"),
SAL("sal"),
SD("sd"),
SG("sg"),
SH("sh"),
SI("si"),
SK("sk"),
SL("sl"),
SM("sm"),
SMI("smi"),
SN("sn"),
SO("so"),
SQ("sq"),
SR("sr"),
SS("ss"),
ST("st"),
SU("su"),
SV("sv"),
SW("sw"),
TA("ta"),
TCE("tce"),
TE("te"),
TG("tg"),
TH("th"),
TI("ti"),
TK("tk"),
TL("tl"),
TN("tn"),
TO("to"),
TR("tr"),
TS("ts"),
TT("tt"),
TW("tw"),
UG("ug"),
UK("uk"),
UN("un"),
UR("ur"),
UZ("uz"),
VI("vi"),
VO("vo"),
WO("wo"),
XH("xh"),
YI("yi"),
YO("yo"),
ZH("zh"),
ZH_TW("zh_tw"),
ZU("zu"),
ZXX("zxx");
private String value;
LanguageCode(String value) {
this.value = value;
}
@Override
public String getValue() {
return this.value;
}
public void setValue(String value) {
this.value = value;
}
public static LanguageCode get(String value) {
if(value == null)
{
return null;
}
// goes over LanguageCode defined values and compare the inner value with the given one:
for(LanguageCode item: values()) {
if(item.getValue().equals(value)) {
return item;
}
}
// in case the requested value was not found in the enum values, we return the first item as default.
return LanguageCode.values().length > 0 ? LanguageCode.values()[0]: null;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy