1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.cdm.model.location;
|
11
|
|
12
|
import java.net.URI;
|
13
|
import java.util.HashMap;
|
14
|
import java.util.HashSet;
|
15
|
import java.util.List;
|
16
|
import java.util.Map;
|
17
|
import java.util.Set;
|
18
|
import java.util.UUID;
|
19
|
|
20
|
import javax.persistence.Column;
|
21
|
import javax.persistence.Entity;
|
22
|
import javax.persistence.FetchType;
|
23
|
import javax.persistence.JoinTable;
|
24
|
import javax.persistence.ManyToMany;
|
25
|
import javax.xml.bind.annotation.XmlAccessType;
|
26
|
import javax.xml.bind.annotation.XmlAccessorType;
|
27
|
import javax.xml.bind.annotation.XmlAttribute;
|
28
|
import javax.xml.bind.annotation.XmlElement;
|
29
|
import javax.xml.bind.annotation.XmlElementWrapper;
|
30
|
import javax.xml.bind.annotation.XmlIDREF;
|
31
|
import javax.xml.bind.annotation.XmlRootElement;
|
32
|
import javax.xml.bind.annotation.XmlSchemaType;
|
33
|
import javax.xml.bind.annotation.XmlType;
|
34
|
|
35
|
import org.apache.log4j.Logger;
|
36
|
import org.hibernate.envers.Audited;
|
37
|
|
38
|
import au.com.bytecode.opencsv.CSVWriter;
|
39
|
import eu.etaxonomy.cdm.common.CdmUtils;
|
40
|
import eu.etaxonomy.cdm.model.common.CdmBase;
|
41
|
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
|
42
|
import eu.etaxonomy.cdm.model.common.Language;
|
43
|
import eu.etaxonomy.cdm.model.common.Representation;
|
44
|
import eu.etaxonomy.cdm.model.common.TermVocabulary;
|
45
|
|
46
|
/**
|
47
|
* +/- current ISO codes. year given with each entry
|
48
|
* http://userpage.chemie.fu-berlin.de/diverse/doc/ISO_3166.html
|
49
|
* http://www.davros.org/misc/iso3166.txt
|
50
|
* @author m.doering
|
51
|
* @since 08-Nov-2007 13:07:02
|
52
|
*/
|
53
|
@XmlAccessorType(XmlAccessType.FIELD)
|
54
|
@XmlType(name = "Country", propOrder = {
|
55
|
// "validPeriod",
|
56
|
"continents"
|
57
|
})
|
58
|
@XmlRootElement(name = "Country")
|
59
|
@Entity
|
60
|
//@Indexed disabled to reduce clutter in indexes, since this type is not used by any search
|
61
|
//@Indexed(index = "eu.etaxonomy.cdm.model.common.DefinedTermBase")
|
62
|
@Audited
|
63
|
public class Country extends NamedArea {
|
64
|
private static final long serialVersionUID = -6791671976199722843L;
|
65
|
private static final Logger logger = Logger.getLogger(Country.class);
|
66
|
|
67
|
/**
|
68
|
* 2 character ISO 3166 Country codes
|
69
|
*/
|
70
|
@XmlAttribute(name = "iso3166_A2")
|
71
|
@Column(length=2)
|
72
|
private String iso3166_A2;
|
73
|
|
74
|
@XmlElementWrapper(name = "Continents")
|
75
|
@XmlElement(name = "Continent")
|
76
|
@XmlIDREF
|
77
|
@XmlSchemaType(name = "IDREF")
|
78
|
@ManyToMany(fetch = FetchType.LAZY)
|
79
|
@JoinTable(name="DefinedTermBase_Continent")
|
80
|
private final Set<NamedArea> continents = new HashSet<>();
|
81
|
|
82
|
protected static Map<UUID, NamedArea> termMap = null;
|
83
|
protected static Map<String, UUID> labelMap = null;
|
84
|
protected static Map<String, UUID> isoA2Map = null;
|
85
|
|
86
|
public static final UUID uuidCountryVocabulary = UUID.fromString("006b1870-7347-4624-990f-e5ed78484a1a");
|
87
|
|
88
|
private static final UUID uuidAfghanistan = UUID.fromString("974ce01a-5bce-4be8-b728-a46869354960");
|
89
|
private static final UUID uuidAlbaniaPeoplesSocialistRepublicof = UUID.fromString("238a6a93-8857-4fd6-af9e-6437c90817ac");
|
90
|
private static final UUID uuidAlgeriaPeoplesDemocraticRepublicof = UUID.fromString("a14b38ac-e963-4c1a-85c2-de1f17f8c72a");
|
91
|
private static final UUID uuidAmericanSamoa = UUID.fromString("4a071803-88aa-4367-9707-bb1f24ad4386");
|
92
|
private static final UUID uuidAndorraPrincipalityof = UUID.fromString("7efd738f-33a1-4969-9d49-552571ffe935");
|
93
|
private static final UUID uuidAngolaRepublicof = UUID.fromString("c48ca5e4-154a-46d6-af29-f722486bedba");
|
94
|
private static final UUID uuidAnguilla = UUID.fromString("4a3b7f0d-0ff5-4691-a232-a2dc43ad4c56");
|
95
|
private static final UUID uuidAntarcticaSouthOf60 = UUID.fromString("36aea55c-5d4c-4015-bb70-f15d9280c805");
|
96
|
private static final UUID uuidAntiguaandBarbuda = UUID.fromString("fe425b94-f0e2-4e20-9e08-f28d53016347");
|
97
|
private static final UUID uuidArgentinaArgentineRepublic = UUID.fromString("ee0a4820-914d-424c-8133-57efb3028741");
|
98
|
private static final UUID uuidArmenia = UUID.fromString("7c685229-ce21-4dfd-a2c7-0932003f14ef");
|
99
|
private static final UUID uuidAruba = UUID.fromString("f5a9fc99-52d5-4a54-9859-edede22cb39d");
|
100
|
private static final UUID uuidAustraliaCommonwealthof = UUID.fromString("c22658e2-b1a9-4f4c-9ccd-affe0255efc8");
|
101
|
private static final UUID uuidAustriaRepublicof = UUID.fromString("dfeb9102-7101-41cb-9449-bf5eae83cb5b");
|
102
|
private static final UUID uuidAzerbaijanRepublicof = UUID.fromString("5189a180-f4ef-4a8a-9e90-36977c351960");
|
103
|
private static final UUID uuidBahamasCommonwealthofthe = UUID.fromString("8b6851bf-b82e-4114-a99f-9b40ce0f3b2c");
|
104
|
private static final UUID uuidBahrainKingdomof = UUID.fromString("7f7e8c06-a804-4efa-b02f-7679f929a760");
|
105
|
private static final UUID uuidBangladeshPeoplesRepublicof = UUID.fromString("89752d76-d03a-46e1-9763-cc089f8a8e53");
|
106
|
private static final UUID uuidBarbados = UUID.fromString("c870ad88-4393-4e76-a37d-39656c5d7ff2");
|
107
|
private static final UUID uuidBelarus = UUID.fromString("66872923-5ae7-48be-b669-d9a2b7e4663c");
|
108
|
private static final UUID uuidBelgiumKingdomof = UUID.fromString("fa27fe27-4966-4381-a341-3535f2b4309e");
|
109
|
private static final UUID uuidBelize = UUID.fromString("6c3eeed7-00eb-4aa3-8e3c-2d8bc25f3338");
|
110
|
private static final UUID uuidBeninPeoplesRepublicof = UUID.fromString("e6875306-892c-43d0-9aaa-9ac26e5d6551");
|
111
|
private static final UUID uuidBermuda = UUID.fromString("88f4017e-27dc-4828-a2d7-0cf0637f1a7b");
|
112
|
private static final UUID uuidBhutanKingdomof = UUID.fromString("35d9b61f-15d6-453d-8b01-8c786da241b3");
|
113
|
private static final UUID uuidBoliviaRepublicof = UUID.fromString("8a18a774-0072-4678-8746-43de9ee066c4");
|
114
|
private static final UUID uuidBosniaandHerzegovina = UUID.fromString("368be113-c0f2-444c-939c-65b544d19702");
|
115
|
private static final UUID uuidBotswanaRepublicof = UUID.fromString("e00464af-d38e-4cd5-b5fe-50b27eace4ee");
|
116
|
private static final UUID uuidBouvetIsland = UUID.fromString("65fa17a7-efa7-4be5-9d51-8b261c5217b7");
|
117
|
private static final UUID uuidBrazilFederativeRepublicof = UUID.fromString("dccbe7f8-d5e3-48e5-bcbb-96886eb7108a");
|
118
|
private static final UUID uuidBritishIndianOceanTerritory = UUID.fromString("996f912c-971f-40cb-88a4-1575226415b9");
|
119
|
private static final UUID uuidBritishVirginIslands = UUID.fromString("5b71a5a2-0551-4563-b0aa-8aa259b90979");
|
120
|
private static final UUID uuidBruneiDarussalam = UUID.fromString("7e6247b5-4145-454b-ad51-b60809a8a939");
|
121
|
private static final UUID uuidBulgariaPeoplesRepublicof = UUID.fromString("51ddedf0-4646-46ba-9840-ab5513eec455");
|
122
|
private static final UUID uuidBurkinaFaso = UUID.fromString("c4b22384-e26f-4a44-b641-64208f72ea25");
|
123
|
private static final UUID uuidBurundiRepublicof = UUID.fromString("0d584b61-15b9-41fa-8cec-242f1f094417");
|
124
|
private static final UUID uuidCambodiaKingdomof = UUID.fromString("485a4988-a3dd-43b8-9c18-e0351618056a");
|
125
|
private static final UUID uuidCameroonUnitedRepublicof = UUID.fromString("30ba95a0-a951-46a0-aa67-e539475d4386");
|
126
|
private static final UUID uuidCanada = UUID.fromString("5dc3dc6f-3816-44b3-b661-a4cf1528bae7");
|
127
|
private static final UUID uuidCapeVerdeRepublicof = UUID.fromString("083ff0fc-9eea-4f1b-80c0-f203bd2890b8");
|
128
|
private static final UUID uuidCaymanIslands = UUID.fromString("23264b59-fcc9-47a0-9f69-30a98757c121");
|
129
|
private static final UUID uuidCentralAfricanRepublic = UUID.fromString("40d7ffa6-11cc-417c-adf7-f4acc03cca20");
|
130
|
private static final UUID uuidChadRepublicof = UUID.fromString("d1ea5922-6bd2-4c63-b49a-259207c584a4");
|
131
|
private static final UUID uuidChileRepublicof = UUID.fromString("9c41644f-4946-4586-b2a4-c8ec33dbe68b");
|
132
|
private static final UUID uuidChinaPeoplesRepublicof = UUID.fromString("e0ed33bb-4afe-4994-81f3-b5f91655ff62");
|
133
|
private static final UUID uuidChristmasIsland = UUID.fromString("e785a72e-2b51-42b9-bea0-888924906b3e");
|
134
|
private static final UUID uuidCocosIslands = UUID.fromString("0994e57b-a0fa-4597-9098-8815235e9053");
|
135
|
private static final UUID uuidColombiaRepublicof = UUID.fromString("cd334393-328c-4fb7-9600-bdca44c224d6");
|
136
|
private static final UUID uuidComorosUnionofthe = UUID.fromString("3b52601e-e85f-415c-bc36-acc45717107f");
|
137
|
private static final UUID uuidCongoDemocraticRepublicof = UUID.fromString("5a70a5b8-7264-48f1-b552-6fde52ae43f7");
|
138
|
private static final UUID uuidCongoPeoplesRepublicof = UUID.fromString("5c0a6d1d-f5c1-4c92-b3cd-9a1c0cd0d9dc");
|
139
|
private static final UUID uuidCookIslands = UUID.fromString("72f5df8d-ff1c-44af-9444-e368d770f36f");
|
140
|
private static final UUID uuidCostaRicaRepublicof = UUID.fromString("aca508c7-2d49-4760-83cb-93b6ccce6751");
|
141
|
private static final UUID uuidCoteDIvoireIvoryCoastRepublicofthe = UUID.fromString("5a6673d7-1580-4470-974c-b36c4584247f");
|
142
|
private static final UUID uuidCubaRepublicof = UUID.fromString("229f0575-9035-4738-8741-f131cad59107");
|
143
|
private static final UUID uuidCyprusRepublicof = UUID.fromString("4b13d6b8-7eca-4d42-8172-f2018051ca19");
|
144
|
private static final UUID uuidCzechRepublic = UUID.fromString("56ee8c08-506d-4c27-9c31-db5344356ea3");
|
145
|
private static final UUID uuidDenmarkKingdomof = UUID.fromString("dbf70b64-a47e-4339-ae07-828f9ff2b7d8");
|
146
|
private static final UUID uuidDjiboutiRepublicof = UUID.fromString("8c80ca2b-e6e6-46bc-9f35-978a1a078a55");
|
147
|
private static final UUID uuidDominicaCommonwealthof = UUID.fromString("c8ef3805-69dd-4e84-ab69-c813252910dd");
|
148
|
private static final UUID uuidDominicanRepublic = UUID.fromString("1c2084e4-38cc-41d1-9d33-0360fed7c55d");
|
149
|
private static final UUID uuidEcuadorRepublicof = UUID.fromString("e396160a-3554-4da8-ad40-cd7137c021d7");
|
150
|
private static final UUID uuidEgyptArabRepublicof = UUID.fromString("3c4a2a5a-d3d7-4c82-a28f-2feaa7050c04");
|
151
|
private static final UUID uuidElSalvadorRepublicof = UUID.fromString("2706e84c-a57d-40ab-aee4-dce25fe89211");
|
152
|
private static final UUID uuidEquatorialGuineaRepublicof = UUID.fromString("7d0cee2b-086a-465e-afc3-0216bff7fd19");
|
153
|
private static final UUID uuidEritrea = UUID.fromString("8394a73d-a0c6-481c-8e86-e05705891fac");
|
154
|
private static final UUID uuidEstonia = UUID.fromString("b442614f-5bfa-4583-b87b-7c7c856015f1");
|
155
|
private static final UUID uuidEthiopia = UUID.fromString("8866fa09-8ee2-4957-ad86-4e622085ef40");
|
156
|
private static final UUID uuidFaeroeIslands = UUID.fromString("0b2933ea-cee6-4611-b52b-09d6fcdbcf9d");
|
157
|
private static final UUID uuidFalklandIslands = UUID.fromString("8c667c52-70b6-447a-b4f2-dfa2d759d5f6");
|
158
|
private static final UUID uuidFijiRepublicoftheFijiIslands = UUID.fromString("8a83a1e5-b648-4cea-86cd-7affaea817a7");
|
159
|
private static final UUID uuidFinlandRepublicof = UUID.fromString("47bbb4b3-6f18-46f9-9eb6-6ec92c41fe84");
|
160
|
private static final UUID uuidFranceFrenchRepublic = UUID.fromString("4c49d9d3-6bc3-481a-93c6-c8156cba25fe");
|
161
|
private static final UUID uuidFrenchGuiana = UUID.fromString("38ba5ec2-913b-4894-a5bf-d55f3bd9d7a0");
|
162
|
private static final UUID uuidFrenchPolynesia = UUID.fromString("7dadc5d4-d4e8-4ad6-bfa4-e8498a706778");
|
163
|
private static final UUID uuidFrenchSouthernTerritories = UUID.fromString("590663d7-1b7e-4088-9407-2a589eb73fd4");
|
164
|
private static final UUID uuidGabonGaboneseRepublic = UUID.fromString("d285a9f8-4349-4428-a848-c9aa45c4c8ab");
|
165
|
private static final UUID uuidGambiaRepublicofthe = UUID.fromString("3dcc7fea-7785-4254-9947-f724e27a76fc");
|
166
|
private static final UUID uuidGeorgia = UUID.fromString("af3f8bd9-1f5e-42cf-a0cc-f9199ab1bb89");
|
167
|
private static final UUID uuidGermany = UUID.fromString("cbe7ce69-2952-4309-85dd-0d7d4a4830a1");
|
168
|
private static final UUID uuidGhanaRepublicof = UUID.fromString("d4cf6c57-98ee-43b8-8d92-b510371dd151");
|
169
|
private static final UUID uuidGibraltar = UUID.fromString("46764ae0-2d8d-461e-89d0-a1953edef02f");
|
170
|
private static final UUID uuidGreeceHellenicRepublic = UUID.fromString("5b7c78d1-f068-4c4d-b2c9-9ac075b7169a");
|
171
|
private static final UUID uuidGreenland = UUID.fromString("34bbe398-e0da-40bd-b16b-34a2e9fd3cc2");
|
172
|
private static final UUID uuidGrenada = UUID.fromString("dda637e3-7742-4faf-bc05-e5d2c2d86a52");
|
173
|
private static final UUID uuidGuadaloupe = UUID.fromString("2559330d-f79b-4273-b6db-e47abce1de6c");
|
174
|
private static final UUID uuidGuam = UUID.fromString("264c71d7-91ef-4a5e-9ae6-49aac2a6ba3a");
|
175
|
private static final UUID uuidGuatemalaRepublicof = UUID.fromString("54040dec-6f42-48cc-93d8-8b283b23e530");
|
176
|
private static final UUID uuidGuineaRevolutionaryPeoplesRepcof = UUID.fromString("1b3cf756-b0c2-4e14-88af-d260b937d01f");
|
177
|
private static final UUID uuidGuineaBissauRepublicof = UUID.fromString("2dbf1dc1-7428-4284-9090-8785a30f4e71");
|
178
|
private static final UUID uuidGuyanaRepublicof = UUID.fromString("9cbe3428-0cfe-420e-a88e-eac196a16a37");
|
179
|
private static final UUID uuidHaitiRepublicof = UUID.fromString("f1071b42-0247-4c4d-92a5-8bdf18099c50");
|
180
|
private static final UUID uuidHeardandMcDonaldIslands = UUID.fromString("646a16d4-4a1f-47a0-a475-a19c605e04e0");
|
181
|
private static final UUID uuidVaticanCityState = UUID.fromString("afebd310-0c8d-4601-b025-a06a1d195035");
|
182
|
private static final UUID uuidHondurasRepublicof = UUID.fromString("c6684b89-3ea6-4922-9148-d74ff3ee33fd");
|
183
|
private static final UUID uuidHongKongSpecialAdministrativeRegionofChina = UUID.fromString("5aa1c98c-9efd-443f-9c10-708f175d5cea");
|
184
|
private static final UUID uuidHrvatska = UUID.fromString("a3acb45e-39ec-476b-bff2-7ff7e0383f7e");
|
185
|
private static final UUID uuidHungaryHungarianPeoplesRepublic = UUID.fromString("4d8b56d0-ab74-437f-98e0-3b88ebaa8c89");
|
186
|
private static final UUID uuidIcelandRepublicof = UUID.fromString("c7bf91f8-024c-4c04-9c0b-856a27b2d0ca");
|
187
|
private static final UUID uuidIndiaRepublicof = UUID.fromString("a0b872f9-fc04-440d-ace3-edce8ea75e0b");
|
188
|
private static final UUID uuidIndonesiaRepublicof = UUID.fromString("96eb663a-61b1-4a44-9017-0c4b1ea024d6");
|
189
|
private static final UUID uuidIranIslamicRepublicof = UUID.fromString("14f148e0-a9cf-428d-a244-a9917aae974d");
|
190
|
private static final UUID uuidIraqRepublicof = UUID.fromString("daf3de07-b1b8-47fa-8207-7e237ea30b7f");
|
191
|
private static final UUID uuidIreland = UUID.fromString("376f61f8-6234-4e61-bc5e-d0d76393cfa0");
|
192
|
private static final UUID uuidIsraelStateof = UUID.fromString("4c61dc3f-978d-4df9-9bd9-65089ee01dae");
|
193
|
private static final UUID uuidItalyItalianRepublic = UUID.fromString("9404a588-503b-4033-acf5-ee4a47337ed0");
|
194
|
private static final UUID uuidJamaica = UUID.fromString("528bede6-26db-47e6-b6cb-32f77ab5fef7");
|
195
|
private static final UUID uuidJapan = UUID.fromString("a8be059a-6f1a-45aa-8019-f6bc3b81c691");
|
196
|
private static final UUID uuidJordanHashemiteKingdomof = UUID.fromString("533b9709-1f97-43e6-8e12-68e116675c64");
|
197
|
private static final UUID uuidKazakhstanRepublicof = UUID.fromString("3047567d-997d-491a-b0bc-d4b287f76fab");
|
198
|
private static final UUID uuidKenyaRepublicof = UUID.fromString("9410b793-43fa-4205-bd24-5f92d392667f");
|
199
|
private static final UUID uuidKiribatiRepublicof = UUID.fromString("d46f42ec-a520-49d8-ac87-cc8bccc91516");
|
200
|
private static final UUID uuidKoreaDemocraticPeoplesRepublicof = UUID.fromString("0f2068a7-e284-417d-87ec-691c1e64c13c");
|
201
|
private static final UUID uuidKoreaRepublicof = UUID.fromString("f81e0bbb-8984-431e-9962-de590a989fd3");
|
202
|
private static final UUID uuidKuwaitStateof = UUID.fromString("00451db7-4f5a-4e5d-a6fe-955a8af306a0");
|
203
|
private static final UUID uuidKyrgyzRepublic = UUID.fromString("fc3cb838-98f0-46b4-a5fe-5efafc121e95");
|
204
|
private static final UUID uuidLaoPeoplesDemocraticRepublic = UUID.fromString("83b736b4-5049-4301-b370-ba19e7aa0403");
|
205
|
private static final UUID uuidLatvia = UUID.fromString("c24a316c-cec1-47c2-a777-296ce67ce11a");
|
206
|
private static final UUID uuidLebanonLebaneseRepublic = UUID.fromString("425b9cd2-0056-484a-9f77-5449215c65ba");
|
207
|
private static final UUID uuidLesothoKingdomof = UUID.fromString("fbbbc46c-ed8f-45f5-87bc-062a7ee7ffdf");
|
208
|
private static final UUID uuidLiberiaRepublicof = UUID.fromString("f40126ab-4cbe-409e-8f61-8911280e0857");
|
209
|
private static final UUID uuidLibyanArabJamahiriya = UUID.fromString("b9115908-2937-45e3-8fb3-009136b013af");
|
210
|
private static final UUID uuidLiechtensteinPrincipalityof = UUID.fromString("1bb6cf13-1286-40c8-bff8-1a18ef65e213");
|
211
|
private static final UUID uuidLithuania = UUID.fromString("3a2a0f69-92b1-45ab-baa8-47cf48e7272b");
|
212
|
private static final UUID uuidLuxembourgGrandDuchyof = UUID.fromString("5c481573-3d28-4c2c-87e1-acee4ccc64f1");
|
213
|
private static final UUID uuidMacaoSpecialAdministrativeRegionofChina = UUID.fromString("927f5ae3-8d26-4794-9e5d-95cf9e0dfd03");
|
214
|
private static final UUID uuidMacedoniatheformerYugoslavRepublicof = UUID.fromString("1cf135bb-cac7-4ba9-82dc-319ee41984c5");
|
215
|
private static final UUID uuidMadagascarRepublicof = UUID.fromString("116be5e1-861e-4283-8689-f527a923b9d3");
|
216
|
private static final UUID uuidMalawiRepublicof = UUID.fromString("61b41230-6365-433f-9454-5fea029f0e02");
|
217
|
private static final UUID uuidMalaysia = UUID.fromString("5650de95-a90c-45c1-92bf-85d9b91911dd");
|
218
|
private static final UUID uuidMaldivesRepublicof = UUID.fromString("5b932d64-3ca6-4691-881f-8b48bd2f3f15");
|
219
|
private static final UUID uuidMaliRepublicof = UUID.fromString("2e201266-8535-4437-8870-a1d63745ec3d");
|
220
|
private static final UUID uuidMaltaRepublicof = UUID.fromString("0ee9727a-36cb-40cb-9e65-cd4646c09d63");
|
221
|
private static final UUID uuidMarshallIslands = UUID.fromString("2c507bb4-de73-4e3f-98ce-26bd2b0c016a");
|
222
|
private static final UUID uuidMartinique = UUID.fromString("93ec114a-0486-4325-bef8-d1b5dea89419");
|
223
|
private static final UUID uuidMauritaniaIslamicRepublicof = UUID.fromString("dfd0aaf0-4a73-4d41-a6d7-9cdfd01f4c40");
|
224
|
private static final UUID uuidMauritius = UUID.fromString("719daa07-1dce-4473-8c40-b0efd644028c");
|
225
|
private static final UUID uuidMayotte = UUID.fromString("48116e69-19a9-4169-9952-4ca46c586fa2");
|
226
|
private static final UUID uuidMexicoUnitedMexicanStates = UUID.fromString("4ba4809b-3fa8-496d-a74d-80843a4740c8");
|
227
|
private static final UUID uuidMicronesiaFederatedStatesof = UUID.fromString("70a91b6f-f196-4051-afdb-4e9aeaca490d");
|
228
|
private static final UUID uuidMoldovaRepublicof = UUID.fromString("500f43b9-47c4-4c2a-af58-80adbc40c5f3");
|
229
|
private static final UUID uuidMonacoPrincipalityof = UUID.fromString("4ef4c6cb-e02c-41a3-8d5f-74e8ae09ca71");
|
230
|
private static final UUID uuidMongoliaMongolianPeoplesRepublic = UUID.fromString("8b7ebb83-9998-4efd-b97c-f1b7d3a7151f");
|
231
|
private static final UUID uuidMontserrat = UUID.fromString("cd64d76f-6f2b-4e44-8d31-a2765100257b");
|
232
|
private static final UUID uuidMoroccoKingdomof = UUID.fromString("d9c048d5-3220-439d-8af4-2a8ec3036e5b");
|
233
|
private static final UUID uuidMozambiquePeoplesRepublicof = UUID.fromString("9f2b714e-6159-401b-9108-5d0b9413f6c8");
|
234
|
private static final UUID uuidMyanmar = UUID.fromString("fd07e660-b3d6-46e7-bf7d-ec984e573c60");
|
235
|
private static final UUID uuidNamibia = UUID.fromString("2c361180-c71c-4de0-8a98-0ff5a71bccaa");
|
236
|
private static final UUID uuidNauruRepublicof = UUID.fromString("35d8c1ce-a2e9-43d6-9afe-582278a53d34");
|
237
|
private static final UUID uuidNepalKingdomof = UUID.fromString("fa46cd94-68f9-4d0d-98a2-27dc6589658f");
|
238
|
private static final UUID uuidNetherlandsAntilles = UUID.fromString("802d28f4-442f-47da-8e16-eb08d4de21b4");
|
239
|
private static final UUID uuidNetherlandsKingdomofthe = UUID.fromString("5880f989-f10d-4a9c-aae8-4e6c7b212dd8");
|
240
|
private static final UUID uuidNewCaledonia = UUID.fromString("587f11ed-27de-4751-9d04-b04f13f3f67c");
|
241
|
private static final UUID uuidNewZealand = UUID.fromString("322c12c9-7b5a-4343-9861-23c93bbe62b4");
|
242
|
private static final UUID uuidNicaraguaRepublicof = UUID.fromString("290da724-674d-4c99-8630-cb237162ae0a");
|
243
|
private static final UUID uuidNigerRepublicofthe = UUID.fromString("1804792f-cccd-4f14-9e63-5c241bfd8429");
|
244
|
private static final UUID uuidNigeriaFederalRepublicof = UUID.fromString("6dae052c-7477-485a-9d2c-63760991f9d8");
|
245
|
private static final UUID uuidNiueRepublicof = UUID.fromString("e804fe1d-8246-481b-a293-d3c0b71d6abd");
|
246
|
private static final UUID uuidNorfolkIsland = UUID.fromString("3d5afd71-90d7-459f-ade1-c8b65cbc7fe1");
|
247
|
private static final UUID uuidNorthernMarianaIslands = UUID.fromString("43471298-1133-473e-b9b3-9152c5955177");
|
248
|
private static final UUID uuidNorwayKingdomof = UUID.fromString("e136efdf-82bb-4528-be5c-881acd8315cb");
|
249
|
private static final UUID uuidOmanSultanateof = UUID.fromString("36f43aca-3302-4abd-a7e3-f65ff050a087");
|
250
|
private static final UUID uuidPakistanIslamicRepublicof = UUID.fromString("d42712ec-45aa-4811-9029-d38e5a607345");
|
251
|
private static final UUID uuidPalau = UUID.fromString("02f4bc12-bc36-447b-b08c-e74e8fe25678");
|
252
|
private static final UUID uuidPalestinianTerritoryOccupied = UUID.fromString("41f45c19-6910-470e-86fb-a3f426b8ca9c");
|
253
|
private static final UUID uuidPanamaRepublicof = UUID.fromString("fd2ac965-bdb4-484a-9e4a-250f26aad030");
|
254
|
private static final UUID uuidPapuaNewGuinea = UUID.fromString("3bc710b1-8b46-48e3-bdcd-54f64ca018cc");
|
255
|
private static final UUID uuidParaguayRepublicof = UUID.fromString("e99f321f-664a-4a4b-90a9-1bdc98ea35f6");
|
256
|
private static final UUID uuidPeruRepublicof = UUID.fromString("e4d92c3e-0f91-41d8-b10e-58c78b4c55ea");
|
257
|
private static final UUID uuidPhilippinesRepublicofthe = UUID.fromString("8547697c-d80f-4531-b092-4c9fde373d7b");
|
258
|
private static final UUID uuidPitcairnIsland = UUID.fromString("c3abd7ab-c953-4c0c-8bc1-e32f4a49775a");
|
259
|
private static final UUID uuidPolandPolishPeoplesRepublic = UUID.fromString("579f8a7a-7fa5-4783-a8ec-cdc527781411");
|
260
|
private static final UUID uuidPortugalPortugueseRepublic = UUID.fromString("f47bd6f5-c82b-4932-81ce-40345748536b");
|
261
|
private static final UUID uuidPuertoRico = UUID.fromString("6471bdcc-b4cc-4a07-b946-dd15be7eec41");
|
262
|
private static final UUID uuidQatarStateof = UUID.fromString("710d68a7-4a02-4d70-bbc8-22b904893429");
|
263
|
private static final UUID uuidReunion = UUID.fromString("d85d98f6-3f09-44b0-a39b-0e2b6bf4746c");
|
264
|
private static final UUID uuidRomaniaSocialistRepublicof = UUID.fromString("7d7c8221-4123-4ba2-88ef-25e7f10aafbc");
|
265
|
private static final UUID uuidRussianFederation = UUID.fromString("504292b5-053a-4c6a-a690-db031ac02fc0");
|
266
|
private static final UUID uuidRwandaRwandeseRepublic = UUID.fromString("27c2cc85-7c54-4356-b713-836c15f2da4e");
|
267
|
private static final UUID uuidStHelena = UUID.fromString("626ec513-fddb-41f3-ab36-2ae2190a1bc1");
|
268
|
private static final UUID uuidStKittsandNevis = UUID.fromString("777d19e2-d5e8-48e2-9a0f-cd95097e4e75");
|
269
|
private static final UUID uuidStLucia = UUID.fromString("a3a55f1c-ea50-43df-b141-e8543eb20ebb");
|
270
|
private static final UUID uuidStPierreandMiquelon = UUID.fromString("34f97908-18c5-4f67-b411-1b905161a330");
|
271
|
private static final UUID uuidStVincentandtheGrenadines = UUID.fromString("dfe67a34-6a3a-4a56-8f90-3c007360f105");
|
272
|
private static final UUID uuidSamoaIndependentStateof = UUID.fromString("7ad3f6bd-5e8a-467b-a481-1a523066b0e7");
|
273
|
private static final UUID uuidSanMarinoRepublicof = UUID.fromString("e0c3ad69-a078-424f-a7d4-81025d190c91");
|
274
|
private static final UUID uuidSaoTomeandPrincipeDemocraticRepublicof = UUID.fromString("a5369890-7a96-46bf-b91c-2c47d86660dd");
|
275
|
private static final UUID uuidSaudiArabiaKingdomof = UUID.fromString("62fe4794-7fb0-4520-9493-b9150436393e");
|
276
|
private static final UUID uuidSenegalRepublicof = UUID.fromString("e106a448-1205-4515-96f4-758e98176342");
|
277
|
private static final UUID uuidSerbiaandMontenegro = UUID.fromString("94430436-eb97-4048-bf57-270c42b73fd3");
|
278
|
private static final UUID uuidSeychellesRepublicof = UUID.fromString("3bb44fb7-0976-4e3d-94b9-439763b53711");
|
279
|
private static final UUID uuidSierraLeoneRepublicof = UUID.fromString("88e731a7-5c80-4f29-8cf0-54acf70d6277");
|
280
|
private static final UUID uuidSingaporeRepublicof = UUID.fromString("e063b480-c834-4e39-b7a9-74fc578c637b");
|
281
|
private static final UUID uuidSlovakia = UUID.fromString("0349b9b5-865d-46ea-9750-ab71962d5106");
|
282
|
private static final UUID uuidSlovenia = UUID.fromString("526b3fb4-08fc-4238-aa8b-e3217fae7214");
|
283
|
private static final UUID uuidSolomonIslands = UUID.fromString("fc915f15-b2cf-40a7-8268-7c1f2744295a");
|
284
|
private static final UUID uuidSomaliaSomaliRepublic = UUID.fromString("e8591331-3b75-4569-90a6-4aca1d1d9a53");
|
285
|
private static final UUID uuidSouthAfricaRepublicof = UUID.fromString("508c9fcb-1b6c-4225-8e31-262a4df64a85");
|
286
|
private static final UUID uuidSouthGeorgiaandtheSouthSandwichIslands = UUID.fromString("bf34dad1-63d1-4859-8818-da369616c470");
|
287
|
private static final UUID uuidSpainSpanishState = UUID.fromString("e4d6474b-d903-4850-b51e-389f546b7601");
|
288
|
private static final UUID uuidSriLankaDemocraticSocialistRepublicof = UUID.fromString("c7e74d0e-5c0d-4e3f-a19b-e072abbf0b92");
|
289
|
private static final UUID uuidSudanDemocraticRepublicofthe = UUID.fromString("a47a922b-fa61-4164-8f6d-7cf2ba33ca8c");
|
290
|
private static final UUID uuidSurinameRepublicof = UUID.fromString("6268a5c7-df0e-4230-8681-966798383dc4");
|
291
|
private static final UUID uuidSvalbardJanMayenIslands = UUID.fromString("e47f9fe5-54c7-4c61-8c74-abc514749e41");
|
292
|
private static final UUID uuidSwazilandKingdomof = UUID.fromString("bb006073-0088-4adf-9482-01e598bc3fd3");
|
293
|
private static final UUID uuidSwedenKingdomof = UUID.fromString("8272e206-cb6f-499c-a1d9-7c581f5947c5");
|
294
|
private static final UUID uuidSwitzerlandSwissConfederation = UUID.fromString("dd79f943-8237-4710-bc5f-acc1ea1a2dd8");
|
295
|
private static final UUID uuidSyrianArabRepublic = UUID.fromString("f92c3ca4-3468-40b6-b387-d4677fca86d9");
|
296
|
private static final UUID uuidTaiwanProvinceofChina = UUID.fromString("0fffb0e5-81b9-40be-be69-9aff204f51c4");
|
297
|
private static final UUID uuidTajikistan = UUID.fromString("b78e4b96-6095-4316-bc4c-6bdec5593622");
|
298
|
private static final UUID uuidTanzaniaUnitedRepublicof = UUID.fromString("8a519200-784a-495a-b0da-b3277913b880");
|
299
|
private static final UUID uuidThailandKingdomof = UUID.fromString("6c35d8b5-a75b-4f17-8869-04cad4535bd8");
|
300
|
private static final UUID uuidTimorLesteDemocraticRepublicof = UUID.fromString("77f9e6b5-a363-454c-996b-34aec2f10f99");
|
301
|
private static final UUID uuidTogoTogoleseRepublic = UUID.fromString("75f15dd5-9998-4937-9a2c-b440798a6695");
|
302
|
private static final UUID uuidTokelauIslands = UUID.fromString("b301d428-6936-4538-b5d3-778534b779e6");
|
303
|
private static final UUID uuidTongaKingdomof = UUID.fromString("0abdcd01-09ff-42a8-b8ba-10458dca5ba9");
|
304
|
private static final UUID uuidTrinidadandTobagoRepublicof = UUID.fromString("20ed7f03-1263-47fd-a4df-26fab6daae75");
|
305
|
private static final UUID uuidTunisiaRepublicof = UUID.fromString("e121e4d7-e1aa-4f2e-9b9e-33f5109460d7");
|
306
|
private static final UUID uuidTurkeyRepublicof = UUID.fromString("f7c15c55-d0b3-4eda-8961-582d5071df78");
|
307
|
private static final UUID uuidTurkmenistan = UUID.fromString("442c0439-cf39-4c5a-96de-a99fe1a476cf");
|
308
|
private static final UUID uuidTurksandCaicosIslands = UUID.fromString("d6c83f2f-5130-477a-994e-daa08b70352f");
|
309
|
private static final UUID uuidTuvalu = UUID.fromString("30745e37-22c6-4b92-b955-85cb23f0526f");
|
310
|
private static final UUID uuidUSVirginIslands = UUID.fromString("b5f9a299-41ea-414b-83d5-91518f64a481");
|
311
|
private static final UUID uuidUgandaRepublicof = UUID.fromString("e74c11af-3a4e-4d13-9c2a-2e57d2954111");
|
312
|
private static final UUID uuidUkraine = UUID.fromString("c44e49c7-a447-466d-ae4f-d290ab03ff18");
|
313
|
private static final UUID uuidUnitedArabEmirates = UUID.fromString("a5b5e8ce-66c8-4ca0-a31b-473c90876108");
|
314
|
private static final UUID uuidUnitedKingdomofGreatBritainAndNorthernIreland = UUID.fromString("5364e352-926f-4e07-9abb-2deea19346ec");
|
315
|
private static final UUID uuidUnitedStatesMinorOutlyingIslands = UUID.fromString("4e88114b-e278-4816-ba7d-7bc17098c407");
|
316
|
private static final UUID uuidUnitedStatesofAmerica = UUID.fromString("d9dacd9e-dd04-4641-957a-589bdb9fe5fb");
|
317
|
private static final UUID uuidUruguayEasternRepublicof = UUID.fromString("baf46f00-7b05-4d88-b1cf-ce922f3ba262");
|
318
|
private static final UUID uuidUzbekistan = UUID.fromString("86ebc56d-8b06-4bb1-a0f9-b15626c02fbd");
|
319
|
private static final UUID uuidVanuatu = UUID.fromString("b4e16ad0-3cb7-4809-a5ae-9a143595c2a4");
|
320
|
private static final UUID uuidVenezuelaBolivarianRepublicof = UUID.fromString("e8099497-0e51-41ca-85d7-d23b730d9c1a");
|
321
|
private static final UUID uuidVietNamSocialistRepublicof = UUID.fromString("f9295319-572e-4c3d-9962-176a7802750b");
|
322
|
private static final UUID uuidWallisandFutunaIslands = UUID.fromString("b4844963-f140-41b3-935d-58fd14df5878");
|
323
|
private static final UUID uuidWesternSahara = UUID.fromString("fa9e1eb4-ee4c-4b13-82dd-ec42a8b7e627");
|
324
|
private static final UUID uuidYemen = UUID.fromString("713e1840-ff18-4a96-bc32-3da2b048c77d");
|
325
|
private static final UUID uuidZambiaRepublicof = UUID.fromString("90318040-d346-4c8f-be69-fa8ade0b12d9");
|
326
|
private static final UUID uuidZimbabwe = UUID.fromString("aa96ca19-46ab-40ad-a494-e4842f13eb4c");
|
327
|
|
328
|
public static final Country AFGHANISTAN () { return (Country)termMap.get(Country.uuidAfghanistan );}
|
329
|
public static final Country ALBANIAPEOPLESSOCIALISTREPUBLICOF () { return (Country)termMap.get(Country.uuidAlbaniaPeoplesSocialistRepublicof );}
|
330
|
public static final Country ALGERIAPEOPLESDEMOCRATICREPUBLICOF () { return (Country)termMap.get(Country.uuidAlgeriaPeoplesDemocraticRepublicof );}
|
331
|
public static final Country AMERICANSAMOA () { return (Country)termMap.get(Country.uuidAmericanSamoa );}
|
332
|
public static final Country ANDORRAPRINCIPALITYOF () { return (Country)termMap.get(Country.uuidAndorraPrincipalityof );}
|
333
|
public static final Country ANGOLAREPUBLICOF () { return (Country)termMap.get(Country.uuidAngolaRepublicof );}
|
334
|
public static final Country ANGUILLA () { return (Country)termMap.get(Country.uuidAnguilla );}
|
335
|
public static final Country ANTARCTICASOUTHOF60 () { return (Country)termMap.get(Country.uuidAntarcticaSouthOf60 );}
|
336
|
public static final Country ANTIGUAANDBARBUDA () { return (Country)termMap.get(Country.uuidAntiguaandBarbuda );}
|
337
|
public static final Country ARGENTINAARGENTINEREPUBLIC () { return (Country)termMap.get(Country.uuidArgentinaArgentineRepublic );}
|
338
|
public static final Country ARMENIA () { return (Country)termMap.get(Country.uuidArmenia );}
|
339
|
public static final Country ARUBA () { return (Country)termMap.get(Country.uuidAruba );}
|
340
|
public static final Country AUSTRALIACOMMONWEALTHOF () { return (Country)termMap.get(Country.uuidAustraliaCommonwealthof );}
|
341
|
public static final Country AUSTRIAREPUBLICOF () { return (Country)termMap.get(Country.uuidAustriaRepublicof );}
|
342
|
public static final Country AZERBAIJANREPUBLICOF () { return (Country)termMap.get(Country.uuidAzerbaijanRepublicof );}
|
343
|
public static final Country BAHAMASCOMMONWEALTHOFTHE () { return (Country)termMap.get(Country.uuidBahamasCommonwealthofthe );}
|
344
|
public static final Country BAHRAINKINGDOMOF () { return (Country)termMap.get(Country.uuidBahrainKingdomof );}
|
345
|
public static final Country BANGLADESHPEOPLESREPUBLICOF () { return (Country)termMap.get(Country.uuidBangladeshPeoplesRepublicof );}
|
346
|
public static final Country BARBADOS () { return (Country)termMap.get(Country.uuidBarbados );}
|
347
|
public static final Country BELARUS () { return (Country)termMap.get(Country.uuidBelarus );}
|
348
|
public static final Country BELGIUMKINGDOMOF () { return (Country)termMap.get(Country.uuidBelgiumKingdomof );}
|
349
|
public static final Country BELIZE () { return (Country)termMap.get(Country.uuidBelize );}
|
350
|
public static final Country BENINPEOPLESREPUBLICOF () { return (Country)termMap.get(Country.uuidBeninPeoplesRepublicof );}
|
351
|
public static final Country BERMUDA () { return (Country)termMap.get(Country.uuidBermuda );}
|
352
|
public static final Country BHUTANKINGDOMOF () { return (Country)termMap.get(Country.uuidBhutanKingdomof );}
|
353
|
public static final Country BOLIVIAREPUBLICOF () { return (Country)termMap.get(Country.uuidBoliviaRepublicof );}
|
354
|
public static final Country BOSNIAANDHERZEGOVINA () { return (Country)termMap.get(Country.uuidBosniaandHerzegovina );}
|
355
|
public static final Country BOTSWANAREPUBLICOF () { return (Country)termMap.get(Country.uuidBotswanaRepublicof );}
|
356
|
public static final Country BOUVETISLAND () { return (Country)termMap.get(Country.uuidBouvetIsland );}
|
357
|
public static final Country BRAZILFEDERATIVEREPUBLICOF () { return (Country)termMap.get(Country.uuidBrazilFederativeRepublicof );}
|
358
|
public static final Country BRITISHINDIANOCEANTERRITORY () { return (Country)termMap.get(Country.uuidBritishIndianOceanTerritory );}
|
359
|
public static final Country BRITISHVIRGINISLANDS () { return (Country)termMap.get(Country.uuidBritishVirginIslands );}
|
360
|
public static final Country BRUNEIDARUSSALAM () { return (Country)termMap.get(Country.uuidBruneiDarussalam );}
|
361
|
public static final Country BULGARIAPEOPLESREPUBLICOF () { return (Country)termMap.get(Country.uuidBulgariaPeoplesRepublicof );}
|
362
|
public static final Country BURKINAFASO () { return (Country)termMap.get(Country.uuidBurkinaFaso );}
|
363
|
public static final Country BURUNDIREPUBLICOF () { return (Country)termMap.get(Country.uuidBurundiRepublicof );}
|
364
|
public static final Country CAMBODIAKINGDOMOF () { return (Country)termMap.get(Country.uuidCambodiaKingdomof );}
|
365
|
public static final Country CAMEROONUNITEDREPUBLICOF () { return (Country)termMap.get(Country.uuidCameroonUnitedRepublicof );}
|
366
|
public static final Country CANADA () { return (Country)termMap.get(Country.uuidCanada );}
|
367
|
public static final Country CAPEVERDEREPUBLICOF () { return (Country)termMap.get(Country.uuidCapeVerdeRepublicof );}
|
368
|
public static final Country CAYMANISLANDS () { return (Country)termMap.get(Country.uuidCaymanIslands );}
|
369
|
public static final Country CENTRALAFRICANREPUBLIC () { return (Country)termMap.get(Country.uuidCentralAfricanRepublic );}
|
370
|
public static final Country CHADREPUBLICOF () { return (Country)termMap.get(Country.uuidChadRepublicof );}
|
371
|
public static final Country CHILEREPUBLICOF () { return (Country)termMap.get(Country.uuidChileRepublicof );}
|
372
|
public static final Country CHINAPEOPLESREPUBLICOF () { return (Country)termMap.get(Country.uuidChinaPeoplesRepublicof );}
|
373
|
public static final Country CHRISTMASISLAND () { return (Country)termMap.get(Country.uuidChristmasIsland );}
|
374
|
public static final Country COCOSISLANDS () { return (Country)termMap.get(Country.uuidCocosIslands );}
|
375
|
public static final Country COLOMBIAREPUBLICOF () { return (Country)termMap.get(Country.uuidColombiaRepublicof );}
|
376
|
public static final Country COMOROSUNIONOFTHE () { return (Country)termMap.get(Country.uuidComorosUnionofthe );}
|
377
|
public static final Country CONGODEMOCRATICREPUBLICOF () { return (Country)termMap.get(Country.uuidCongoDemocraticRepublicof );}
|
378
|
public static final Country CONGOPEOPLESREPUBLICOF () { return (Country)termMap.get(Country.uuidCongoPeoplesRepublicof );}
|
379
|
public static final Country COOKISLANDS () { return (Country)termMap.get(Country.uuidCookIslands );}
|
380
|
public static final Country COSTARICAREPUBLICOF () { return (Country)termMap.get(Country.uuidCostaRicaRepublicof );}
|
381
|
public static final Country COTEDIVOIREIVORYCOASTREPUBLICOFTHE () { return (Country)termMap.get(Country.uuidCoteDIvoireIvoryCoastRepublicofthe );}
|
382
|
public static final Country CUBAREPUBLICOF () { return (Country)termMap.get(Country.uuidCubaRepublicof );}
|
383
|
public static final Country CYPRUSREPUBLICOF () { return (Country)termMap.get(Country.uuidCyprusRepublicof );}
|
384
|
public static final Country CZECHREPUBLIC () { return (Country)termMap.get(Country.uuidCzechRepublic );}
|
385
|
public static final Country DENMARKKINGDOMOF () { return (Country)termMap.get(Country.uuidDenmarkKingdomof );}
|
386
|
public static final Country DJIBOUTIREPUBLICOF () { return (Country)termMap.get(Country.uuidDjiboutiRepublicof );}
|
387
|
public static final Country DOMINICACOMMONWEALTHOF () { return (Country)termMap.get(Country.uuidDominicaCommonwealthof );}
|
388
|
public static final Country DOMINICANREPUBLIC () { return (Country)termMap.get(Country.uuidDominicanRepublic );}
|
389
|
public static final Country ECUADORREPUBLICOF () { return (Country)termMap.get(Country.uuidEcuadorRepublicof );}
|
390
|
public static final Country EGYPTARABREPUBLICOF () { return (Country)termMap.get(Country.uuidEgyptArabRepublicof );}
|
391
|
public static final Country ELSALVADORREPUBLICOF () { return (Country)termMap.get(Country.uuidElSalvadorRepublicof );}
|
392
|
public static final Country EQUATORIALGUINEAREPUBLICOF () { return (Country)termMap.get(Country.uuidEquatorialGuineaRepublicof );}
|
393
|
public static final Country ERITREA () { return (Country)termMap.get(Country.uuidEritrea );}
|
394
|
public static final Country ESTONIA () { return (Country)termMap.get(Country.uuidEstonia );}
|
395
|
public static final Country ETHIOPIA () { return (Country)termMap.get(Country.uuidEthiopia );}
|
396
|
public static final Country FAEROEISLANDS () { return (Country)termMap.get(Country.uuidFaeroeIslands );}
|
397
|
public static final Country FALKLANDISLANDS () { return (Country)termMap.get(Country.uuidFalklandIslands );}
|
398
|
public static final Country FIJIREPUBLICOFTHEFIJIISLANDS () { return (Country)termMap.get(Country.uuidFijiRepublicoftheFijiIslands );}
|
399
|
public static final Country FINLANDREPUBLICOF () { return (Country)termMap.get(Country.uuidFinlandRepublicof );}
|
400
|
public static final Country FRANCEFRENCHREPUBLIC () { return (Country)termMap.get(Country.uuidFranceFrenchRepublic );}
|
401
|
public static final Country FRENCHGUIANA () { return (Country)termMap.get(Country.uuidFrenchGuiana );}
|
402
|
public static final Country FRENCHPOLYNESIA () { return (Country)termMap.get(Country.uuidFrenchPolynesia );}
|
403
|
public static final Country FRENCHSOUTHERNTERRITORIES () { return (Country)termMap.get(Country.uuidFrenchSouthernTerritories );}
|
404
|
public static final Country GABONGABONESEREPUBLIC () { return (Country)termMap.get(Country.uuidGabonGaboneseRepublic );}
|
405
|
public static final Country GAMBIAREPUBLICOFTHE () { return (Country)termMap.get(Country.uuidGambiaRepublicofthe );}
|
406
|
public static final Country GEORGIA () { return (Country)termMap.get(Country.uuidGeorgia );}
|
407
|
public static final Country GERMANY () { return (Country)termMap.get(Country.uuidGermany );}
|
408
|
public static final Country GHANAREPUBLICOF () { return (Country)termMap.get(Country.uuidGhanaRepublicof );}
|
409
|
public static final Country GIBRALTAR () { return (Country)termMap.get(Country.uuidGibraltar );}
|
410
|
public static final Country GREECEHELLENICREPUBLIC () { return (Country)termMap.get(Country.uuidGreeceHellenicRepublic );}
|
411
|
public static final Country GREENLAND () { return (Country)termMap.get(Country.uuidGreenland );}
|
412
|
public static final Country GRENADA () { return (Country)termMap.get(Country.uuidGrenada );}
|
413
|
public static final Country GUADALOUPE () { return (Country)termMap.get(Country.uuidGuadaloupe );}
|
414
|
public static final Country GUAM () { return (Country)termMap.get(Country.uuidGuam );}
|
415
|
public static final Country GUATEMALAREPUBLICOF () { return (Country)termMap.get(Country.uuidGuatemalaRepublicof );}
|
416
|
public static final Country GUINEAREVOLUTIONARYPEOPLESREPCOF () { return (Country)termMap.get(Country.uuidGuineaRevolutionaryPeoplesRepcof );}
|
417
|
public static final Country GUINEABISSAUREPUBLICOF () { return (Country)termMap.get(Country.uuidGuineaBissauRepublicof );}
|
418
|
public static final Country GUYANAREPUBLICOF () { return (Country)termMap.get(Country.uuidGuyanaRepublicof );}
|
419
|
public static final Country HAITIREPUBLICOF () { return (Country)termMap.get(Country.uuidHaitiRepublicof );}
|
420
|
public static final Country HEARDANDMCDONALDISLANDS () { return (Country)termMap.get(Country.uuidHeardandMcDonaldIslands );}
|
421
|
public static final Country VATICANCITYSTATE () { return (Country)termMap.get(Country.uuidVaticanCityState );}
|
422
|
public static final Country HONDURASREPUBLICOF () { return (Country)termMap.get(Country.uuidHondurasRepublicof );}
|
423
|
public static final Country HONGKONGSPECIALADMINISTRATIVEREGIONOFCHINA () { return (Country)termMap.get(Country.uuidHongKongSpecialAdministrativeRegionofChina );}
|
424
|
public static final Country HRVATSKA () { return (Country)termMap.get(Country.uuidHrvatska );}
|
425
|
public static final Country HUNGARYHUNGARIANPEOPLESREPUBLIC () { return (Country)termMap.get(Country.uuidHungaryHungarianPeoplesRepublic );}
|
426
|
public static final Country ICELANDREPUBLICOF () { return (Country)termMap.get(Country.uuidIcelandRepublicof );}
|
427
|
public static final Country INDIAREPUBLICOF () { return (Country)termMap.get(Country.uuidIndiaRepublicof );}
|
428
|
public static final Country INDONESIAREPUBLICOF () { return (Country)termMap.get(Country.uuidIndonesiaRepublicof );}
|
429
|
public static final Country IRANISLAMICREPUBLICOF () { return (Country)termMap.get(Country.uuidIranIslamicRepublicof );}
|
430
|
public static final Country IRAQREPUBLICOF () { return (Country)termMap.get(Country.uuidIraqRepublicof );}
|
431
|
public static final Country IRELAND () { return (Country)termMap.get(Country.uuidIreland );}
|
432
|
public static final Country ISRAELSTATEOF () { return (Country)termMap.get(Country.uuidIsraelStateof );}
|
433
|
public static final Country ITALYITALIANREPUBLIC () { return (Country)termMap.get(Country.uuidItalyItalianRepublic );}
|
434
|
public static final Country JAMAICA () { return (Country)termMap.get(Country.uuidJamaica );}
|
435
|
public static final Country JAPAN () { return (Country)termMap.get(Country.uuidJapan );}
|
436
|
public static final Country JORDANHASHEMITEKINGDOMOF () { return (Country)termMap.get(Country.uuidJordanHashemiteKingdomof );}
|
437
|
public static final Country KAZAKHSTANREPUBLICOF () { return (Country)termMap.get(Country.uuidKazakhstanRepublicof );}
|
438
|
public static final Country KENYAREPUBLICOF () { return (Country)termMap.get(Country.uuidKenyaRepublicof );}
|
439
|
public static final Country KIRIBATIREPUBLICOF () { return (Country)termMap.get(Country.uuidKiribatiRepublicof );}
|
440
|
public static final Country KOREADEMOCRATICPEOPLESREPUBLICOF () { return (Country)termMap.get(Country.uuidKoreaDemocraticPeoplesRepublicof );}
|
441
|
public static final Country KOREAREPUBLICOF () { return (Country)termMap.get(Country.uuidKoreaRepublicof );}
|
442
|
public static final Country KUWAITSTATEOF () { return (Country)termMap.get(Country.uuidKuwaitStateof );}
|
443
|
public static final Country KYRGYZREPUBLIC () { return (Country)termMap.get(Country.uuidKyrgyzRepublic );}
|
444
|
public static final Country LAOPEOPLESDEMOCRATICREPUBLIC () { return (Country)termMap.get(Country.uuidLaoPeoplesDemocraticRepublic );}
|
445
|
public static final Country LATVIA () { return (Country)termMap.get(Country.uuidLatvia );}
|
446
|
public static final Country LEBANONLEBANESEREPUBLIC () { return (Country)termMap.get(Country.uuidLebanonLebaneseRepublic );}
|
447
|
public static final Country LESOTHOKINGDOMOF () { return (Country)termMap.get(Country.uuidLesothoKingdomof );}
|
448
|
public static final Country LIBERIAREPUBLICOF () { return (Country)termMap.get(Country.uuidLiberiaRepublicof );}
|
449
|
public static final Country LIBYANARABJAMAHIRIYA () { return (Country)termMap.get(Country.uuidLibyanArabJamahiriya );}
|
450
|
public static final Country LIECHTENSTEINPRINCIPALITYOF () { return (Country)termMap.get(Country.uuidLiechtensteinPrincipalityof );}
|
451
|
public static final Country LITHUANIA () { return (Country)termMap.get(Country.uuidLithuania );}
|
452
|
public static final Country LUXEMBOURGGRANDDUCHYOF () { return (Country)termMap.get(Country.uuidLuxembourgGrandDuchyof );}
|
453
|
public static final Country MACAOSPECIALADMINISTRATIVEREGIONOFCHINA () { return (Country)termMap.get(Country.uuidMacaoSpecialAdministrativeRegionofChina );}
|
454
|
public static final Country MACEDONIATHEFORMERYUGOSLAVREPUBLICOF () { return (Country)termMap.get(Country.uuidMacedoniatheformerYugoslavRepublicof );}
|
455
|
public static final Country MADAGASCARREPUBLICOF () { return (Country)termMap.get(Country.uuidMadagascarRepublicof );}
|
456
|
public static final Country MALAWIREPUBLICOF () { return (Country)termMap.get(Country.uuidMalawiRepublicof );}
|
457
|
public static final Country MALAYSIA () { return (Country)termMap.get(Country.uuidMalaysia );}
|
458
|
public static final Country MALDIVESREPUBLICOF () { return (Country)termMap.get(Country.uuidMaldivesRepublicof );}
|
459
|
public static final Country MALIREPUBLICOF () { return (Country)termMap.get(Country.uuidMaliRepublicof );}
|
460
|
public static final Country MALTAREPUBLICOF () { return (Country)termMap.get(Country.uuidMaltaRepublicof );}
|
461
|
public static final Country MARSHALLISLANDS () { return (Country)termMap.get(Country.uuidMarshallIslands );}
|
462
|
public static final Country MARTINIQUE () { return (Country)termMap.get(Country.uuidMartinique );}
|
463
|
public static final Country MAURITANIAISLAMICREPUBLICOF () { return (Country)termMap.get(Country.uuidMauritaniaIslamicRepublicof );}
|
464
|
public static final Country MAURITIUS () { return (Country)termMap.get(Country.uuidMauritius );}
|
465
|
public static final Country MAYOTTE () { return (Country)termMap.get(Country.uuidMayotte );}
|
466
|
public static final Country MEXICOUNITEDMEXICANSTATES () { return (Country)termMap.get(Country.uuidMexicoUnitedMexicanStates );}
|
467
|
public static final Country MICRONESIAFEDERATEDSTATESOF () { return (Country)termMap.get(Country.uuidMicronesiaFederatedStatesof );}
|
468
|
public static final Country MOLDOVAREPUBLICOF () { return (Country)termMap.get(Country.uuidMoldovaRepublicof );}
|
469
|
public static final Country MONACOPRINCIPALITYOF () { return (Country)termMap.get(Country.uuidMonacoPrincipalityof );}
|
470
|
public static final Country MONGOLIAMONGOLIANPEOPLESREPUBLIC () { return (Country)termMap.get(Country.uuidMongoliaMongolianPeoplesRepublic );}
|
471
|
public static final Country MONTSERRAT () { return (Country)termMap.get(Country.uuidMontserrat );}
|
472
|
public static final Country MOROCCOKINGDOMOF () { return (Country)termMap.get(Country.uuidMoroccoKingdomof );}
|
473
|
public static final Country MOZAMBIQUEPEOPLESREPUBLICOF () { return (Country)termMap.get(Country.uuidMozambiquePeoplesRepublicof );}
|
474
|
public static final Country MYANMAR () { return (Country)termMap.get(Country.uuidMyanmar );}
|
475
|
public static final Country NAMIBIA () { return (Country)termMap.get(Country.uuidNamibia );}
|
476
|
public static final Country NAURUREPUBLICOF () { return (Country)termMap.get(Country.uuidNauruRepublicof );}
|
477
|
public static final Country NEPALKINGDOMOF () { return (Country)termMap.get(Country.uuidNepalKingdomof );}
|
478
|
public static final Country NETHERLANDSANTILLES () { return (Country)termMap.get(Country.uuidNetherlandsAntilles );}
|
479
|
public static final Country NETHERLANDSKINGDOMOFTHE () { return (Country)termMap.get(Country.uuidNetherlandsKingdomofthe );}
|
480
|
public static final Country NEWCALEDONIA () { return (Country)termMap.get(Country.uuidNewCaledonia );}
|
481
|
public static final Country NEWZEALAND () { return (Country)termMap.get(Country.uuidNewZealand );}
|
482
|
public static final Country NICARAGUAREPUBLICOF () { return (Country)termMap.get(Country.uuidNicaraguaRepublicof );}
|
483
|
public static final Country NIGERREPUBLICOFTHE () { return (Country)termMap.get(Country.uuidNigerRepublicofthe );}
|
484
|
public static final Country NIGERIAFEDERALREPUBLICOF () { return (Country)termMap.get(Country.uuidNigeriaFederalRepublicof );}
|
485
|
public static final Country NIUEREPUBLICOF () { return (Country)termMap.get(Country.uuidNiueRepublicof );}
|
486
|
public static final Country NORFOLKISLAND () { return (Country)termMap.get(Country.uuidNorfolkIsland );}
|
487
|
public static final Country NORTHERNMARIANAISLANDS () { return (Country)termMap.get(Country.uuidNorthernMarianaIslands );}
|
488
|
public static final Country NORWAYKINGDOMOF () { return (Country)termMap.get(Country.uuidNorwayKingdomof );}
|
489
|
public static final Country OMANSULTANATEOF () { return (Country)termMap.get(Country.uuidOmanSultanateof );}
|
490
|
public static final Country PAKISTANISLAMICREPUBLICOF () { return (Country)termMap.get(Country.uuidPakistanIslamicRepublicof );}
|
491
|
public static final Country PALAU () { return (Country)termMap.get(Country.uuidPalau );}
|
492
|
public static final Country PALESTINIANTERRITORYOCCUPIED () { return (Country)termMap.get(Country.uuidPalestinianTerritoryOccupied );}
|
493
|
public static final Country PANAMAREPUBLICOF () { return (Country)termMap.get(Country.uuidPanamaRepublicof );}
|
494
|
public static final Country PAPUANEWGUINEA () { return (Country)termMap.get(Country.uuidPapuaNewGuinea );}
|
495
|
public static final Country PARAGUAYREPUBLICOF () { return (Country)termMap.get(Country.uuidParaguayRepublicof );}
|
496
|
public static final Country PERUREPUBLICOF () { return (Country)termMap.get(Country.uuidPeruRepublicof );}
|
497
|
public static final Country PHILIPPINESREPUBLICOFTHE () { return (Country)termMap.get(Country.uuidPhilippinesRepublicofthe );}
|
498
|
public static final Country PITCAIRNISLAND () { return (Country)termMap.get(Country.uuidPitcairnIsland );}
|
499
|
public static final Country POLANDPOLISHPEOPLESREPUBLIC () { return (Country)termMap.get(Country.uuidPolandPolishPeoplesRepublic );}
|
500
|
public static final Country PORTUGALPORTUGUESEREPUBLIC () { return (Country)termMap.get(Country.uuidPortugalPortugueseRepublic );}
|
501
|
public static final Country PUERTORICO () { return (Country)termMap.get(Country.uuidPuertoRico );}
|
502
|
public static final Country QATARSTATEOF () { return (Country)termMap.get(Country.uuidQatarStateof );}
|
503
|
public static final Country REUNION () { return (Country)termMap.get(Country.uuidReunion );}
|
504
|
public static final Country ROMANIASOCIALISTREPUBLICOF () { return (Country)termMap.get(Country.uuidRomaniaSocialistRepublicof );}
|
505
|
public static final Country RUSSIANFEDERATION () { return (Country)termMap.get(Country.uuidRussianFederation );}
|
506
|
public static final Country RWANDARWANDESEREPUBLIC () { return (Country)termMap.get(Country.uuidRwandaRwandeseRepublic );}
|
507
|
public static final Country STHELENA () { return (Country)termMap.get(Country.uuidStHelena );}
|
508
|
public static final Country STKITTSANDNEVIS () { return (Country)termMap.get(Country.uuidStKittsandNevis );}
|
509
|
public static final Country STLUCIA () { return (Country)termMap.get(Country.uuidStLucia );}
|
510
|
public static final Country STPIERREANDMIQUELON () { return (Country)termMap.get(Country.uuidStPierreandMiquelon );}
|
511
|
public static final Country STVINCENTANDTHEGRENADINES () { return (Country)termMap.get(Country.uuidStVincentandtheGrenadines );}
|
512
|
public static final Country SAMOAINDEPENDENTSTATEOF () { return (Country)termMap.get(Country.uuidSamoaIndependentStateof );}
|
513
|
public static final Country SANMARINOREPUBLICOF () { return (Country)termMap.get(Country.uuidSanMarinoRepublicof );}
|
514
|
public static final Country SAOTOMEANDPRINCIPEDEMOCRATICREPUBLICOF () { return (Country)termMap.get(Country.uuidSaoTomeandPrincipeDemocraticRepublicof );}
|
515
|
public static final Country SAUDIARABIAKINGDOMOF () { return (Country)termMap.get(Country.uuidSaudiArabiaKingdomof );}
|
516
|
public static final Country SENEGALREPUBLICOF () { return (Country)termMap.get(Country.uuidSenegalRepublicof );}
|
517
|
public static final Country SERBIAANDMONTENEGRO () { return (Country)termMap.get(Country.uuidSerbiaandMontenegro );}
|
518
|
public static final Country SEYCHELLESREPUBLICOF () { return (Country)termMap.get(Country.uuidSeychellesRepublicof );}
|
519
|
public static final Country SIERRALEONEREPUBLICOF () { return (Country)termMap.get(Country.uuidSierraLeoneRepublicof );}
|
520
|
public static final Country SINGAPOREREPUBLICOF () { return (Country)termMap.get(Country.uuidSingaporeRepublicof );}
|
521
|
public static final Country SLOVAKIA () { return (Country)termMap.get(Country.uuidSlovakia );}
|
522
|
public static final Country SLOVENIA () { return (Country)termMap.get(Country.uuidSlovenia );}
|
523
|
public static final Country SOLOMONISLANDS () { return (Country)termMap.get(Country.uuidSolomonIslands );}
|
524
|
public static final Country SOMALIASOMALIREPUBLIC () { return (Country)termMap.get(Country.uuidSomaliaSomaliRepublic );}
|
525
|
public static final Country SOUTHAFRICAREPUBLICOF () { return (Country)termMap.get(Country.uuidSouthAfricaRepublicof );}
|
526
|
public static final Country SOUTHGEORGIAANDTHESOUTHSANDWICHISLANDS () { return (Country)termMap.get(Country.uuidSouthGeorgiaandtheSouthSandwichIslands );}
|
527
|
public static final Country SPAINSPANISHSTATE () { return (Country)termMap.get(Country.uuidSpainSpanishState );}
|
528
|
public static final Country SRILANKADEMOCRATICSOCIALISTREPUBLICOF () { return (Country)termMap.get(Country.uuidSriLankaDemocraticSocialistRepublicof );}
|
529
|
public static final Country SUDANDEMOCRATICREPUBLICOFTHE () { return (Country)termMap.get(Country.uuidSudanDemocraticRepublicofthe );}
|
530
|
public static final Country SURINAMEREPUBLICOF () { return (Country)termMap.get(Country.uuidSurinameRepublicof );}
|
531
|
public static final Country SVALBARDJANMAYENISLANDS () { return (Country)termMap.get(Country.uuidSvalbardJanMayenIslands );}
|
532
|
public static final Country SWAZILANDKINGDOMOF () { return (Country)termMap.get(Country.uuidSwazilandKingdomof );}
|
533
|
public static final Country SWEDENKINGDOMOF () { return (Country)termMap.get(Country.uuidSwedenKingdomof );}
|
534
|
public static final Country SWITZERLANDSWISSCONFEDERATION () { return (Country)termMap.get(Country.uuidSwitzerlandSwissConfederation );}
|
535
|
public static final Country SYRIANARABREPUBLIC () { return (Country)termMap.get(Country.uuidSyrianArabRepublic );}
|
536
|
public static final Country TAIWANPROVINCEOFCHINA () { return (Country)termMap.get(Country.uuidTaiwanProvinceofChina );}
|
537
|
public static final Country TAJIKISTAN () { return (Country)termMap.get(Country.uuidTajikistan );}
|
538
|
public static final Country TANZANIAUNITEDREPUBLICOF () { return (Country)termMap.get(Country.uuidTanzaniaUnitedRepublicof );}
|
539
|
public static final Country THAILANDKINGDOMOF () { return (Country)termMap.get(Country.uuidThailandKingdomof );}
|
540
|
public static final Country TIMORLESTEDEMOCRATICREPUBLICOF () { return (Country)termMap.get(Country.uuidTimorLesteDemocraticRepublicof );}
|
541
|
public static final Country TOGOTOGOLESEREPUBLIC () { return (Country)termMap.get(Country.uuidTogoTogoleseRepublic );}
|
542
|
public static final Country TOKELAUISLANDS () { return (Country)termMap.get(Country.uuidTokelauIslands );}
|
543
|
public static final Country TONGAKINGDOMOF () { return (Country)termMap.get(Country.uuidTongaKingdomof );}
|
544
|
public static final Country TRINIDADANDTOBAGOREPUBLICOF () { return (Country)termMap.get(Country.uuidTrinidadandTobagoRepublicof );}
|
545
|
public static final Country TUNISIAREPUBLICOF () { return (Country)termMap.get(Country.uuidTunisiaRepublicof );}
|
546
|
public static final Country TURKEYREPUBLICOF () { return (Country)termMap.get(Country.uuidTurkeyRepublicof );}
|
547
|
public static final Country TURKMENISTAN () { return (Country)termMap.get(Country.uuidTurkmenistan );}
|
548
|
public static final Country TURKSANDCAICOSISLANDS () { return (Country)termMap.get(Country.uuidTurksandCaicosIslands );}
|
549
|
public static final Country TUVALU () { return (Country)termMap.get(Country.uuidTuvalu );}
|
550
|
public static final Country USVIRGINISLANDS () { return (Country)termMap.get(Country.uuidUSVirginIslands );}
|
551
|
public static final Country UGANDAREPUBLICOF () { return (Country)termMap.get(Country.uuidUgandaRepublicof );}
|
552
|
public static final Country UKRAINE () { return (Country)termMap.get(Country.uuidUkraine );}
|
553
|
public static final Country UNITEDARABEMIRATES () { return (Country)termMap.get(Country.uuidUnitedArabEmirates );}
|
554
|
public static final Country UNITEDKINGDOMOFGREATBRITAINANDNORTHERNIRELAND () { return (Country)termMap.get(Country.uuidUnitedKingdomofGreatBritainAndNorthernIreland );}
|
555
|
public static final Country UNITEDSTATESMINOROUTLYINGISLANDS () { return (Country)termMap.get(Country.uuidUnitedStatesMinorOutlyingIslands );}
|
556
|
public static final Country UNITEDSTATESOFAMERICA () { return (Country)termMap.get(Country.uuidUnitedStatesofAmerica );}
|
557
|
public static final Country URUGUAYEASTERNREPUBLICOF () { return (Country)termMap.get(Country.uuidUruguayEasternRepublicof );}
|
558
|
public static final Country UZBEKISTAN () { return (Country)termMap.get(Country.uuidUzbekistan );}
|
559
|
public static final Country VANUATU () { return (Country)termMap.get(Country.uuidVanuatu );}
|
560
|
public static final Country VENEZUELABOLIVARIANREPUBLICOF () { return (Country)termMap.get(Country.uuidVenezuelaBolivarianRepublicof );}
|
561
|
public static final Country VIETNAMSOCIALISTREPUBLICOF () { return (Country)termMap.get(Country.uuidVietNamSocialistRepublicof );}
|
562
|
public static final Country WALLISANDFUTUNAISLANDS () { return (Country)termMap.get(Country.uuidWallisandFutunaIslands );}
|
563
|
public static final Country WESTERNSAHARA () { return (Country)termMap.get(Country.uuidWesternSahara );}
|
564
|
public static final Country YEMEN () { return (Country)termMap.get(Country.uuidYemen );}
|
565
|
public static final Country ZAMBIAREPUBLICOF () { return (Country)termMap.get(Country.uuidZambiaRepublicof );}
|
566
|
public static final Country ZIMBABWE () { return (Country)termMap.get(Country.uuidZimbabwe );}
|
567
|
|
568
|
|
569
|
//****************** FACTORY METHODS ******************************/
|
570
|
|
571
|
/**
|
572
|
* Factory method
|
573
|
* @return
|
574
|
*/
|
575
|
public static Country NewInstance(){
|
576
|
return new Country();
|
577
|
}
|
578
|
|
579
|
|
580
|
/**
|
581
|
* Factory method
|
582
|
* @return
|
583
|
*/
|
584
|
public static Country NewInstance(String term, String label, String labelAbbrev){
|
585
|
return new Country(term, label, labelAbbrev);
|
586
|
}
|
587
|
|
588
|
//********************************** Constructor *********************************/
|
589
|
|
590
|
//for hibernate use only
|
591
|
@Deprecated
|
592
|
protected Country() {
|
593
|
}
|
594
|
private Country(String term, String label, String labelAbbrev) {
|
595
|
super(term, label, labelAbbrev);
|
596
|
}
|
597
|
|
598
|
//***************************** METHODS *****************************************/
|
599
|
|
600
|
public Set<NamedArea> getContinents() {
|
601
|
return continents;
|
602
|
}
|
603
|
|
604
|
public void addContinent(NamedArea continent) {
|
605
|
this.continents.add(continent);
|
606
|
}
|
607
|
|
608
|
public void removeContinent(NamedArea continent) {
|
609
|
this.continents.remove(continent);
|
610
|
}
|
611
|
|
612
|
/**
|
613
|
* Get 2 character ISO 3166 Country code
|
614
|
* @return a String representation of the ISO 3166 code
|
615
|
*/
|
616
|
public String getIso3166_A2(){
|
617
|
return iso3166_A2;
|
618
|
}
|
619
|
|
620
|
/**
|
621
|
* Set 2 character ISO 3166 Country code
|
622
|
* @param iso3166_A2 a String representation of the ISO 3166 code
|
623
|
*/
|
624
|
public void setIso3166_A2(String iso3166_A2){
|
625
|
this.iso3166_A2 = iso3166_A2;
|
626
|
}
|
627
|
|
628
|
@Override
|
629
|
public NamedArea readCsvLine(Class<NamedArea> termClass, List<String> csvLine, Map<UUID,DefinedTermBase> terms, boolean abbrevAsId) {
|
630
|
try {
|
631
|
Language lang= Language.DEFAULT();
|
632
|
Country newInstance = Country.class.newInstance();
|
633
|
newInstance.setUuid(UUID.fromString(csvLine.get(0)));
|
634
|
newInstance.setUri(URI.create(csvLine.get(1)));
|
635
|
String label = csvLine.get(3).trim();
|
636
|
String text = csvLine.get(3).trim();
|
637
|
String abbreviatedLabel = csvLine.get(2);
|
638
|
newInstance.addRepresentation(Representation.NewInstance(text, label, abbreviatedLabel, lang) );
|
639
|
newInstance.setLevel(NamedAreaLevel.COUNTRY());
|
640
|
|
641
|
// iso codes extra
|
642
|
newInstance.setIso3166_A2(csvLine.get(4).trim());
|
643
|
newInstance.setIdInVocabulary(abbreviatedLabel);
|
644
|
|
645
|
|
646
|
String[] continentList;
|
647
|
String tmp = csvLine.get(5).trim();
|
648
|
if (tmp.length()>2){
|
649
|
tmp=tmp.substring(1, tmp.length()-1);
|
650
|
|
651
|
continentList=tmp.split(",");
|
652
|
for (String continentStr : continentList){
|
653
|
logger.debug("continent: "+ continentStr);
|
654
|
UUID uuidContinent = UUID.fromString(continentStr);
|
655
|
NamedArea continent = NamedArea.getContinentByUuid(uuidContinent);
|
656
|
//old version: but this is null if you use the new termloading mechanism which does not hold
|
657
|
//ALL terms in the terms set:
|
658
|
//NamedArea continent = (NamedArea)terms.get(uuidContinent)
|
659
|
if (continent == null){
|
660
|
throw new RuntimeException("Continent referenced by a country could not be found: " + continentStr);
|
661
|
}
|
662
|
newInstance.addContinent(continent);
|
663
|
}
|
664
|
}
|
665
|
return newInstance;
|
666
|
} catch (Exception e) {
|
667
|
// TODO Auto-generated catch block
|
668
|
e.printStackTrace();
|
669
|
}
|
670
|
return null;
|
671
|
}
|
672
|
|
673
|
public void writeCsvLine(CSVWriter writer) {
|
674
|
String [] line = new String[6];
|
675
|
line[0] = getUuid().toString();
|
676
|
line[1] = getUri().toString();
|
677
|
line[2] = getLabel(Language.CSV_LANGUAGE());
|
678
|
line[3] = getDescription();
|
679
|
line[4] = this.getIso3166_A2().toString();
|
680
|
line[5] = this.getContinents().toString();
|
681
|
writer.writeNext(line);
|
682
|
}
|
683
|
|
684
|
public static boolean isCountryLabel(String label) {
|
685
|
if (labelMap.containsKey(label)){
|
686
|
return true;
|
687
|
}else{
|
688
|
return false;
|
689
|
}
|
690
|
}
|
691
|
|
692
|
|
693
|
|
694
|
//************************** METHODS ********************************
|
695
|
|
696
|
|
697
|
private static void initMaps(){
|
698
|
labelMap = new HashMap<String, UUID>();
|
699
|
termMap = new HashMap<UUID, NamedArea>();
|
700
|
isoA2Map = new HashMap<String, UUID>();
|
701
|
}
|
702
|
|
703
|
/**
|
704
|
* FIXME This class should really be refactored into an interface and service implementation,
|
705
|
* relying on TermVocabularyDao / service (Ben)
|
706
|
* @param tdwgLabel
|
707
|
* @return
|
708
|
*/
|
709
|
public static Country getCountryByLabel(String label) {
|
710
|
if (labelMap == null){
|
711
|
initMaps();
|
712
|
}
|
713
|
UUID uuid = labelMap.get(label);
|
714
|
if (uuid == null){
|
715
|
logger.info("Unknown country: " + CdmUtils.Nz(label));
|
716
|
return null;
|
717
|
}
|
718
|
return (Country)termMap.get(uuid);
|
719
|
}
|
720
|
|
721
|
public static Country getCountryByIso3166A2(String isoA2) {
|
722
|
if (isoA2Map == null){
|
723
|
initMaps();
|
724
|
}
|
725
|
UUID uuid = isoA2Map.get(isoA2);
|
726
|
if (uuid == null){
|
727
|
logger.info("Unknown country: " + CdmUtils.Nz(isoA2));
|
728
|
return null;
|
729
|
}
|
730
|
return (Country)termMap.get(uuid);
|
731
|
}
|
732
|
|
733
|
|
734
|
/* (non-Javadoc)
|
735
|
* @see eu.etaxonomy.cdm.model.common.DefinedTermBase#resetTerms()
|
736
|
*/
|
737
|
@Override
|
738
|
public void resetTerms(){
|
739
|
termMap = null;
|
740
|
labelMap = null;
|
741
|
}
|
742
|
|
743
|
|
744
|
|
745
|
@Override
|
746
|
protected void setDefaultTerms(TermVocabulary<NamedArea> termVocabulary) {
|
747
|
initMaps();
|
748
|
for (NamedArea term : termVocabulary.getTerms()){
|
749
|
termMap.put(term.getUuid(), term); //TODO casting
|
750
|
}
|
751
|
for (NamedArea term : termVocabulary.getTerms()){
|
752
|
labelMap.put(term.getLabel(), term.getUuid());
|
753
|
}
|
754
|
for (NamedArea term : termVocabulary.getTerms()){
|
755
|
Country country = CdmBase.deproxy(term, Country.class);
|
756
|
isoA2Map.put(country.getIso3166_A2(), term.getUuid());
|
757
|
}
|
758
|
|
759
|
}
|
760
|
|
761
|
|
762
|
}
|