116 lines
4.4 KiB
Java
116 lines
4.4 KiB
Java
package org.jmrtd.lds.icao;
|
|
|
|
import net.sf.scuba.data.Country;
|
|
|
|
/* loaded from: classes6.dex */
|
|
public class ICAOCountry extends Country {
|
|
public static final ICAOCountry DE;
|
|
public static final ICAOCountry GBD;
|
|
public static final ICAOCountry GBN;
|
|
public static final ICAOCountry GBO;
|
|
public static final ICAOCountry GBP;
|
|
public static final ICAOCountry GBS;
|
|
public static final ICAOCountry UNA;
|
|
public static final ICAOCountry UNK;
|
|
public static final ICAOCountry UNO;
|
|
private static ICAOCountry[] VALUES;
|
|
public static final ICAOCountry XCC;
|
|
public static final ICAOCountry XOM;
|
|
public static final ICAOCountry XPO;
|
|
public static final ICAOCountry XXA;
|
|
public static final ICAOCountry XXB;
|
|
public static final ICAOCountry XXC;
|
|
public static final ICAOCountry XXX;
|
|
private String alpha2Code;
|
|
private String alpha3Code;
|
|
private String name;
|
|
private String nationality;
|
|
|
|
@Override // net.sf.scuba.data.Country
|
|
public int valueOf() {
|
|
return -1;
|
|
}
|
|
|
|
static {
|
|
ICAOCountry iCAOCountry = new ICAOCountry("DE", "D<<", "Germany", "German");
|
|
DE = iCAOCountry;
|
|
ICAOCountry iCAOCountry2 = new ICAOCountry("GB", "GBD", "British Dependent territories citizen");
|
|
GBD = iCAOCountry2;
|
|
ICAOCountry iCAOCountry3 = new ICAOCountry("GB", "GBN", "British National (Overseas)");
|
|
GBN = iCAOCountry3;
|
|
ICAOCountry iCAOCountry4 = new ICAOCountry("GB", "GBO", "British Overseas citizen");
|
|
GBO = iCAOCountry4;
|
|
ICAOCountry iCAOCountry5 = new ICAOCountry("GB", "GBP", "British Protected person");
|
|
GBP = iCAOCountry5;
|
|
ICAOCountry iCAOCountry6 = new ICAOCountry("GB", "GBS", "British Subject");
|
|
GBS = iCAOCountry6;
|
|
ICAOCountry iCAOCountry7 = new ICAOCountry("UN", "UNO", "United Nations Organization");
|
|
UNO = iCAOCountry7;
|
|
ICAOCountry iCAOCountry8 = new ICAOCountry("UN", "UNA", "United Nations Agency");
|
|
UNA = iCAOCountry8;
|
|
ICAOCountry iCAOCountry9 = new ICAOCountry("UN", "UNK", "United Nations Interim Administration Mission in Kosovo");
|
|
UNK = iCAOCountry9;
|
|
ICAOCountry iCAOCountry10 = new ICAOCountry("XO", "XOM", "Sovereign Military Order of Malta");
|
|
XOM = iCAOCountry10;
|
|
ICAOCountry iCAOCountry11 = new ICAOCountry("XC", "XCC", "Carribean Community");
|
|
XCC = iCAOCountry11;
|
|
XPO = new ICAOCountry("XP", "XPO", "Interpol");
|
|
ICAOCountry iCAOCountry12 = new ICAOCountry("XX", "XXA", "Stateless person", "Stateless");
|
|
XXA = iCAOCountry12;
|
|
ICAOCountry iCAOCountry13 = new ICAOCountry("XX", "XXB", "Refugee", "Refugee");
|
|
XXB = iCAOCountry13;
|
|
ICAOCountry iCAOCountry14 = new ICAOCountry("XX", "XXC", "Refugee (other)", "Refugee (other)");
|
|
XXC = iCAOCountry14;
|
|
ICAOCountry iCAOCountry15 = new ICAOCountry("XX", "XXX", "Unspecified", "Unspecified");
|
|
XXX = iCAOCountry15;
|
|
VALUES = new ICAOCountry[]{iCAOCountry, iCAOCountry2, iCAOCountry3, iCAOCountry4, iCAOCountry5, iCAOCountry6, iCAOCountry7, iCAOCountry8, iCAOCountry9, iCAOCountry10, iCAOCountry11, iCAOCountry12, iCAOCountry13, iCAOCountry14, iCAOCountry15};
|
|
}
|
|
|
|
public static Country getInstance(String str) {
|
|
for (ICAOCountry iCAOCountry : VALUES) {
|
|
if (iCAOCountry.alpha3Code.equals(str)) {
|
|
return iCAOCountry;
|
|
}
|
|
}
|
|
try {
|
|
return Country.getInstance(str);
|
|
} catch (Exception unused) {
|
|
throw new IllegalArgumentException("Illegal ICAO country alpha 3 code ".concat(String.valueOf(str)));
|
|
}
|
|
}
|
|
|
|
private ICAOCountry() {
|
|
}
|
|
|
|
private ICAOCountry(String str, String str2, String str3) {
|
|
this(str, str2, str3, str3);
|
|
}
|
|
|
|
private ICAOCountry(String str, String str2, String str3, String str4) {
|
|
this.alpha2Code = str;
|
|
this.alpha3Code = str2;
|
|
this.name = str3;
|
|
this.nationality = str4;
|
|
}
|
|
|
|
@Override // net.sf.scuba.data.Country
|
|
public String toAlpha3Code() {
|
|
return this.alpha3Code;
|
|
}
|
|
|
|
@Override // net.sf.scuba.data.Country
|
|
public String toAlpha2Code() {
|
|
return this.alpha2Code;
|
|
}
|
|
|
|
@Override // net.sf.scuba.data.Country
|
|
public String getNationality() {
|
|
return this.nationality;
|
|
}
|
|
|
|
@Override // net.sf.scuba.data.Country
|
|
public String getName() {
|
|
return this.name;
|
|
}
|
|
}
|