3 * Copyright (C) 2009 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.io
.pesi
.out
;
12 import java
.util
.UUID
;
14 import org
.apache
.log4j
.Logger
;
16 import eu
.etaxonomy
.cdm
.io
.erms
.ErmsTransformer
;
17 import eu
.etaxonomy
.cdm
.model
.common
.CdmBase
;
18 import eu
.etaxonomy
.cdm
.model
.common
.ExtensionType
;
19 import eu
.etaxonomy
.cdm
.model
.common
.Language
;
20 import eu
.etaxonomy
.cdm
.model
.common
.RelationshipBase
;
21 import eu
.etaxonomy
.cdm
.model
.common
.RelationshipTermBase
;
22 import eu
.etaxonomy
.cdm
.model
.description
.AbsenceTerm
;
23 import eu
.etaxonomy
.cdm
.model
.description
.Feature
;
24 import eu
.etaxonomy
.cdm
.model
.description
.PresenceAbsenceTermBase
;
25 import eu
.etaxonomy
.cdm
.model
.description
.PresenceTerm
;
26 import eu
.etaxonomy
.cdm
.model
.location
.NamedArea
;
27 import eu
.etaxonomy
.cdm
.model
.location
.TdwgArea
;
28 import eu
.etaxonomy
.cdm
.model
.name
.BacterialName
;
29 import eu
.etaxonomy
.cdm
.model
.name
.BotanicalName
;
30 import eu
.etaxonomy
.cdm
.model
.name
.NameRelationshipType
;
31 import eu
.etaxonomy
.cdm
.model
.name
.NameTypeDesignationStatus
;
32 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalCode
;
33 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalStatusType
;
34 import eu
.etaxonomy
.cdm
.model
.name
.Rank
;
35 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
36 import eu
.etaxonomy
.cdm
.model
.name
.ZoologicalName
;
37 import eu
.etaxonomy
.cdm
.model
.occurrence
.Fossil
;
38 import eu
.etaxonomy
.cdm
.model
.reference
.ReferenceBase
;
39 import eu
.etaxonomy
.cdm
.model
.reference
.ReferenceType
;
40 import eu
.etaxonomy
.cdm
.model
.taxon
.Synonym
;
41 import eu
.etaxonomy
.cdm
.model
.taxon
.SynonymRelationshipType
;
42 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
43 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
44 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonRelationshipType
;
45 import eu
.etaxonomy
.cdm
.strategy
.exceptions
.UnknownCdmTypeException
;
52 public final class PesiTransformer
{
53 private static final Logger logger
= Logger
.getLogger(PesiTransformer
.class);
55 public static final UUID cacheCitationUuid
= UUID
.fromString("29656168-32d6-4301-9067-d57c63be5c67");
56 public static final UUID expertUserIdUuid
= UUID
.fromString("e25813d3-c67c-4585-9aa0-970fafde50b4");
57 public static final UUID speciesExpertUserIdUuid
= UUID
.fromString("6d42abd8-8894-4980-ae07-e918affd4172");
58 public static final UUID expertNameUuid
= UUID
.fromString("24becb79-a90c-47d3-be35-efc87bb48fd3");
59 public static final UUID speciesExpertNameUuid
= UUID
.fromString("2e8153d2-7412-49e4-87e1-5c38f4c5153a");
60 public static final UUID lastActionDateUuid
= UUID
.fromString("8d0a7d81-bb83-4576-84c3-8c906ef039b2");
61 public static final UUID lastActionUuid
= UUID
.fromString("bc20d5bc-6161-4279-9499-89ea26ce5f6a");
62 public static final UUID taxCommentUuid
= UUID
.fromString("8041a752-0479-4626-ab1b-b266b751f816");
63 public static final UUID fauCommentUuid
= UUID
.fromString("054f773a-41c8-4ad5-83e3-981320c1c126");
64 public static final UUID fauExtraCodesUuid
= UUID
.fromString("b8c7e77d-9869-4787-bed6-b4b302dbc5f5");
67 public static int REF_ARTICLE_IN_PERIODICAL
= 1;
68 public static int REF_PART_OF_OTHER
= 2;
69 public static int REF_BOOK
= 3;
70 public static int REF_DATABASE
= 4;
71 public static int REF_INFORMAL
= 5;
72 public static int REF_NOT_APPLICABLE
= 6;
73 public static int REF_WEBSITE
= 7;
74 public static int REF_PUBLISHED
= 8;
75 public static int REF_JOURNAL
= 9;
76 public static int REF_UNRESOLVED
= 10;
77 public static int REF_PUBLICATION
= 11;
79 public static String REF_STR_ARTICLE_IN_PERIODICAL
= "Article in periodical";
80 public static String REF_STR_PART_OF_OTHER
= "Part of other";
81 public static String REF_STR_BOOK
= "Book";
82 public static String REF_STR_DATABASE
= "Database";
83 public static String REF_STR_INFORMAL
= "Informal";
84 public static String REF_STR_NOT_APPLICABLE
= "Not applicable";
85 public static String REF_STR_WEBSITE
= "Website";
86 public static String REF_STR_PUBLISHED
= "Published";
87 public static String REF_STR_JOURNAL
= "Journal";
88 public static String REF_STR_UNRESOLVED
= "Unresolved";
89 public static String REF_STR_PUBLICATION
= "Publication";
92 public static int NAME_ST_NOM_INVAL
= 1;
93 public static int NAME_ST_NOM_ILLEG
= 2;
94 public static int NAME_ST_NOM_NUD
= 3;
95 public static int NAME_ST_NOM_REJ
= 4;
96 public static int NAME_ST_NOM_REJ_PROP
= 5;
97 public static int NAME_ST_NOM_UTIQUE_REJ
= 6;
98 public static int NAME_ST_NOM_UTIQUE_REJ_PROP
= 7;
99 public static int NAME_ST_NOM_CONS
= 8;
100 public static int NAME_ST_NOM_CONS_PROP
= 9;
101 public static int NAME_ST_ORTH_CONS
= 10;
102 public static int NAME_ST_ORTH_CONS_PROP
= 11;
103 public static int NAME_ST_NOM_SUPERFL
= 12;
104 public static int NAME_ST_NOM_AMBIG
= 13;
105 public static int NAME_ST_NOM_PROVIS
= 14;
106 public static int NAME_ST_NOM_DUB
= 15;
107 public static int NAME_ST_NOM_NOV
= 16;
108 public static int NAME_ST_NOM_CONFUS
= 17;
109 public static int NAME_ST_NOM_ALTERN
= 18;
110 public static int NAME_ST_COMB_INVAL
= 19;
111 public static int NAME_ST_LEGITIMATE
= 20; // PESI specific from here
112 public static int NAME_ST_COMB_INED
= 21;
113 public static int NAME_ST_COMB_AND_STAT_INED
= 22;
114 public static int NAME_ST_NOM_AND_ORTH_CONS
= 23;
115 public static int NAME_ST_NOM_NOV_INED
= 24;
116 public static int NAME_ST_SP_NOV_INED
= 25;
117 public static int NAME_ST_ALTERNATE_REPRESENTATION
= 26;
118 public static int NAME_ST_TEMPORARY_NAME
= 27;
119 public static int NAME_ST_SPECIES_INQUIRENDA
= 28;
121 public static String NAME_ST_STR_NOM_INVAL
= "Nom. Inval.";
122 public static String NAME_ST_STR_NOM_ILLEG
= "Nom. Illeg.";
123 public static String NAME_ST_STR_NOM_NUD
= "Nom. Nud.";
124 public static String NAME_ST_STR_NOM_REJ
= "Nom. Rej.";
125 public static String NAME_ST_STR_NOM_REJ_PROP
= "Nom. Rej. Prop.";
126 public static String NAME_ST_STR_NOM_UTIQUE_REJ
= "Nom. Utique Rej.";
127 public static String NAME_ST_STR_NOM_UTIQUE_REJ_PROP
= "Nom. Utique Rej. Prop.";
128 public static String NAME_ST_STR_NOM_CONS
= "Nom. Cons.";
129 public static String NAME_ST_STR_NOM_CONS_PROP
= "Nom. Cons. Prop.";
130 public static String NAME_ST_STR_ORTH_CONS
= "Orth. Cons.";
131 public static String NAME_ST_STR_ORTH_CONS_PROP
= "Orth. Cons. Prop.";
132 public static String NAME_ST_STR_NOM_SUPERFL
= "Nom. Superfl.";
133 public static String NAME_ST_STR_NOM_AMBIG
= "Nom. Ambig.";
134 public static String NAME_ST_STR_NOM_PROVIS
= "Nom. Provis.";
135 public static String NAME_ST_STR_NOM_DUB
= "Nom. Dub.";
136 public static String NAME_ST_STR_NOM_NOV
= "Nom. Nov.";
137 public static String NAME_ST_STR_NOM_CONFUS
= "Nom. Confus.";
138 public static String NAME_ST_STR_NOM_ALTERN
= "Nom. Altern.";
139 public static String NAME_ST_STR_COMB_INVAL
= "Comb. Inval.";
140 public static String NAME_ST_STR_LEGITIMATE
= "Legitim";
141 public static String NAME_ST_STR_COMB_INED
= "Comb. Ined."; // PESI specific from here
142 public static String NAME_ST_STR_COMB_AND_STAT_INED
= "Comb. & Stat. Ined.";
143 public static String NAME_ST_STR_NOM_AND_ORTH_CONS
= "Nom. & Orth. Cons.";
144 public static String NAME_ST_STR_NOM_NOV_INED
= "Nom. Nov. Ined.";
145 public static String NAME_ST_STR_SP_NOV_INED
= "Sp. Nov. Ined.";
146 public static String NAME_ST_STR_ALTERNATE_REPRESENTATION
= "Alternate Representation";
147 public static String NAME_ST_STR_TEMPORARY_NAME
= "Temporary Name";
148 public static String NAME_ST_STR_SPECIES_INQUIRENDA
= "Species Inquirenda";
151 public static int T_STATUS_ACCEPTED
= 1;
152 public static int T_STATUS_SYNONYM
= 2;
153 public static int T_STATUS_PARTIAL_SYN
= 3;
154 public static int T_STATUS_PRO_PARTE_SYN
= 4;
155 public static int T_STATUS_UNRESOLVED
= 5;
156 public static int T_STATUS_ORPHANED
= 6;
158 public static String T_STATUS_STR_ACCEPTED
= "Accepted";
159 public static String T_STATUS_STR_SYNONYM
= "Synonym";
160 public static String T_STATUS_STR_PARTIAL_SYN
= "Partial Synonym";
161 public static String T_STATUS_STR_PRO_PARTE_SYN
= "Pro Parte Synonym";
162 public static String T_STATUS_STR_UNRESOLVED
= "Unresolved";
163 public static String T_STATUS_STR_ORPHANED
= "Orphaned";
165 // TypeDesginationStatus
166 public static int TYPE_BY_ORIGINAL_DESIGNATION
= 1;
167 public static int TYPE_BY_SUBSEQUENT_DESIGNATION
= 2;
168 public static int TYPE_BY_MONOTYPY
= 3;
170 public static String TYPE_STR_BY_ORIGINAL_DESIGNATION
= "Type by original designation";
171 public static String TYPE_STR_BY_SUBSEQUENT_DESIGNATION
= "Type by subsequent designation";
172 public static String TYPE_STR_BY_MONOTYPY
= "Type by monotypy";
175 public static int IS_BASIONYM_FOR
= 1;
176 public static int IS_LATER_HOMONYM_OF
= 2;
177 public static int IS_REPLACED_SYNONYM_FOR
= 3;
178 public static int IS_VALIDATION_OF
= 4;
179 public static int IS_LATER_VALIDATION_OF
= 5;
180 public static int IS_TYPE_OF
= 6;
181 public static int IS_CONSERVED_TYPE_OF
= 7;
182 public static int IS_REJECTED_TYPE_OF
= 8;
183 public static int IS_FIRST_PARENT_OF
= 9;
184 public static int IS_SECOND_PARENT_OF
= 10;
185 public static int IS_FEMALE_PARENT_OF
= 11;
186 public static int IS_MALE_PARENT_OF
= 12;
187 public static int IS_CONSERVED_AGAINST
= 13;
188 public static int IS_REJECTED_IN_FAVOUR_OF
= 14;
189 public static int IS_TREATED_AS_LATER_HOMONYM_OF
= 15;
190 public static int IS_ORTHOGRAPHIC_VARIANT_OF
= 16;
191 public static int IS_ALTERNATIVE_NAME_FOR
= 17;
192 public static int HAS_SAME_TYPE_AS
= 18;
193 public static int IS_LECTOTYPE_OF
= 61;
194 public static int TYPE_NOT_DESIGNATED
= 62;
195 public static int IS_TAXONOMICALLY_INCLUDED_IN
= 101;
196 public static int IS_SYNONYM_OF
= 102;
197 public static int IS_MISAPPLIED_NAME_FOR
= 103;
198 public static int IS_PRO_PARTE_SYNONYM_OF
= 104;
199 public static int IS_PARTIAL_SYNONYM_OF
= 105;
200 public static int IS_HETEROTYPIC_SYNONYM_OF
= 106;
201 public static int IS_HOMOTYPIC_SYNONYM_OF
= 107;
202 public static int IS_PRO_PARTE_AND_HOMOTYPIC_SYNONYM_OF
= 201;
203 public static int IS_PRO_PARTE_AND_HETEROTYPIC_SYNONYM_OF
= 202;
204 public static int IS_PARTIAL_AND_HOMOTYPIC_SYNONYM_OF
= 203;
205 public static int IS_PARTIAL_AND_HETEROTYPIC_SYNONYM_OF
= 204;
206 public static int IS_INFERRED_EPITHET_FOR
= 301;
207 public static int IS_INFERRED_GENUS_FOR
= 302;
208 public static int IS_POTENTIAL_COMBINATION_FOR
= 303;
210 public static String STR_IS_BASIONYM_FOR
= "is basionym for";
211 public static String STR_IS_LATER_HOMONYM_OF
= "is later homonym of";
212 public static String STR_IS_REPLACED_SYNONYM_FOR
= "is replaced synonym for";
213 public static String STR_IS_VALIDATION_OF
= "is validation of";
214 public static String STR_IS_LATER_VALIDATION_OF
= "is later validation of";
215 public static String STR_IS_TYPE_OF
= "is type of";
216 public static String STR_IS_CONSERVED_TYPE_OF
= "is conserved type of";
217 public static String STR_IS_REJECTED_TYPE_OF
= "is rejected type of";
218 public static String STR_IS_FIRST_PARENT_OF
= "is first parent of";
219 public static String STR_IS_SECOND_PARENT_OF
= "is second parent of";
220 public static String STR_IS_FEMALE_PARENT_OF
= "is female parent of";
221 public static String STR_IS_MALE_PARENT_OF
= "is male parent of";
222 public static String STR_IS_CONSERVED_AGAINST
= "is conserved against";
223 public static String STR_IS_REJECTED_IN_FAVOUR_OF
= "is rejected in favour of";
224 public static String STR_IS_TREATED_AS_LATER_HOMONYM_OF
= "is treated as later homonym of";
225 public static String STR_IS_ORTHOGRAPHIC_VARIANT_OF
= "is orthographic variant of";
226 public static String STR_IS_ALTERNATIVE_NAME_FOR
= "is alternative name for";
227 public static String STR_HAS_SAME_TYPE_AS
= "has same type as";
228 public static String STR_IS_LECTOTYPE_OF
= "is lectotype of";
229 public static String STR_TYPE_NOT_DESIGNATED
= "type not designated";
230 public static String STR_IS_TAXONOMICALLY_INCLUDED_IN
= "is taxonomically included in";
231 public static String STR_IS_SYNONYM_OF
= "is synonym of";
232 public static String STR_IS_MISAPPLIED_NAME_FOR
= "is misapplied name for";
233 public static String STR_IS_PRO_PARTE_SYNONYM_OF
= "is pro parte synonym of";
234 public static String STR_IS_PARTIAL_SYNONYM_OF
= "is partial synonym of";
235 public static String STR_IS_HETEROTYPIC_SYNONYM_OF
= "is heterotypic synonym of";
236 public static String STR_IS_HOMOTYPIC_SYNONYM_OF
= "is homotypic synonym of";
237 public static String STR_IS_PRO_PARTE_AND_HOMOTYPIC_SYNONYM_OF
= "is pro parte and homotypic synonym of";
238 public static String STR_IS_PRO_PARTE_AND_HETEROTYPIC_SYNONYM_OF
= "is pro parte and heterotypic synonym of";
239 public static String STR_IS_PARTIAL_AND_HOMOTYPIC_SYNONYM_OF
= "is partial and homotypic synonym of";
240 public static String STR_IS_PARTIAL_AND_HETEROTYPIC_SYNONYM_OF
= "is partial and heterotypic synonym of";
241 public static String STR_IS_INFERRED_EPITHET_FOR
= "is inferred epithet for";
242 public static String STR_IS_INFERRED_GENUS_FOR
= "is inferred genus for";
243 public static String STR_IS_POTENTIAL_COMBINATION_FOR
= "is potential combination for";
246 public static int KINGDOM_NULL
= 0;
247 public static int KINGDOM_ANIMALIA
= 2;
248 public static int KINGDOM_PLANTAE
= 3;
249 public static int KINGDOM_FUNGI
= 4;
250 public static int KINGDOM_PROTOZOA
= 5;
251 public static int KINGDOM_BACTERIA
= 6;
252 public static int KINGDOM_CHROMISTA
= 7;
255 public static int Animalia_Kingdom
= 10;
256 public static int Animalia_Subkingdom
= 20;
257 public static int Animalia_Superphylum
= 23;
258 public static int Animalia_Phylum
= 30;
259 public static int Animalia_Subphylum
= 40;
260 public static int Animalia_Infraphylum
= 45;
261 public static int Animalia_Superclass
= 50;
262 public static int Animalia_Class
= 60;
263 public static int Animalia_Subclass
= 70;
264 public static int Animalia_Infraclass
= 80;
265 public static int Animalia_Superorder
= 90;
266 public static int Animalia_Order
= 100;
267 public static int Animalia_Suborder
= 110;
268 public static int Animalia_Infraorder
= 120;
269 public static int Animalia_Section
= 121;
270 public static int Animalia_Subsection
= 122;
271 public static int Animalia_Superfamily
= 130;
272 public static int Animalia_Family
= 140;
273 public static int Animalia_Subfamily
= 150;
274 public static int Animalia_Tribe
= 160;
275 public static int Animalia_Subtribe
= 170;
276 public static int Animalia_Genus
= 180;
277 public static int Animalia_Subgenus
= 190;
278 public static int Animalia_Species
=220;
279 public static int Animalia_Subspecies
= 230;
280 public static int Animalia_Natio
= 235;
281 public static int Animalia_Variety
= 240;
282 public static int Animalia_Subvariety
= 250;
283 public static int Animalia_Forma
= 260;
285 public static String Animalia_STR_Kingdom
= "Kingdom";
286 public static String Animalia_STR_Subkingdom
= "Subkingdom";
287 public static String Animalia_STR_Superphylum
= "Superphylum";
288 public static String Animalia_STR_Phylum
= "Phylum";
289 public static String Animalia_STR_Subphylum
= "Subphylum";
290 public static String Animalia_STR_Infraphylum
= "Infraphylum";
291 public static String Animalia_STR_Superclass
= "Superclass";
292 public static String Animalia_STR_Class
= "Class";
293 public static String Animalia_STR_Subclass
= "Subclass";
294 public static String Animalia_STR_Infraclass
= "Infraclass";
295 public static String Animalia_STR_Superorder
= "Superorder";
296 public static String Animalia_STR_Order
= "Order";
297 public static String Animalia_STR_Suborder
= "Suborder";
298 public static String Animalia_STR_Infraorder
= "Infraorder";
299 public static String Animalia_STR_Section
= "Section";
300 public static String Animalia_STR_Subsection
= "Subsection";
301 public static String Animalia_STR_Superfamily
= "Superfamily";
302 public static String Animalia_STR_Family
= "Family";
303 public static String Animalia_STR_Subfamily
= "Subfamily";
304 public static String Animalia_STR_Tribe
= "Tribe";
305 public static String Animalia_STR_Subtribe
= "Subtribe";
306 public static String Animalia_STR_Genus
= "Genus";
307 public static String Animalia_STR_Subgenus
= "Subgenus";
308 public static String Animalia_STR_Species
= "Species";
309 public static String Animalia_STR_Subspecies
= "Subspecies";
310 public static String Animalia_STR_Natio
= "Natio";
311 public static String Animalia_STR_Variety
= "Variety";
312 public static String Animalia_STR_Subvariety
= "Subvariety";
313 public static String Animalia_STR_Forma
= "Forma";
315 // Animalia Rank Abbreviations only for used Ranks
316 public static String Animalia_Abbrev_Subgenus
= "subg.";
317 public static String Animalia_Abbrev_Species
= "sp.";
318 public static String Animalia_Abbrev_Subspecies
= "subsp.";
319 public static String Animalia_Abbrev_Variety
= "var.";
320 public static String Animalia_Abbrev_Subvariety
= "subvar.";
321 public static String Animalia_Abbrev_Forma
= "f.";
324 public static int Plantae_Kingdom
= 10;
325 public static int Plantae_Subkingdom
= 20;
326 public static int Plantae_Division
= 30;
327 public static int Plantae_Subdivision
= 40;
328 public static int Plantae_Class
= 60;
329 public static int Plantae_Subclass
= 70;
330 public static int Plantae_Order
= 100;
331 public static int Plantae_Suborder
= 110;
332 public static int Plantae_Family
= 140;
333 public static int Plantae_Subfamily
= 150;
334 public static int Plantae_Tribe
= 160;
335 public static int Plantae_Subtribe
= 170;
336 public static int Plantae_Genus
= 180;
337 public static int Plantae_Subgenus
= 190;
338 public static int Plantae_Section
= 200;
339 public static int Plantae_Subsection
= 210;
340 public static int Plantae_Series
= 212;
341 public static int Plantae_Subseries
= 214;
342 public static int Plantae_Aggregate
= 216;
343 public static int Plantae_Coll_Species
= 218;
344 public static int Plantae_Species
= 220;
345 public static int Plantae_Subspecies
= 230;
346 public static int Plantae_Proles
= 232;
347 public static int Plantae_Race
= 234;
348 public static int Plantae_Convarietas
= 236;
349 public static int Plantae_Variety
= 240;
350 public static int Plantae_Subvariety
= 250;
351 public static int Plantae_Forma
= 260;
352 public static int Plantae_Subforma
= 270;
353 public static int Plantae_Forma_spec
= 275;
354 public static int Plantae_Taxa_infragen
= 280;
355 public static int Plantae_Taxa_infraspec
= 285;
357 public static String Plantae_STR_Kingdom
= "Kingdom";
358 public static String Plantae_STR_Subkingdom
= "Subkingdom";
359 public static String Plantae_STR_Division
= "Division";
360 public static String Plantae_STR_Subdivision
= "Subdivision";
361 public static String Plantae_STR_Class
= "Class";
362 public static String Plantae_STR_Subclass
= "Subclass";
363 public static String Plantae_STR_Order
= "Order";
364 public static String Plantae_STR_Suborder
= "Suborder";
365 public static String Plantae_STR_Family
= "Family";
366 public static String Plantae_STR_Subfamily
= "Subfamily";
367 public static String Plantae_STR_Tribe
= "Tribe";
368 public static String Plantae_STR_Subtribe
= "Subtribe";
369 public static String Plantae_STR_Genus
= "Genus";
370 public static String Plantae_STR_Subgenus
= "Subgenus";
371 public static String Plantae_STR_Section
= "Section";
372 public static String Plantae_STR_Subsection
= "Subsection";
373 public static String Plantae_STR_Series
= "Series";
374 public static String Plantae_STR_Subseries
= "Subseries";
375 public static String Plantae_STR_Aggregate
= "Aggregate";
376 public static String Plantae_STR_Coll_Species
= "Coll. Species";
377 public static String Plantae_STR_Species
= "Species";
378 public static String Plantae_STR_Subspecies
= "Subspecies";
379 public static String Plantae_STR_Proles
= "Proles";
380 public static String Plantae_STR_Race
= "Race";
381 public static String Plantae_STR_Convarietas
= "Convarietas";
382 public static String Plantae_STR_Variety
= "Variety";
383 public static String Plantae_STR_Subvariety
= "Subvariety";
384 public static String Plantae_STR_Forma
= "Forma";
385 public static String Plantae_STR_Subforma
= "Subforma";
386 public static String Plantae_STR_Forma_spec
= "Forma spec.";
387 public static String Plantae_STR_Taxa_infragen
= "Taxa infragen.";
388 public static String Plantae_STR_Taxa_infraspec
= "Taxa infraspec.";
390 // Plantae Rank Abbreviations
391 public static String Plantae_Abbrev_Kingdom
= "reg.";
392 public static String Plantae_Abbrev_Subkingdom
= "subreg.";
393 public static String Plantae_Abbrev_Division
= "div.";
394 public static String Plantae_Abbrev_Subdivision
= "subdiv.";
395 public static String Plantae_Abbrev_Class
= "cl.";
396 public static String Plantae_Abbrev_Subclass
= "subcl.";
397 public static String Plantae_Abbrev_Order
= "ordo";
398 public static String Plantae_Abbrev_Suborder
= "subor.";
399 public static String Plantae_Abbrev_Family
= "fam.";
400 public static String Plantae_Abbrev_Subfamily
= "subfam.";
401 public static String Plantae_Abbrev_Tribe
= "trib.";
402 public static String Plantae_Abbrev_Subtribe
= "subtrib.";
403 public static String Plantae_Abbrev_Genus
= "gen.";
404 public static String Plantae_Abbrev_Subgenus
= "subg.";
405 public static String Plantae_Abbrev_Section
= "sect.";
406 public static String Plantae_Abbrev_Subsection
= "subsect.";
407 public static String Plantae_Abbrev_Series
= "ser.";
408 public static String Plantae_Abbrev_Subseries
= "subser.";
409 public static String Plantae_Abbrev_Aggregate
= "aggr.";
410 public static String Plantae_Abbrev_Coll_Species
= "coll. sp.";
411 public static String Plantae_Abbrev_Species
= "sp.";
412 public static String Plantae_Abbrev_Subspecies
= "subsp.";
413 public static String Plantae_Abbrev_Proles
= "prol.";
414 public static String Plantae_Abbrev_Race
= "race";
415 public static String Plantae_Abbrev_Convarietas
= "convar.";
416 public static String Plantae_Abbrev_Variety
= "var.";
417 public static String Plantae_Abbrev_Subvariety
= "subvar.";
418 public static String Plantae_Abbrev_Forma
= "f.";
419 public static String Plantae_Abbrev_Subforma
= "subf.";
420 public static String Plantae_Abbrev_Forma_spec
= "f.spec.";
421 public static String Plantae_Abbrev_Taxa_infragen
= "t.infgen.";
422 public static String Plantae_Abbrev_Taxa_infraspec
= "t.infr.";
425 public static int Fungi_Kingdom
= 10;
426 public static int Fungi_Subkingdom
= 20;
427 public static int Fungi_Division
= 30;
428 public static int Fungi_Subdivision
= 40;
429 public static int Fungi_Class
= 60;
430 public static int Fungi_Subclass
= 70;
431 public static int Fungi_Order
= 100;
432 public static int Fungi_Suborder
= 110;
433 public static int Fungi_Family
= 140;
434 public static int Fungi_Subfamily
= 150;
435 public static int Fungi_Tribe
= 160;
436 public static int Fungi_Subtribe
= 170;
437 public static int Fungi_Genus
= 180;
438 public static int Fungi_Subgenus
= 190;
439 public static int Fungi_Section
= 200;
440 public static int Fungi_Subsection
= 210;
441 public static int Fungi_Species
= 220;
442 public static int Fungi_Subspecies
= 230;
443 public static int Fungi_Variety
= 240;
444 public static int Fungi_Subvariety
= 250;
445 public static int Fungi_Forma
= 260;
446 public static int Fungi_Subforma
= 270;
449 public static int Protozoa_Kingdom
= 10;
450 public static int Protozoa_Subkingdom
= 20;
451 public static int Protozoa_Phylum
= 30;
452 public static int Protozoa_Subphylum
= 40;
453 public static int Protozoa_Superclass
= 50;
454 public static int Protozoa_Class
= 60;
455 public static int Protozoa_Subclass
= 70;
456 public static int Protozoa_Infraclass
= 80;
457 public static int Protozoa_Superorder
= 90;
458 public static int Protozoa_Order
= 100;
459 public static int Protozoa_Suborder
= 110;
460 public static int Protozoa_Infraorder
= 120;
461 public static int Protozoa_Superfamily
= 130;
462 public static int Protozoa_Family
= 140;
463 public static int Protozoa_Subfamily
= 150;
464 public static int Protozoa_Tribe
= 160;
465 public static int Protozoa_Subtribe
= 170;
466 public static int Protozoa_Genus
= 180;
467 public static int Protozoa_Subgenus
= 190;
468 public static int Protozoa_Species
= 220;
469 public static int Protozoa_Subspecies
= 230;
470 public static int Protozoa_Variety
= 240;
471 public static int Protozoa_Forma
= 260;
474 public static int Bacteria_Kingdom
= 10;
475 public static int Bacteria_Subkingdom
= 20;
476 public static int Bacteria_Phylum
= 30;
477 public static int Bacteria_Subphylum
= 40;
478 public static int Bacteria_Superclass
= 50;
479 public static int Bacteria_Class
= 60;
480 public static int Bacteria_Subclass
= 70;
481 public static int Bacteria_Infraclass
= 80;
482 public static int Bacteria_Superorder
= 90;
483 public static int Bacteria_Order
= 100;
484 public static int Bacteria_Suborder
= 110;
485 public static int Bacteria_Infraorder
= 120;
486 public static int Bacteria_Superfamily
= 130;
487 public static int Bacteria_Family
= 140;
488 public static int Bacteria_Subfamily
= 150;
489 public static int Bacteria_Tribe
= 160;
490 public static int Bacteria_Subtribe
= 170;
491 public static int Bacteria_Genus
= 180;
492 public static int Bacteria_Subgenus
= 190;
493 public static int Bacteria_Species
= 220;
494 public static int Bacteria_Subspecies
= 230;
495 public static int Bacteria_Variety
= 240;
496 public static int Bacteria_Forma
= 260;
498 public static String Bacteria_STR_Kingdom
= "Kingdom";
499 public static String Bacteria_STR_Subkingdom
= "Subkingdom";
500 public static String Bacteria_STR_Phylum
= "Phylum";
501 public static String Bacteria_STR_Subphylum
= "Subphylum";
502 public static String Bacteria_STR_Superclass
= "Superclass";
503 public static String Bacteria_STR_Class
= "Class";
504 public static String Bacteria_STR_Subclass
= "Subclass";
505 public static String Bacteria_STR_Infraclass
= "Infraclass";
506 public static String Bacteria_STR_Superorder
= "Superorder";
507 public static String Bacteria_STR_Order
= "Order";
508 public static String Bacteria_STR_Suborder
= "Suborder";
509 public static String Bacteria_STR_Infraorder
= "Infraorder";
510 public static String Bacteria_STR_Superfamily
= "Superfamily";
511 public static String Bacteria_STR_Family
= "Family";
512 public static String Bacteria_STR_Subfamily
= "Subfamily";
513 public static String Bacteria_STR_Tribe
= "Tribe";
514 public static String Bacteria_STR_Subtribe
= "Subtribe";
515 public static String Bacteria_STR_Genus
= "Genus";
516 public static String Bacteria_STR_Subgenus
= "Subgenus";
517 public static String Bacteria_STR_Species
= "Species";
518 public static String Bacteria_STR_Subspecies
= "Subspecies";
519 public static String Bacteria_STR_Variety
= "Variety";
520 public static String Bacteria_STR_Forma
= "Forma";
523 public static int Chromista_Kingdom
= 10;
524 public static int Chromista_Subkingdom
= 20;
525 public static int Chromista_Infrakingdom
= 25;
526 public static int Chromista_Phylum
= 30;
527 public static int Chromista_Subphylum
= 40;
528 public static int Chromista_Superclass
= 50;
529 public static int Chromista_Class
= 60;
530 public static int Chromista_Subclass
= 70;
531 public static int Chromista_Infraclass
= 80;
532 public static int Chromista_Superorder
= 90;
533 public static int Chromista_Order
= 100;
534 public static int Chromista_Suborder
= 110;
535 public static int Chromista_Infraorder
= 120;
536 public static int Chromista_Superfamily
= 130;
537 public static int Chromista_Family
= 140;
538 public static int Chromista_Subfamily
= 150;
539 public static int Chromista_Tribe
= 160;
540 public static int Chromista_Subtribe
= 170;
541 public static int Chromista_Genus
= 180;
542 public static int Chromista_Subgenus
= 190;
543 public static int Chromista_Section
= 200;
544 public static int Chromista_Subsection
= 210;
545 public static int Chromista_Species
= 220;
546 public static int Chromista_Subspecies
= 230;
547 public static int Chromista_Variety
= 240;
548 public static int Chromista_Subvariety
= 250;
549 public static int Chromista_Forma
= 260;
552 public static int NoteCategory_description
= 1;
553 public static int NoteCategory_ecology
= 4;
554 public static int NoteCategory_phenology
= 5;
555 public static int NoteCategory_general_distribution_euromed
= 10;
556 public static int NoteCategory_general_distribution_world
= 11;
557 public static int NoteCategory_Common_names
= 12;
558 public static int NoteCategory_Occurrence
= 13;
559 public static int NoteCategory_Maps
=14;
560 public static int NoteCategory_Link_to_maps
= 20;
561 public static int NoteCategory_Link_to_images
= 21;
562 public static int NoteCategory_Link_to_taxonomy
= 22;
563 public static int NoteCategory_Link_to_general_information
= 23;
564 public static int NoteCategory_undefined_link
= 24;
565 public static int NoteCategory_Editor_Braces
= 249;
566 public static int NoteCategory_Editor_Brackets
= 250;
567 public static int NoteCategory_Editor_Parenthesis
= 251;
568 public static int NoteCategory_Inedited
= 252;
569 public static int NoteCategory_Comments_on_editing_process
= 253;
570 public static int NoteCategory_Publication_date
= 254;
571 public static int NoteCategory_Morphology
= 255;
572 public static int NoteCategory_Acknowledgments
= 257;
573 public static int NoteCategory_Original_publication
= 258;
574 public static int NoteCategory_Type_locality
= 259;
575 public static int NoteCategory_Environment
= 260;
576 public static int NoteCategory_Spelling
= 261;
577 public static int NoteCategory_Systematics
= 262;
578 public static int NoteCategory_Remark
= 263;
579 public static int NoteCategory_Date_of_publication
= 264;
580 public static int NoteCategory_Additional_information
= 266;
581 public static int NoteCategory_Status
= 267;
582 public static int NoteCategory_Nomenclature
= 268;
583 public static int NoteCategory_Homonymy
= 269;
584 public static int NoteCategory_Taxonomy
= 270;
585 public static int NoteCategory_Taxonomic_status
= 272;
586 public static int NoteCategory_Authority
= 273;
587 public static int NoteCategory_Identification
= 274;
588 public static int NoteCategory_Validity
= 275;
589 public static int NoteCategory_Classification
= 276;
590 public static int NoteCategory_Distribution
= 278;
591 public static int NoteCategory_Synonymy
= 279;
592 public static int NoteCategory_Habitat
= 280;
593 public static int NoteCategory_Biology
= 281;
594 public static int NoteCategory_Diagnosis
= 282;
595 public static int NoteCategory_Host
= 283;
596 public static int NoteCategory_Note
= 284;
597 public static int NoteCategory_Rank
= 285;
598 public static int NoteCategory_Taxonomic_Remark
= 286;
599 public static int NoteCategory_Taxonomic_Remarks
= 287;
602 public static String NoteCategory_STR_description
= "description";
603 public static String NoteCategory_STR_ecology
= "ecology";
604 public static String NoteCategory_STR_phenology
= "phenology";
605 public static String NoteCategory_STR_general_distribution_euromed
= "general distribution (Euro+Med)";
606 public static String NoteCategory_STR_general_distribution_world
= "general distribution (world)";
607 public static String NoteCategory_STR_Common_names
= "Common names";
608 public static String NoteCategory_STR_Occurrence
= "Occurrence";
609 public static String NoteCategory_STR_Maps
= "Maps";
610 public static String NoteCategory_STR_Link_to_maps
= "Link to maps";
611 public static String NoteCategory_STR_Link_to_images
= "Link to images";
612 public static String NoteCategory_STR_Link_to_taxonomy
= "Link to taxonomy";
613 public static String NoteCategory_STR_Link_to_general_information
= "Link to general information";
614 public static String NoteCategory_STR_undefined_link
= "undefined link";
615 public static String NoteCategory_STR_Editor_Braces
= "Editor_Braces";
616 public static String NoteCategory_STR_Editor_Brackets
= "Editor_Brackets";
617 public static String NoteCategory_STR_Editor_Parenthesis
= "Editor_Parenthesis";
618 public static String NoteCategory_STR_Inedited
= "Inedited";
619 public static String NoteCategory_STR_Comments_on_editing_process
= "Comments on editing process";
620 public static String NoteCategory_STR_Publication_date
= "Publication date";
621 public static String NoteCategory_STR_Morphology
= "Morphology";
622 public static String NoteCategory_STR_Acknowledgments
= "Acknowledgments";
623 public static String NoteCategory_STR_Original_publication
= "Original publication";
624 public static String NoteCategory_STR_Type_locality
= "Type locality";
625 public static String NoteCategory_STR_Environment
= "Environment";
626 public static String NoteCategory_STR_Spelling
= "Spelling";
627 public static String NoteCategory_STR_Systematics
= "Systematics";
628 public static String NoteCategory_STR_Remark
= "Remark";
629 public static String NoteCategory_STR_Date_of_publication
= "Date of publication";
630 public static String NoteCategory_STR_Additional_information
= "Additional information";
631 public static String NoteCategory_STR_Status
= "Status";
632 public static String NoteCategory_STR_Nomenclature
= "Nomenclature";
633 public static String NoteCategory_STR_Homonymy
= "Homonymy";
634 public static String NoteCategory_STR_Taxonomy
= "Taxonomy";
635 public static String NoteCategory_STR_Taxonomic_status
= "Taxonomic status";
636 public static String NoteCategory_STR_Authority
= "Authority";
637 public static String NoteCategory_STR_Identification
= "Identification";
638 public static String NoteCategory_STR_Validity
= "Validity";
639 public static String NoteCategory_STR_Classification
= "Classification";
640 public static String NoteCategory_STR_Distribution
= "Distribution";
641 public static String NoteCategory_STR_Synonymy
= "Synonymy";
642 public static String NoteCategory_STR_Habitat
= "Habitat";
643 public static String NoteCategory_STR_Biology
= "Biology";
644 public static String NoteCategory_STR_Diagnosis
= "Diagnosis";
645 public static String NoteCategory_STR_Host
= "Host";
646 public static String NoteCategory_STR_Note
= "Note";
647 public static String NoteCategory_STR_Rank
= "Rank";
648 public static String NoteCategory_STR_Taxonomic_Remark
= "Taxonomic Remark";
649 public static String NoteCategory_STR_Taxonomic_Remarks
= "Taxonomic Remarks";
653 public static int Language_Albanian
= 1;
654 public static int Language_Arabic
= 2;
655 public static int Language_Armenian
= 3;
656 public static int Language_Azerbaijan
= 4;
657 public static int Language_Belarusian
= 5;
658 public static int Language_Bulgarian
= 6;
659 public static int Language_Catalan
= 7;
660 public static int Language_Croat
= 8;
661 public static int Language_Czech
= 9;
662 public static int Language_Danish
= 10;
663 public static int Language_Dutch
= 11;
664 public static int Language_English
= 12;
665 public static int Language_Euskera
= 13;
666 public static int Language_Estonian
= 14;
667 public static int Language_Finnish
= 15;
668 public static int Language_French
= 16;
669 public static int Language_Georgian
= 17;
670 public static int Language_German
= 18;
671 public static int Language_Greek
= 19;
672 public static int Language_Hungarian
= 20;
673 public static int Language_Icelandic
= 21;
674 public static int Language_Irish_Gaelic
= 22;
675 public static int Language_Israel_Hebrew
= 23;
676 public static int Language_Italian
= 24;
677 public static int Language_Latvian
= 25;
678 public static int Language_Lithuanian
= 26;
679 public static int Language_Macedonian
= 27;
680 public static int Language_Maltese
= 28;
681 public static int Language_Moldovian
= 29;
682 public static int Language_Norwegian
= 30;
683 public static int Language_Polish
= 31;
684 public static int Language_Portuguese
= 32;
685 public static int Language_Roumanian
= 33;
686 public static int Language_Russian
= 34;
687 public static int Language_Russian_Caucasian
= 35;
688 public static int Language_Russian_Altaic_kalmyk_oirat
= 36;
689 public static int Language_Russian_Altaic_karachay_balkar
= 37;
690 public static int Language_Russian_Altaic_kumyk
= 38;
691 public static int Language_Russian_Altaic_nogai
= 39;
692 public static int Language_Russian_Altaic_north_azerbaijani
= 40;
693 public static int Language_Russian_Indo_european_russian
= 41;
694 public static int Language_Russian_Indo_european_kalmyk_oirat
= 42;
695 public static int Language_Russian_Indo_european_osetin
= 43;
696 public static int Language_Russian_North_caucasian_abaza
= 44;
697 public static int Language_Russian_North_caucasian_adyghe
= 45;
698 public static int Language_Russian_North_caucasian_chechen
= 46;
699 public static int Language_Russian_North_caucasian_kabardian
= 47;
700 public static int Language_Russian_North_caucasian_lak
= 48;
701 public static int Language_Russian_North_caucasian_avar
= 49;
702 public static int Language_Russian_North_caucasian_in
= 50;
703 public static int Language_Russian_Uralic_chuvash
= 51;
704 public static int Language_Russian_Uralic_udmurt
= 52;
705 public static int Language_Serbian
= 53;
706 public static int Language_Slovak
= 54;
707 public static int Language_Slovene
= 55;
708 public static int Language_Spanish_Castillian
= 56;
709 public static int Language_Swedish
= 57;
710 public static int Language_Turkish
= 58;
711 public static int Language_Ukraine
= 59;
712 public static int Language_Welsh
= 60;
713 public static int Language_Corsican
= 61;
715 public static String STR_LANGUAGE_ALBANIAN
= "Albanian";
716 public static String STR_LANGUAGE_ARABIC
= "Arabic";
717 public static String STR_LANGUAGE_ARMENIAN
= "Armenian";
718 public static String STR_LANGUAGE_AZERBAIJAN
= "Azerbaijan";
719 public static String STR_LANGUAGE_BELARUSIAN
= "Belarusian";
720 public static String STR_LANGUAGE_BULGARIAN
= "Bulgarian";
721 public static String STR_LANGUAGE_CATALAN
= "Catalan";
722 public static String STR_LANGUAGE_CROAT
= "Croat";
723 public static String STR_LANGUAGE_CZECH
= "Czech";
724 public static String STR_LANGUAGE_DANISH
= "Danish";
725 public static String STR_LANGUAGE_DUTCH
= "Dutch";
726 public static String STR_LANGUAGE_ENGLISH
= "English";
727 public static String STR_LANGUAGE_EUSKERA
= "Euskera";
728 public static String STR_LANGUAGE_ESTONIAN
= "Estonian";
729 public static String STR_LANGUAGE_FINNISH
= "Finnish";
730 public static String STR_LANGUAGE_FRENCH
= "French";
731 public static String STR_LANGUAGE_GEORGIAN
= "Georgian";
732 public static String STR_LANGUAGE_GERMAN
= "German";
733 public static String STR_LANGUAGE_GREEK
= "Greek";
734 public static String STR_LANGUAGE_HUNGARIAN
= "Hungarian";
735 public static String STR_LANGUAGE_ICELANDIC
= "Icelandic";
736 public static String STR_LANGUAGE_IRISH_GAELIC
= "Irish Gaelic";
737 public static String STR_LANGUAGE_ISRAEL_HEBREW
= "Israel (Hebrew)";
738 public static String STR_LANGUAGE_ITALIAN
= "Italian";
739 public static String STR_LANGUAGE_LATVIAN
= "Latvian";
740 public static String STR_LANGUAGE_LITHUANIAN
= "Lithuanian";
741 public static String STR_LANGUAGE_MACEDONIAN
= "Macedonian";
742 public static String STR_LANGUAGE_MALTESE
= "Maltese";
743 public static String STR_LANGUAGE_MOLDOVIAN
= "Moldovian";
744 public static String STR_LANGUAGE_NORWEGIAN
= "Norwegian";
745 public static String STR_LANGUAGE_POLISH
= "Polish";
746 public static String STR_LANGUAGE_PORTUGUESE
= "Portuguese";
747 public static String STR_LANGUAGE_ROUMANIAN
= "Roumanian";
748 public static String STR_LANGUAGE_RUSSIAN
= "Russian";
749 public static String STR_LANGUAGE_RUSSIAN_CAUCASIAN
= "Russian Caucasian";
750 public static String STR_LANGUAGE_RUSSIAN_ALTAIC_KALMYK_OIRAT
= "Russian (Altaic, kalmyk-oirat)";
751 public static String STR_LANGUAGE_RUSSIAN_ALTAIC_KARACHAY_BALKAR
= "Russian (Altaic, karachay-balkar)";
752 public static String STR_LANGUAGE_RUSSIAN_ALTAIC_KUMYK
= "Russian (Altaic, kumyk)";
753 public static String STR_LANGUAGE_RUSSIAN_ALTAIC_NOGAI
= "Russian (Altaic, nogai)";
754 public static String STR_LANGUAGE_RUSSIAN_ALTAIC_NORTH_AZERBAIJANI
= "Russian (Altaic, north azerbaijani)";
755 public static String STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_RUSSIAN
= "Russian (Indo-european, russian)";
756 public static String STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_KALMYK_OIRAT
= "Russian (Indo-european, kalmyk-oirat)";
757 public static String STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_OSETIN
= "Russian (Indo-european, osetin)";
758 public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_ABAZA
= "Russian (North caucasian, abaza)";
759 public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_ADYGHE
= "Russian (North caucasian, adyghe)";
760 public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_CHECHEN
= "Russian (North caucasian, chechen)";
761 public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_KABARDIAN
= "Russian (North caucasian, kabardian)";
762 public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_LAK
= "Russian (North caucasian, lak)";
763 public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_AVAR
= "Russian (North caucasian, avar)";
764 public static String STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_IN
= "Russian (North caucasian, in)";
765 public static String STR_LANGUAGE_RUSSIAN_URALIC_CHUVASH
= "Russian (Uralic, chuvash)";
766 public static String STR_LANGUAGE_RUSSIAN_URALIC_UDMURT
= "Russian (Uralic, udmurt)";
767 public static String STR_LANGUAGE_SERBIAN
= "Serbian";
768 public static String STR_LANGUAGE_SLOVAK
= "Slovak";
769 public static String STR_LANGUAGE_SLOVENE
= "Slovene";
770 public static String STR_LANGUAGE_SPANISH_CASTILLIAN
= "Spanish, Castillian";
771 public static String STR_LANGUAGE_SWEDISH
= "Swedish";
772 public static String STR_LANGUAGE_TURKISH
= "Turkish";
773 public static String STR_LANGUAGE_UKRAINE
= "Ukraine";
774 public static String STR_LANGUAGE_WELSH
= "Welsh";
775 public static String STR_LANGUAGE_CORSICAN
= "Corsican";
779 public static int FOSSILSTATUS_RECENT_ONLY
= 1;
780 public static int FOSSILSTATUS_FOSSIL_ONLY
= 2;
781 public static int FOSSILSTATUS_RECENT_FOSSIL
= 3;
783 public static String STR_RECENT_ONLY
= "recent only";
784 public static String STR_FOSSIL_ONLY
= "fossil only";
785 public static String STR_RECENT_FOSSIL
= "recent + fossil";
788 public static int ORIGINAL_DESCRIPTION
= 1;
789 public static int BASIS_OF_RECORD
= 2;
790 public static int ADDITIONAL_SOURCE
= 3;
791 public static int SOURCE_OF_SYNONYMY
= 4;
792 public static int REDESCRIPTION
= 5;
793 public static int NEW_COMBINATION_REFERENCE
= 6;
794 public static int STATUS_SOURCE
= 7;
795 public static int NOMENCLATURAL_REFERENCE
= 8;
797 public static String STR_ORIGINAL_DESCRIPTION
= "original description";
798 public static String STR_BASIS_OF_RECORD
= "basis of record";
799 public static String STR_ADDITIONAL_SOURCE
= "additional source";
800 public static String STR_SOURCE_OF_SYNONYMY
= "source of synonymy";
801 public static String STR_REDESCRIPTION
= "redescription";
802 public static String STR_NEW_COMBINATION_REFERENCE
= "new combination reference";
803 public static String STR_STATUS_SOURCE
= "status source";
804 public static String STR_NOMENCLATURAL_REFERENCE
= "nomenclatural reference";
807 public static int AREA_EAST_AEGEAN_ISLANDS
= 1;
808 public static int AREA_GREEK_EAST_AEGEAN_ISLANDS
= 2;
809 public static int AREA_TURKISH_EAST_AEGEAN_ISLANDS
= 3;
810 public static int AREA_ALBANIA
= 4;
811 public static int AREA_AUSTRIA_WITH_LIECHTENSTEIN
= 5;
812 public static int AREA_AUSTRIA
= 6;
813 public static int AREA_LIECHTENSTEIN
= 7;
814 public static int AREA_AZORES
= 8;
815 public static int AREA_CORVO
= 9;
816 public static int AREA_FAIAL
= 10;
817 public static int AREA_GRACIOSA
= 11;
818 public static int AREA_SAO_JORGE
= 12;
819 public static int AREA_FLORES
= 13;
820 public static int AREA_SAO_MIGUEL
= 14;
821 public static int AREA_PICO
= 15;
822 public static int AREA_SANTA_MARIA
= 16;
823 public static int AREA_TERCEIRA
= 17;
824 public static int AREA_BELGIUM_WITH_LUXEMBOURG
= 18;
825 public static int AREA_BELGIUM
= 19;
826 public static int AREA_LUXEMBOURG
= 20;
827 public static int AREA_BOSNIA_HERZEGOVINA
= 21;
828 public static int AREA_BALEARES
= 22;
829 public static int AREA_IBIZA_WITH_FORMENTERA
= 23;
830 public static int AREA_MALLORCA
= 24;
831 public static int AREA_MENORCA
= 25;
832 public static int AREA_GREAT_BRITAIN
= 26;
833 public static int AREA_BALTIC_STATES_ESTONIA_LATVIA_LITHUANIA_AND_KALININGRAD_REGION
= 27;
834 public static int AREA_BULGARIA
= 28;
835 public static int AREA_BELARUS
= 29;
836 public static int AREA_CANARY_ISLANDS
= 30;
837 public static int AREA_GRAN_CANARIA
= 31;
838 public static int AREA_FUERTEVENTURA_WITH_LOBOS
= 32;
839 public static int AREA_GOMERA
= 33;
840 public static int AREA_HIERRO
= 34;
841 public static int AREA_LANZAROTE_WITH_GRACIOSA
= 35;
842 public static int AREA_LA_PALMA
= 36;
843 public static int AREA_TENERIFE
= 37;
844 public static int AREA_MONTENEGRO
= 38;
845 public static int AREA_CORSE
= 39;
846 public static int AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS
= 40;
847 public static int AREA_CZECH_REPUBLIC
= 41;
848 public static int AREA_CROATIA
= 42;
849 public static int AREA_CYPRUS
= 43;
850 public static int AREA_FORMER_CZECHOSLOVAKIA
= 44;
851 public static int AREA_DENMARK_WITH_BORNHOLM
= 45;
852 public static int AREA_ESTONIA
= 46;
853 public static int AREA_FAROE_ISLANDS
= 47;
854 public static int AREA_FINLAND_WITH_AHVENANMAA
= 48;
855 public static int AREA_FRANCE
= 49;
856 public static int AREA_CHANNEL_ISLANDS
= 50;
857 public static int AREA_FRENCH_MAINLAND
= 51;
858 public static int AREA_MONACO
= 52;
859 public static int AREA_GERMANY
= 53;
860 public static int AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS
= 54;
861 public static int AREA_IRELAND
= 55;
862 public static int AREA_REPUBLIC_OF_IRELAND
= 56;
863 public static int AREA_NORTHERN_IRELAND
= 57;
864 public static int AREA_SWITZERLAND
= 58;
865 public static int AREA_NETHERLANDS
= 59;
866 public static int AREA_SPAIN
= 60;
867 public static int AREA_ANDORRA
= 61;
868 public static int AREA_GIBRALTAR
= 62;
869 public static int AREA_KINGDOM_OF_SPAIN
= 63;
870 public static int AREA_HUNGARY
= 64;
871 public static int AREA_ICELAND
= 65;
872 public static int AREA_ITALY
= 66;
873 public static int AREA_ITALIAN_MAINLAND
= 67;
874 public static int AREA_SAN_MARINO
= 68;
875 public static int AREA_FORMER_JUGOSLAVIA
= 69;
876 public static int AREA_LATVIA
= 70;
877 public static int AREA_LITHUANIA
= 71;
878 public static int AREA_PORTUGUESE_MAINLAND
= 72;
879 public static int AREA_MADEIRA_ARCHIPELAGO
= 73;
880 public static int AREA_DESERTAS
= 74;
881 public static int AREA_MADEIRA
= 75;
882 public static int AREA_PORTO_SANTO
= 76;
883 public static int AREA_THE_FORMER_JUGOSLAV_REPUBLIC_OF_MAKEDONIJA
= 77;
884 public static int AREA_MOLDOVA
= 78;
885 public static int AREA_NORWEGIAN_MAINLAND
= 79;
886 public static int AREA_POLAND
= 80;
887 public static int AREA_THE_RUSSIAN_FEDERATION
= 81;
888 public static int AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND
= 82;
889 public static int AREA_CENTRAL_EUROPEAN_RUSSIA
= 83;
890 public static int AREA_EASTERN_EUROPEAN_RUSSIA
= 84;
891 public static int AREA_KALININGRAD
= 85;
892 public static int AREA_NORTHERN_EUROPEAN_RUSSIA
= 86;
893 public static int AREA_NORTHWEST_EUROPEAN_RUSSIA
= 87;
894 public static int AREA_SOUTH_EUROPEAN_RUSSIA
= 88;
895 public static int AREA_ROMANIA
= 89;
896 public static int AREA_FORMER_USSR
= 90;
897 public static int AREA_RUSSIA_BALTIC
= 91;
898 public static int AREA_RUSSIA_CENTRAL
= 92;
899 public static int AREA_RUSSIA_SOUTHEAST
= 93;
900 public static int AREA_RUSSIA_NORTHERN
= 94;
901 public static int AREA_RUSSIA_SOUTHWEST
= 95;
902 public static int AREA_SARDEGNA
= 96;
903 public static int AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN
= 97;
904 public static int AREA_SELVAGENS_ISLANDS
= 98;
905 public static int AREA_SICILY_WITH_MALTA
= 99;
906 public static int AREA_MALTA
= 100;
907 public static int AREA_SICILY
= 101;
908 public static int AREA_SLOVAKIA
= 102;
909 public static int AREA_SLOVENIA
= 103;
910 public static int AREA_SERBIA_WITH_MONTENEGRO
= 104;
911 public static int AREA_SERBIA_INCLUDING_VOJVODINA_AND_WITH_KOSOVO
= 105;
912 public static int AREA_SWEDEN
= 106;
913 public static int AREA_EUROPEAN_TURKEY
= 107;
914 public static int AREA_UKRAINE_INCLUDING_CRIMEA
= 108;
915 public static int AREA_CRIMEA
= 109;
916 public static int AREA_UKRAINE
= 110;
917 public static int AREA_GREEK_MAINLAND
= 111;
918 public static int AREA_CRETE
= 112;
919 public static int AREA_DODECANESE_ISLANDS
= 113;
920 public static int AREA_CYCLADES_ISLANDS
= 114;
921 public static int AREA_NORTH_AEGEAN_ISLANDS
= 115;
922 public static int AREA_VATICAN_CITY
= 116;
923 public static int AREA_FRANZ_JOSEF_LAND
= 117;
924 public static int AREA_NOVAYA_ZEMLYA
= 118;
925 public static int AREA_AZERBAIJAN_INCLUDING_NAKHICHEVAN
= 119;
926 public static int AREA_AZERBAIJAN
= 120;
927 public static int AREA_NAKHICHEVAN
= 121;
928 public static int AREA_ALGERIA
= 122;
929 public static int AREA_ARMENIA
= 123;
930 public static int AREA_CAUCASUS_REGION
= 124;
931 public static int AREA_EGYPT
= 125;
932 public static int AREA_GEORGIA
= 126;
933 public static int AREA_ISRAEL_JORDAN
= 127;
934 public static int AREA_ISRAEL
= 128;
935 public static int AREA_JORDAN
= 129;
936 public static int AREA_LEBANON
= 130;
937 public static int AREA_LIBYA
= 131;
938 public static int AREA_LEBANON_SYRIA
= 132;
939 public static int AREA_MOROCCO
= 133;
940 public static int AREA_NORTH_CAUCASUS
= 134;
941 public static int AREA_SINAI
= 135;
942 public static int AREA_SYRIA
= 136;
943 public static int AREA_TUNISIA
= 137;
944 public static int AREA_ASIATIC_TURKEY
= 138;
945 public static int AREA_TURKEY
= 139;
946 public static int AREA_NORTHERN_AFRICA
= 140;
947 public static int AREA_AFRO_TROPICAL_REGION
= 141;
948 public static int AREA_AUSTRALIAN_REGION
= 142;
949 public static int AREA_EAST_PALAEARCTIC
= 143;
950 public static int AREA_NEARCTIC_REGION
= 144;
951 public static int AREA_NEOTROPICAL_REGION
= 145;
952 public static int AREA_NEAR_EAST
= 146;
953 public static int AREA_ORIENTAL_REGION
= 147;
954 public static int AREA_EUROPEAN_MARINE_WATERS
= 148;
955 public static int AREA_MEDITERRANEAN_SEA
= 149;
956 public static int AREA_WHITE_SEA
= 150;
957 public static int AREA_NORTH_SEA
= 151;
958 public static int AREA_BALTIC_SEA
= 152;
959 public static int AREA_BLACK_SEA
= 153;
960 public static int AREA_BARENTS_SEA
= 154;
961 public static int AREA_CASPIAN_SEA
= 155;
962 public static int AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE
= 156;
963 public static int AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE
= 157;
964 public static int AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE
= 158;
965 public static int AREA_ENGLISH_CHANNEL
= 159;
966 public static int AREA_ADRIATIC_SEA
= 160;
967 public static int AREA_BISCAY_BAY
= 161;
968 public static int AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE
= 162;
969 public static int AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE
= 163;
970 public static int AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE
= 164;
971 public static int AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE
= 165;
972 public static int AREA_GRECIAN_EXCLUSIVE_ECONOMIC_ZONE
= 166;
973 public static int AREA_TIRRENO_SEA
= 167;
974 public static int AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE
= 168;
975 public static int AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE
= 169;
976 public static int AREA_IRISH_SEA
= 170;
977 public static int AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE
= 171;
978 public static int AREA_NORWEGIAN_SEA
= 172;
979 public static int AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE
= 173;
980 public static int AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE
= 174;
981 public static int AREA_SKAGERRAK
= 175;
982 public static int AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE
= 176;
983 public static int AREA_WADDEN_SEA
= 177;
984 public static int AREA_BELT_SEA
= 178;
985 public static int AREA_MARMARA_SEA
= 179;
986 public static int AREA_SEA_OF_AZOV
= 180;
987 public static int AREA_AEGEAN_SEA
= 181;
988 public static int AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE
= 182;
989 public static int AREA_SOUTH_BALTIC_PROPER
= 183;
990 public static int AREA_BALTIC_PROPER
= 184;
991 public static int AREA_NORTH_BALTIC_PROPER
= 185;
992 public static int AREA_ARCHIPELAGO_SEA
= 186;
993 public static int AREA_BOTHNIAN_SEA
= 187;
994 public static int AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE
= 188;
995 public static int AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE
= 189;
996 public static int AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE
= 190;
997 public static int AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE
= 191;
998 public static int AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE
= 192;
999 public static int AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART
= 193;
1000 public static int AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE
= 194;
1001 public static int AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE
= 195;
1002 public static int AREA_BALEAR_SEA
= 196;
1003 public static int AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE
= 197;
1004 public static int AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE
= 198;
1007 public static String STR_AREA_EAST_AEGEAN_ISLANDS
= "East Aegean Islands";
1008 public static String STR_AREA_GREEK_EAST_AEGEAN_ISLANDS
= "Greek East Aegean Islands";
1009 public static String STR_AREA_TURKISH_EAST_AEGEAN_ISLANDS
= "Turkish East Aegean Islands";
1010 public static String STR_AREA_ALBANIA
= "Albania";
1011 public static String STR_AREA_AUSTRIA_WITH_LIECHTENSTEIN
= "Austria with Liechtenstein";
1012 public static String STR_AREA_AUSTRIA
= "Austria";
1013 public static String STR_AREA_LIECHTENSTEIN
= "Liechtenstein";
1014 public static String STR_AREA_AZORES
= "Azores";
1015 public static String STR_AREA_CORVO
= "Corvo";
1016 public static String STR_AREA_FAIAL
= "Faial";
1017 public static String STR_AREA_GRACIOSA
= "Graciosa";
1018 public static String STR_AREA_SAO_JORGE
= "São Jorge";
1019 public static String STR_AREA_FLORES
= "Flores";
1020 public static String STR_AREA_SAO_MIGUEL
= "São Miguel";
1021 public static String STR_AREA_PICO
= "Pico";
1022 public static String STR_AREA_SANTA_MARIA
= "Santa Maria";
1023 public static String STR_AREA_TERCEIRA
= "Terceira";
1024 public static String STR_AREA_BELGIUM_WITH_LUXEMBOURG
= "Belgium with Luxembourg";
1025 public static String STR_AREA_BELGIUM
= "Belgium";
1026 public static String STR_AREA_LUXEMBOURG
= "Luxembourg";
1027 public static String STR_AREA_BOSNIA_HERZEGOVINA
= "Bosnia-Herzegovina";
1028 public static String STR_AREA_BALEARES
= "Baleares";
1029 public static String STR_AREA_IBIZA_WITH_FORMENTERA
= "Ibiza with Formentera";
1030 public static String STR_AREA_MALLORCA
= "Mallorca";
1031 public static String STR_AREA_MENORCA
= "Menorca";
1032 public static String STR_AREA_GREAT_BRITAIN
= "Great Britain";
1033 public static String STR_AREA_BALTIC_STATES_ESTONIA_LATVIA_LITHUANIA_AND_KALININGRAD_REGION
= "Baltic states (Estonia, Latvia, Lithuania) and Kaliningrad region";
1034 public static String STR_AREA_BULGARIA
= "Bulgaria";
1035 public static String STR_AREA_BELARUS
= "Belarus";
1036 public static String STR_AREA_CANARY_ISLANDS
= "Canary Islands";
1037 public static String STR_AREA_GRAN_CANARIA
= "Gran Canaria";
1038 public static String STR_AREA_FUERTEVENTURA_WITH_LOBOS
= "Fuerteventura with Lobos";
1039 public static String STR_AREA_GOMERA
= "Gomera";
1040 public static String STR_AREA_HIERRO
= "Hierro";
1041 public static String STR_AREA_LANZAROTE_WITH_GRACIOSA
= "Lanzarote with Graciosa";
1042 public static String STR_AREA_LA_PALMA
= "La Palma";
1043 public static String STR_AREA_TENERIFE
= "Tenerife";
1044 public static String STR_AREA_MONTENEGRO
= "Montenegro";
1045 public static String STR_AREA_CORSE
= "Corse";
1046 public static String STR_AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS
= "Crete with Karpathos, Kasos & Gavdhos";
1047 public static String STR_AREA_CZECH_REPUBLIC
= "Czech Republic";
1048 public static String STR_AREA_CROATIA
= "Croatia";
1049 public static String STR_AREA_CYPRUS
= "Cyprus";
1050 public static String STR_AREA_FORMER_CZECHOSLOVAKIA
= "Former Czechoslovakia";
1051 public static String STR_AREA_DENMARK_WITH_BORNHOLM
= "Denmark with Bornholm";
1052 public static String STR_AREA_ESTONIA
= "Estonia";
1053 public static String STR_AREA_FAROE_ISLANDS
= "Faroe Islands";
1054 public static String STR_AREA_FINLAND_WITH_AHVENANMAA
= "Finland with Ahvenanmaa";
1055 public static String STR_AREA_FRANCE
= "France";
1056 public static String STR_AREA_CHANNEL_ISLANDS
= "Channel Islands";
1057 public static String STR_AREA_FRENCH_MAINLAND
= "French mainland";
1058 public static String STR_AREA_MONACO
= "Monaco";
1059 public static String STR_AREA_GERMANY
= "Germany";
1060 public static String STR_AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS
= "Greece with Cyclades and more islands";
1061 public static String STR_AREA_IRELAND
= "Ireland";
1062 public static String STR_AREA_REPUBLIC_OF_IRELAND
= "Republic of Ireland";
1063 public static String STR_AREA_NORTHERN_IRELAND
= "Northern Ireland";
1064 public static String STR_AREA_SWITZERLAND
= "Switzerland";
1065 public static String STR_AREA_NETHERLANDS
= "Netherlands";
1066 public static String STR_AREA_SPAIN
= "Spain";
1067 public static String STR_AREA_ANDORRA
= "Andorra";
1068 public static String STR_AREA_GIBRALTAR
= "Gibraltar";
1069 public static String STR_AREA_KINGDOM_OF_SPAIN
= "Kingdom of Spain";
1070 public static String STR_AREA_HUNGARY
= "Hungary";
1071 public static String STR_AREA_ICELAND
= "Iceland";
1072 public static String STR_AREA_ITALY
= "Italy";
1073 public static String STR_AREA_ITALIAN_MAINLAND
= "Italian mainland";
1074 public static String STR_AREA_SAN_MARINO
= "San Marino";
1075 public static String STR_AREA_FORMER_JUGOSLAVIA
= "Former Jugoslavia";
1076 public static String STR_AREA_LATVIA
= "Latvia";
1077 public static String STR_AREA_LITHUANIA
= "Lithuania";
1078 public static String STR_AREA_PORTUGUESE_MAINLAND
= "Portuguese mainland";
1079 public static String STR_AREA_MADEIRA_ARCHIPELAGO
= "Madeira";
1080 public static String STR_AREA_DESERTAS
= "Desertas";
1081 public static String STR_AREA_MADEIRA
= "Madeira";
1082 public static String STR_AREA_PORTO_SANTO
= "Porto Santo";
1083 public static String STR_AREA_THE_FORMER_JUGOSLAV_REPUBLIC_OF_MAKEDONIJA
= "The former Jugoslav Republic of Makedonija";
1084 public static String STR_AREA_MOLDOVA
= "Moldova";
1085 public static String STR_AREA_NORWEGIAN_MAINLAND
= "Norwegian mainland";
1086 public static String STR_AREA_POLAND
= "Poland";
1087 public static String STR_AREA_THE_RUSSIAN_FEDERATION
= "The Russian Federation";
1088 public static String STR_AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND
= "Novaya Zemlya & Franz-Joseph Land";
1089 public static String STR_AREA_CENTRAL_EUROPEAN_RUSSIA
= "Central European Russia";
1090 public static String STR_AREA_EASTERN_EUROPEAN_RUSSIA
= "Eastern European Russia";
1091 public static String STR_AREA_KALININGRAD
= "Kaliningrad";
1092 public static String STR_AREA_NORTHERN_EUROPEAN_RUSSIA
= "Northern European Russia";
1093 public static String STR_AREA_NORTHWEST_EUROPEAN_RUSSIA
= "Northwest European Russia";
1094 public static String STR_AREA_SOUTH_EUROPEAN_RUSSIA
= "South European Russia";
1095 public static String STR_AREA_ROMANIA
= "Romania";
1096 public static String STR_AREA_FORMER_USSR
= "Former USSR";
1097 public static String STR_AREA_RUSSIA_BALTIC
= "Russia Baltic";
1098 public static String STR_AREA_RUSSIA_CENTRAL
= "Russia Central";
1099 public static String STR_AREA_RUSSIA_SOUTHEAST
= "Russia Southeast";
1100 public static String STR_AREA_RUSSIA_NORTHERN
= "Russia Northern";
1101 public static String STR_AREA_RUSSIA_SOUTHWEST
= "Russia Southwest";
1102 public static String STR_AREA_SARDEGNA
= "Sardegna";
1103 public static String STR_AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN
= "Svalbard with Björnöya and Jan Mayen";
1104 public static String STR_AREA_SELVAGENS_ISLANDS
= "Selvagens Islands";
1105 public static String STR_AREA_SICILY_WITH_MALTA
= "Sicily with Malta";
1106 public static String STR_AREA_MALTA
= "Malta";
1107 public static String STR_AREA_SICILY
= "Sicily";
1108 public static String STR_AREA_SLOVAKIA
= "Slovakia";
1109 public static String STR_AREA_SLOVENIA
= "Slovenia";
1110 public static String STR_AREA_SERBIA_WITH_MONTENEGRO
= "Serbia with Montenegro";
1111 public static String STR_AREA_SERBIA_INCLUDING_VOJVODINA_AND_WITH_KOSOVO
= "Serbia including Vojvodina and with Kosovo";
1112 public static String STR_AREA_SWEDEN
= "Sweden";
1113 public static String STR_AREA_EUROPEAN_TURKEY
= "European Turkey";
1114 public static String STR_AREA_UKRAINE_INCLUDING_CRIMEA
= "Ukraine including Crimea";
1115 public static String STR_AREA_CRIMEA
= "Crimea";
1116 public static String STR_AREA_UKRAINE
= "Ukraine";
1117 public static String STR_AREA_GREEK_MAINLAND
= "Greek mainland";
1118 public static String STR_AREA_CRETE
= "Crete";
1119 public static String STR_AREA_DODECANESE_ISLANDS
= "Dodecanese Islands";
1120 public static String STR_AREA_CYCLADES_ISLANDS
= "Cyclades Islands";
1121 public static String STR_AREA_NORTH_AEGEAN_ISLANDS
= "North Aegean Islands";
1122 public static String STR_AREA_VATICAN_CITY
= "Vatican City";
1123 public static String STR_AREA_FRANZ_JOSEF_LAND
= "Franz Josef Land";
1124 public static String STR_AREA_NOVAYA_ZEMLYA
= "Novaya Zemlya";
1125 public static String STR_AREA_AZERBAIJAN_INCLUDING_NAKHICHEVAN
= "Azerbaijan including Nakhichevan";
1126 public static String STR_AREA_AZERBAIJAN
= "Azerbaijan";
1127 public static String STR_AREA_NAKHICHEVAN
= "Nakhichevan";
1128 public static String STR_AREA_ALGERIA
= "Algeria";
1129 public static String STR_AREA_ARMENIA
= "Armenia";
1130 public static String STR_AREA_CAUCASUS_REGION
= "Caucasus region";
1131 public static String STR_AREA_EGYPT
= "Egypt";
1132 public static String STR_AREA_GEORGIA
= "Georgia";
1133 public static String STR_AREA_ISRAEL_JORDAN
= "Israel-Jordan";
1134 public static String STR_AREA_ISRAEL
= "Israel";
1135 public static String STR_AREA_JORDAN
= "Jordan";
1136 public static String STR_AREA_LEBANON
= "Lebanon";
1137 public static String STR_AREA_LIBYA
= "Libya";
1138 public static String STR_AREA_LEBANON_SYRIA
= "Lebanon-Syria";
1139 public static String STR_AREA_MOROCCO
= "Morocco";
1140 public static String STR_AREA_NORTH_CAUCASUS
= "North Caucasus";
1141 public static String STR_AREA_SINAI
= "Sinai";
1142 public static String STR_AREA_SYRIA
= "Syria";
1143 public static String STR_AREA_TUNISIA
= "Tunisia";
1144 public static String STR_AREA_ASIATIC_TURKEY
= "Asiatic Turkey";
1145 public static String STR_AREA_TURKEY
= "Turkey";
1146 public static String STR_AREA_NORTHERN_AFRICA
= "Northern Africa";
1147 public static String STR_AREA_AFRO_TROPICAL_REGION
= "Afro-tropical region";
1148 public static String STR_AREA_AUSTRALIAN_REGION
= "Australian region";
1149 public static String STR_AREA_EAST_PALAEARCTIC
= "East Palaearctic";
1150 public static String STR_AREA_NEARCTIC_REGION
= "Nearctic region";
1151 public static String STR_AREA_NEOTROPICAL_REGION
= "Neotropical region";
1152 public static String STR_AREA_NEAR_EAST
= "Near East";
1153 public static String STR_AREA_ORIENTAL_REGION
= "Oriental region";
1154 public static String STR_AREA_EUROPEAN_MARINE_WATERS
= "European Marine Waters";
1155 public static String STR_AREA_MEDITERRANEAN_SEA
= "Mediterranean Sea";
1156 public static String STR_AREA_WHITE_SEA
= "White Sea";
1157 public static String STR_AREA_NORTH_SEA
= "North Sea";
1158 public static String STR_AREA_BALTIC_SEA
= "Baltic Sea";
1159 public static String STR_AREA_BLACK_SEA
= "Black Sea";
1160 public static String STR_AREA_BARENTS_SEA
= "Barents Sea";
1161 public static String STR_AREA_CASPIAN_SEA
= "Caspian Sea";
1162 public static String STR_AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE
= "Portuguese Exclusive Economic Zone";
1163 public static String STR_AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Belgian Exclusive Economic Zone";
1164 public static String STR_AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE
= "French Exclusive Economic Zone";
1165 public static String STR_AREA_ENGLISH_CHANNEL
= "English Channel";
1166 public static String STR_AREA_ADRIATIC_SEA
= "Adriatic Sea";
1167 public static String STR_AREA_BISCAY_BAY
= "Biscay Bay";
1168 public static String STR_AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE
= "Dutch Exclusive Economic Zone";
1169 public static String STR_AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE
= "United Kingdom Exclusive Economic Zone";
1170 public static String STR_AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE
= "Spanish Exclusive Economic Zone";
1171 public static String STR_AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Egyptian Exclusive Economic Zone";
1172 public static String STR_AREA_GRECIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Grecian Exclusive Economic Zone";
1173 public static String STR_AREA_TIRRENO_SEA
= "Tirreno Sea";
1174 public static String STR_AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE
= "Icelandic Exclusive Economic Zone";
1175 public static String STR_AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE
= "Irish Exclusive economic Zone";
1176 public static String STR_AREA_IRISH_SEA
= "Irish Sea";
1177 public static String STR_AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Italian Exclusive Economic Zone";
1178 public static String STR_AREA_NORWEGIAN_SEA
= "Norwegian Sea";
1179 public static String STR_AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE
= "Moroccan Exclusive Economic Zone";
1180 public static String STR_AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Norwegian Exclusive Economic Zone";
1181 public static String STR_AREA_SKAGERRAK
= "Skagerrak";
1182 public static String STR_AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Tunisian Exclusive Economic Zone";
1183 public static String STR_AREA_WADDEN_SEA
= "Wadden Sea";
1184 public static String STR_AREA_BELT_SEA
= "Belt Sea";
1185 public static String STR_AREA_MARMARA_SEA
= "Marmara Sea";
1186 public static String STR_AREA_SEA_OF_AZOV
= "Sea of Azov";
1187 public static String STR_AREA_AEGEAN_SEA
= "Aegean Sea";
1188 public static String STR_AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Bulgarian Exclusive Economic Zone";
1189 public static String STR_AREA_SOUTH_BALTIC_PROPER
= "South Baltic proper";
1190 public static String STR_AREA_BALTIC_PROPER
= "Baltic Proper";
1191 public static String STR_AREA_NORTH_BALTIC_PROPER
= "North Baltic proper";
1192 public static String STR_AREA_ARCHIPELAGO_SEA
= "Archipelago Sea";
1193 public static String STR_AREA_BOTHNIAN_SEA
= "Bothnian Sea";
1194 public static String STR_AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE
= "German Exclusive Economic Zone";
1195 public static String STR_AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE
= "Swedish Exclusive Economic Zone";
1196 public static String STR_AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Ukrainian Exclusive Economic Zone";
1197 public static String STR_AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE
= "Madeiran Exclusive Economic Zone";
1198 public static String STR_AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE
= "Lebanese Exclusive Economic Zone";
1199 public static String STR_AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART
= "Spanish Exclusive Economic Zone [Mediterranean part]";
1200 public static String STR_AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Estonian Exclusive Economic Zone";
1201 public static String STR_AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE
= "Croatian Exclusive Economic Zone";
1202 public static String STR_AREA_BALEAR_SEA
= "Balear Sea";
1203 public static String STR_AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE
= "Turkish Exclusive Economic Zone";
1204 public static String STR_AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE
= "Danish Exclusive Economic Zone";
1209 public static int STATUS_PRESENT
= 1;
1210 public static int STATUS_ABSENT
= 2;
1211 public static int STATUS_NATIVE
= 3;
1212 public static int STATUS_INTRODUCED
= 4;
1213 public static int STATUS_NATURALISED
= 5;
1214 public static int STATUS_INVASIVE
= 6;
1215 public static int STATUS_MANAGED
= 7;
1216 public static int STATUS_DOUBTFUL
= 8;
1218 public static String STR_STATUS_PRESENT
= "Present";
1219 public static String STR_STATUS_ABSENT
= "Absent";
1220 public static String STR_STATUS_NATIVE
= "Native";
1221 public static String STR_STATUS_INTRODUCED
= "Introduced";
1222 public static String STR_STATUS_NATURALISED
= "Naturalised";
1223 public static String STR_STATUS_INVASIVE
= "Invasive";
1224 public static String STR_STATUS_MANAGED
= "Managed";
1225 public static String STR_STATUS_DOUBTFUL
= "Doubtful";
1229 * Converts the databaseString to its abbreviation if its known.
1230 * Otherwise the databaseString is returned.
1231 * @param databaseString
1234 public static String
databaseString2Abbreviation(String databaseString
) {
1235 String result
= databaseString
;
1236 if (databaseString
.equals("Fauna Europaea database")) {
1243 * Returns the OccurrenceStatusCache for a given PresenceAbsenceTerm.
1246 * @throws UnknownCdmTypeException
1248 public static String
presenceAbsenceTerm2OccurrenceStatusCache(PresenceAbsenceTermBase
<?
> term
) {
1249 String result
= null;
1250 if (term
.isInstanceOf(PresenceTerm
.class)) {
1251 PresenceTerm presenceTerm
= CdmBase
.deproxy(term
, PresenceTerm
.class);
1252 if (presenceTerm
.equals(PresenceTerm
.PRESENT())) {
1253 result
= STR_STATUS_PRESENT
;
1254 } else if (presenceTerm
.equals(PresenceTerm
.NATIVE())) {
1255 result
= STR_STATUS_NATIVE
;
1256 } else if (presenceTerm
.equals(PresenceTerm
.INTRODUCED())) {
1257 result
= STR_STATUS_INTRODUCED
;
1258 } else if (presenceTerm
.equals(PresenceTerm
.NATURALISED())) {
1259 result
= STR_STATUS_NATURALISED
;
1260 } else if (presenceTerm
.equals(PresenceTerm
.INVASIVE())) {
1261 result
= STR_STATUS_INVASIVE
;
1262 } else if (presenceTerm
.equals(PresenceTerm
.INTRODUCED_CULTIVATED())) {
1263 result
= STR_STATUS_MANAGED
;
1264 } else if (presenceTerm
.equals(PresenceTerm
.PRESENT_DOUBTFULLY())) {
1265 result
= STR_STATUS_DOUBTFUL
;
1267 logger
.error("PresenceTerm could not be translated to datawarehouse occurrence status id: " + presenceTerm
.getLabel());
1269 } else if (term
.isInstanceOf(AbsenceTerm
.class)) {
1270 AbsenceTerm absenceTerm
= CdmBase
.deproxy(term
, AbsenceTerm
.class);
1271 if (absenceTerm
.equals(AbsenceTerm
.ABSENT())) {
1272 result
= STR_STATUS_ABSENT
;
1274 logger
.error("AbsenceTerm could not be translated to datawarehouse occurrence status id: " + absenceTerm
.getLabel());
1281 * Returns the OccurrenceStatusId for a given PresenceAbsenceTerm.
1284 * @throws UnknownCdmTypeException
1286 public static Integer
presenceAbsenceTerm2OccurrenceStatusId(PresenceAbsenceTermBase
<?
> term
) {
1287 Integer result
= null;
1288 if (term
.isInstanceOf(PresenceTerm
.class)) {
1289 PresenceTerm presenceTerm
= CdmBase
.deproxy(term
, PresenceTerm
.class);
1290 if (presenceTerm
.equals(PresenceTerm
.PRESENT())) {
1291 result
= STATUS_PRESENT
;
1292 } else if (presenceTerm
.equals(PresenceTerm
.NATIVE())) {
1293 result
= STATUS_NATIVE
;
1294 } else if (presenceTerm
.equals(PresenceTerm
.INTRODUCED())) {
1295 result
= STATUS_INTRODUCED
;
1296 } else if (presenceTerm
.equals(PresenceTerm
.NATURALISED())) {
1297 result
= STATUS_NATURALISED
;
1298 } else if (presenceTerm
.equals(PresenceTerm
.INVASIVE())) {
1299 result
= STATUS_INVASIVE
;
1300 } else if (presenceTerm
.equals(PresenceTerm
.CULTIVATED())) {
1301 result
= STATUS_MANAGED
;
1302 } else if (presenceTerm
.equals(PresenceTerm
.PRESENT_DOUBTFULLY())) {
1303 result
= STATUS_DOUBTFUL
;
1305 logger
.error("PresenceTerm could not be translated to datawarehouse occurrence status id: " + presenceTerm
.getLabel());
1307 } else if (term
.isInstanceOf(AbsenceTerm
.class)) {
1308 AbsenceTerm absenceTerm
= CdmBase
.deproxy(term
, AbsenceTerm
.class);
1309 if (absenceTerm
.equals(AbsenceTerm
.ABSENT())) {
1310 result
= STATUS_ABSENT
;
1312 logger
.error("AbsenceTerm could not be translated to datawarehouse occurrence status id: " + absenceTerm
.getLabel());
1319 * Returns the AreaCache for a given Area.
1323 public static String
area2AreaCache(NamedArea area
) {
1326 } else if (area
.isInstanceOf(TdwgArea
.class)) {
1327 NamedArea namedArea
= CdmBase
.deproxy(area
, NamedArea
.class);
1329 // TODO: Areas identified by the string "TODO" (for now) have to be identified correctly after additions have been made to the list of NamedArea's according to specific imports, i.e. euro+med
1330 if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_EAST_AEGEAN_ISLANDS
; }
1331 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("EAI")) { return STR_AREA_GREEK_EAST_AEGEAN_ISLANDS
; }
1332 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("EAI-OO")) { return STR_AREA_GREEK_EAST_AEGEAN_ISLANDS
; }
1333 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_TURKISH_EAST_AEGEAN_ISLANDS
; }
1334 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ALB")) { return STR_AREA_ALBANIA
; }
1335 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ALB-OO")) { return STR_AREA_ALBANIA
; }
1336 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AUT")) { return STR_AREA_AUSTRIA_WITH_LIECHTENSTEIN
; }
1337 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AUT-AU")) { return STR_AREA_AUSTRIA
; }
1338 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AUT-LI")) { return STR_AREA_LIECHTENSTEIN
; }
1339 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AZO")) { return STR_AREA_AZORES
; }
1340 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AZO-OO")) { return STR_AREA_AZORES
; }
1341 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_CORVO
; }
1342 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FAIAL
; }
1343 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_GRACIOSA
; }
1344 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_SAO_JORGE
; }
1345 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FLORES
; }
1346 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_SAO_MIGUEL
; }
1347 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_PICO
; }
1348 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_SANTA_MARIA
; }
1349 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_TERCEIRA
; }
1350 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BGM")) { return STR_AREA_BELGIUM_WITH_LUXEMBOURG
; }
1351 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BGM-BE")) { return STR_AREA_BELGIUM
; }
1352 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BGM-LU")) { return STR_AREA_LUXEMBOURG
; }
1353 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-BH")) { return STR_AREA_BOSNIA_HERZEGOVINA
; }
1354 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BAL")) { return STR_AREA_BALEARES
; }
1355 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BAL-OO")) { return STR_AREA_BALEARES
; }
1356 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_IBIZA_WITH_FORMENTERA
; }
1357 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_MALLORCA
; }
1358 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_MENORCA
; }
1359 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRB")) { return STR_AREA_GREAT_BRITAIN
; }
1360 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRB-OO")) { return STR_AREA_GREAT_BRITAIN
; }
1361 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT")) { return STR_AREA_BALTIC_STATES_ESTONIA_LATVIA_LITHUANIA_AND_KALININGRAD_REGION
; }
1362 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BUL")) { return STR_AREA_BULGARIA
; }
1363 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BUL-OO")) { return STR_AREA_BULGARIA
; }
1364 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLR")) { return STR_AREA_BELARUS
; }
1365 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLR-OO")) { return STR_AREA_BELARUS
; }
1366 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CNY")) { return STR_AREA_CANARY_ISLANDS
; }
1367 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CNY-OO")) { return STR_AREA_CANARY_ISLANDS
; }
1368 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_GRAN_CANARIA
; }
1369 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FUERTEVENTURA_WITH_LOBOS
; }
1370 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_GOMERA
; }
1371 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_HIERRO
; }
1372 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_LANZAROTE_WITH_GRACIOSA
; }
1373 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_LA_PALMA
; }
1374 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_TENERIFE
; }
1375 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-MN")) { return STR_AREA_MONTENEGRO
; }
1376 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("COR")) { return STR_AREA_CORSE
; }
1377 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("COR-OO")) { return STR_AREA_CORSE
; }
1378 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("KRI")) { return STR_AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS
; }
1379 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("KRI-OO")) { return STR_AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS
; }
1380 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CZE-CZ")) { return STR_AREA_CZECH_REPUBLIC
; }
1381 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-CR")) { return STR_AREA_CROATIA
; }
1382 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CYP")) { return STR_AREA_CYPRUS
; }
1383 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CYP-OO")) { return STR_AREA_CYPRUS
; }
1384 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CZE")) { return STR_AREA_FORMER_CZECHOSLOVAKIA
; }
1385 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("DEN")) { return STR_AREA_DENMARK_WITH_BORNHOLM
; }
1386 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("DEN-OO")) { return STR_AREA_DENMARK_WITH_BORNHOLM
; }
1387 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT-ES")) { return STR_AREA_ESTONIA
; }
1388 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FOR")) { return STR_AREA_FAROE_ISLANDS
; }
1389 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FOR-OO")) { return STR_AREA_FAROE_ISLANDS
; }
1390 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FIN")) { return STR_AREA_FINLAND_WITH_AHVENANMAA
; }
1391 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FIN-OO")) { return STR_AREA_FINLAND_WITH_AHVENANMAA
; }
1392 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FRA")) { return STR_AREA_FRANCE
; }
1393 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FRA-CI")) { return STR_AREA_CHANNEL_ISLANDS
; }
1394 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FRA-FR")) { return STR_AREA_FRENCH_MAINLAND
; }
1395 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FRA-MO")) { return STR_AREA_MONACO
; }
1396 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GER")) { return STR_AREA_GERMANY
; }
1397 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GER-OO")) { return STR_AREA_GERMANY
; }
1398 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRC")) { return STR_AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS
; }
1399 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRC-OO")) { return STR_AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS
; }
1400 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("IRE")) { return STR_AREA_IRELAND
; }
1401 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("IRE-IR")) { return STR_AREA_REPUBLIC_OF_IRELAND
; }
1402 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("IRE-NI")) { return STR_AREA_NORTHERN_IRELAND
; }
1403 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SWI")) { return STR_AREA_SWITZERLAND
; }
1404 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SWI-OO")) { return STR_AREA_SWITZERLAND
; }
1405 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NET")) { return STR_AREA_NETHERLANDS
; }
1406 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NET-OO")) { return STR_AREA_NETHERLANDS
; }
1407 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SPA")) { return STR_AREA_SPAIN
; }
1408 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SPA-AN")) { return STR_AREA_ANDORRA
; }
1409 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SPA-GI")) { return STR_AREA_GIBRALTAR
; }
1410 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SPA-SP")) { return STR_AREA_KINGDOM_OF_SPAIN
; }
1411 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("HUN")) { return STR_AREA_HUNGARY
; }
1412 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("HUN-OO")) { return STR_AREA_HUNGARY
; }
1413 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ICE")) { return STR_AREA_ICELAND
; }
1414 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ICE-OO")) { return STR_AREA_ICELAND
; }
1415 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ITA")) { return STR_AREA_ITALY
; }
1416 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ITA-IT")) { return STR_AREA_ITALIAN_MAINLAND
; }
1417 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ITA-SM")) { return STR_AREA_SAN_MARINO
; }
1418 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG")) { return STR_AREA_FORMER_JUGOSLAVIA
; }
1419 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT-LA")) { return STR_AREA_LATVIA
; }
1420 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT-LI")) { return STR_AREA_LITHUANIA
; }
1421 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("POR")) { return STR_AREA_PORTUGUESE_MAINLAND
; }
1422 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("POR-OO")) { return STR_AREA_PORTUGUESE_MAINLAND
; }
1423 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("MDR")) { return STR_AREA_MADEIRA
; }
1424 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("MDR-OO")) { return STR_AREA_MADEIRA
; }
1425 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_DESERTAS
; }
1426 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_PORTO_SANTO
; }
1427 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-MA")) { return STR_AREA_THE_FORMER_JUGOSLAV_REPUBLIC_OF_MAKEDONIJA
; }
1428 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("UKR-MO")) { return STR_AREA_MOLDOVA
; }
1429 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NOR")) { return STR_AREA_NORWEGIAN_MAINLAND
; }
1430 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NOR-OO")) { return STR_AREA_NORWEGIAN_MAINLAND
; }
1431 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("POL")) { return STR_AREA_POLAND
; }
1432 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("POL-OO")) { return STR_AREA_POLAND
; }
1433 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUS")) { return STR_AREA_THE_RUSSIAN_FEDERATION
; }
1434 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("WSB")) { return STR_AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND
; }
1435 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("WSB-OO")) { return STR_AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND
; }
1436 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUC")) { return STR_AREA_CENTRAL_EUROPEAN_RUSSIA
; }
1437 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUC-OO")) { return STR_AREA_CENTRAL_EUROPEAN_RUSSIA
; }
1438 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUE")) { return STR_AREA_EASTERN_EUROPEAN_RUSSIA
; }
1439 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUE-OO")) { return STR_AREA_EASTERN_EUROPEAN_RUSSIA
; }
1440 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT-KA")) { return STR_AREA_KALININGRAD
; }
1441 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUN")) { return STR_AREA_NORTHERN_EUROPEAN_RUSSIA
; }
1442 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUN-OO")) { return STR_AREA_NORTHERN_EUROPEAN_RUSSIA
; }
1443 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUW")) { return STR_AREA_NORTHWEST_EUROPEAN_RUSSIA
; }
1444 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUW-OO")) { return STR_AREA_NORTHWEST_EUROPEAN_RUSSIA
; }
1445 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUS")) { return STR_AREA_SOUTH_EUROPEAN_RUSSIA
; }
1446 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUS-OO")) { return STR_AREA_SOUTH_EUROPEAN_RUSSIA
; }
1447 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ROM")) { return STR_AREA_ROMANIA
; }
1448 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ROM-OO")) { return STR_AREA_ROMANIA
; }
1449 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FORMER_USSR
; }
1450 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_RUSSIA_BALTIC
; }
1451 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUC")) { return STR_AREA_RUSSIA_CENTRAL
; }
1452 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_RUSSIA_SOUTHEAST
; }
1453 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUN")) { return STR_AREA_RUSSIA_NORTHERN
; }
1454 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_RUSSIA_SOUTHWEST
; }
1455 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SAR")) { return STR_AREA_SARDEGNA
; }
1456 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SAR-OO")) { return STR_AREA_SARDEGNA
; }
1457 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SVA")) { return STR_AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN
; }
1458 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SVA-OO")) { return STR_AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN
; }
1459 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SEL")) { return STR_AREA_SELVAGENS_ISLANDS
; }
1460 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SEL-OO")) { return STR_AREA_SELVAGENS_ISLANDS
; }
1461 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIC")) { return STR_AREA_SICILY_WITH_MALTA
; }
1462 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIC-MA")) { return STR_AREA_MALTA
; }
1463 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIC-SI")) { return STR_AREA_SICILY
; }
1464 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CZE-SK")) { return STR_AREA_SLOVAKIA
; }
1465 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-SL")) { return STR_AREA_SLOVENIA
; }
1466 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CS")) { return STR_AREA_SERBIA_WITH_MONTENEGRO
; }
1467 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-SE")) { return STR_AREA_SERBIA_INCLUDING_VOJVODINA_AND_WITH_KOSOVO
; }
1468 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SWE")) { return STR_AREA_SWEDEN
; }
1469 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SWE-OO")) { return STR_AREA_SWEDEN
; }
1470 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUE")) { return STR_AREA_EUROPEAN_TURKEY
; }
1471 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUE-OO")) { return STR_AREA_EUROPEAN_TURKEY
; }
1472 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_UKRAINE_INCLUDING_CRIMEA
; }
1473 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("KRY")) { return STR_AREA_CRIMEA
; }
1474 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("KRY-OO")) { return STR_AREA_CRIMEA
; }
1475 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("UKR-UK")) { return STR_AREA_UKRAINE
; }
1476 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRE")) { return STR_AREA_GREEK_MAINLAND
; }
1477 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GR-KRI")) { return STR_AREA_CRETE
; }
1478 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GR-DOD")) { return STR_AREA_DODECANESE_ISLANDS
; }
1479 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GR-CYC")) { return STR_AREA_CYCLADES_ISLANDS
; }
1480 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GR-AEG")) { return STR_AREA_NORTH_AEGEAN_ISLANDS
; }
1481 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ITA-VC")) { return STR_AREA_VATICAN_CITY
; }
1482 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_FRANZ_JOSEF_LAND
; }
1483 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_NOVAYA_ZEMLYA
; }
1484 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AZ")) { return STR_AREA_AZERBAIJAN_INCLUDING_NAKHICHEVAN
; }
1485 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TCS-AZ")) { return STR_AREA_AZERBAIJAN
; }
1486 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TCS-NA")) { return STR_AREA_NAKHICHEVAN
; }
1487 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ALG")) { return STR_AREA_ALGERIA
; }
1488 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ALG-OO")) { return STR_AREA_ALGERIA
; }
1489 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TCS-AR")) { return STR_AREA_ARMENIA
; }
1490 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("33")) { return STR_AREA_CAUCASUS_REGION
; }
1491 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("EGY")) { return STR_AREA_EGYPT
; }
1492 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("EGY-OO")) { return STR_AREA_EGYPT
; }
1493 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_GEORGIA
; }
1494 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("PAL")) { return STR_AREA_ISRAEL_JORDAN
; }
1495 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("PAL-IS")) { return STR_AREA_ISRAEL
; }
1496 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("PAL-JO")) { return STR_AREA_JORDAN
; }
1497 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("LBS-LB")) { return STR_AREA_LEBANON
; }
1498 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("LBY-OO")) { return STR_AREA_LIBYA
; }
1499 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("LBS")) { return STR_AREA_LEBANON_SYRIA
; }
1500 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("MOR")) { return STR_AREA_MOROCCO
; }
1501 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NCS")) { return STR_AREA_NORTH_CAUCASUS
; }
1502 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIN")) { return STR_AREA_SINAI
; }
1503 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIN-OO")) { return STR_AREA_SINAI
; }
1504 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("LBS-SY")) { return STR_AREA_SYRIA
; }
1505 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUN")) { return STR_AREA_TUNISIA
; }
1506 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUN-OO")) { return STR_AREA_TUNISIA
; }
1507 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_ASIATIC_TURKEY
; }
1508 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_ASIATIC_TURKEY
; }
1509 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUR")) { return STR_AREA_TURKEY
; }
1510 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUR-OO")) { return STR_AREA_TURKEY
; }
1511 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("20")) { return STR_AREA_NORTHERN_AFRICA
; }
1512 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AFR")) { return STR_AREA_AFRO_TROPICAL_REGION
; }
1513 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AUS")) { return STR_AREA_AUSTRALIAN_REGION
; }
1514 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return STR_AREA_EAST_PALAEARCTIC
; }
1515 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NEA")) { return STR_AREA_NEARCTIC_REGION
; }
1516 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NEO")) { return STR_AREA_NEOTROPICAL_REGION
; }
1517 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NRE")) { return STR_AREA_NEAR_EAST
; }
1518 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ORR")) { return STR_AREA_ORIENTAL_REGION
; }
1519 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidEuropeanMarineWaters
)) { return STR_AREA_EUROPEAN_MARINE_WATERS
; }
1520 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("MES") ||
1521 (namedArea
.getUuid().equals(ErmsTransformer
.uuidMediterraneanSea
))) { return STR_AREA_MEDITERRANEAN_SEA
; } // abbreviated label missing
1522 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidWhiteSea
)) { return STR_AREA_WHITE_SEA
; }
1523 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidNorthSea
)) { return STR_AREA_NORTH_SEA
; }
1524 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBalticSea
)) { return STR_AREA_BALTIC_SEA
; }
1525 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLS") ||
1526 (namedArea
.getUuid().equals(ErmsTransformer
.uuidBlackSea
))) { return STR_AREA_BLACK_SEA
; } // abbreviated label missing
1527 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBarentsSea
)) { return STR_AREA_BARENTS_SEA
; }
1528 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CAS") ||
1529 (namedArea
.getUuid().equals(ErmsTransformer
.uuidCaspianSea
))) { return STR_AREA_CASPIAN_SEA
; } // abbreviated label missing
1530 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidPortugueseExclusiveEconomicZone
)) { return STR_AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE
; }
1531 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBelgianExclusiveEconomicZone
)) { return STR_AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1532 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidFrenchExclusiveEconomicZone
)) { return STR_AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE
; }
1533 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidEnglishChannel
)) { return STR_AREA_ENGLISH_CHANNEL
; }
1534 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidAdriaticSea
)) { return STR_AREA_ADRIATIC_SEA
; }
1535 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBiscayBay
)) { return STR_AREA_BISCAY_BAY
; }
1536 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidDutchExclusiveEconomicZone
)) { return STR_AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE
; }
1537 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidUnitedKingdomExclusiveEconomicZone
)) { return STR_AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE
; }
1538 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSpanishExclusiveEconomicZone
)) { return STR_AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1539 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidEgyptianExclusiveEconomicZone
)) { return STR_AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1540 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidGrecianExclusiveEconomicZone
)) { return STR_AREA_GRECIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1541 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidTirrenoSea
)) { return STR_AREA_TIRRENO_SEA
; }
1542 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidIcelandicExclusiveEconomicZone
)) { return STR_AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE
; }
1543 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidIrishExclusiveeconomicZone
)) { return STR_AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1544 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidIrishSea
)) { return STR_AREA_IRISH_SEA
; }
1545 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidItalianExclusiveEconomicZone
)) { return STR_AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1546 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidNorwegianSea
)) { return STR_AREA_NORWEGIAN_SEA
; }
1547 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidMoroccanExclusiveEconomicZone
)) { return STR_AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1548 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidNorwegianExclusiveEconomicZone
)) { return STR_AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1549 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSkagerrak
)) { return STR_AREA_SKAGERRAK
; }
1550 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidTunisianExclusiveEconomicZone
)) { return STR_AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1551 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidWaddenSea
)) { return STR_AREA_WADDEN_SEA
; }
1552 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBeltSea
)) { return STR_AREA_BELT_SEA
; }
1553 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidMarmaraSea
)) { return STR_AREA_MARMARA_SEA
; }
1554 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSeaofAzov
)) { return STR_AREA_SEA_OF_AZOV
; }
1555 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidAegeanSea
)) { return STR_AREA_AEGEAN_SEA
; }
1556 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBulgarianExclusiveEconomicZone
)) { return STR_AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1557 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSouthBalticproper
)) { return STR_AREA_SOUTH_BALTIC_PROPER
; }
1558 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBalticProper
)) { return STR_AREA_BALTIC_PROPER
; }
1559 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidNorthBalticproper
)) { return STR_AREA_NORTH_BALTIC_PROPER
; }
1560 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidArchipelagoSea
)) { return STR_AREA_ARCHIPELAGO_SEA
; }
1561 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBothnianSea
)) { return STR_AREA_BOTHNIAN_SEA
; }
1562 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidGermanExclusiveEconomicZone
)) { return STR_AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1563 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSwedishExclusiveEconomicZone
)) { return STR_AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1564 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidUkrainianExclusiveEconomicZone
)) { return STR_AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1565 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidMadeiranExclusiveEconomicZone
)) { return STR_AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1566 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidLebaneseExclusiveEconomicZone
)) { return STR_AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE
; }
1567 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSpanishExclusiveEconomicZoneMediterraneanpart
)) { return STR_AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART
; }
1568 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidEstonianExclusiveEconomicZone
)) { return STR_AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1569 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidCroatianExclusiveEconomicZone
)) { return STR_AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1570 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBalearSea
)) { return STR_AREA_BALEAR_SEA
; }
1571 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidTurkishExclusiveEconomicZone
)) { return STR_AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1572 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidDanishExclusiveEconomicZone
)) { return STR_AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1574 logger
.error("Unknown NamedArea Area: " + area
.getTitleCache());
1575 return null; // Actually the export has to stop here because AreaFk's are not allowed to be NULL.
1578 return null; // Actually the export has to stop here because AreaFk's are not allowed to be NULL.
1583 * Returns the AreaId for a given Area.
1587 public static Integer
area2AreaId(NamedArea area
) {
1590 } else if (area
.isInstanceOf(TdwgArea
.class)) {
1591 NamedArea namedArea
= CdmBase
.deproxy(area
, NamedArea
.class);
1593 // TODO: Areas identified by the string "TODO" (for now) have to be identified correctly after additions have been made to the list of NamedArea's according to specific imports, i.e. euro+med
1594 if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_EAST_AEGEAN_ISLANDS
; }
1595 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("EAI")) { return AREA_GREEK_EAST_AEGEAN_ISLANDS
; }
1596 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("EAI-OO")) { return AREA_GREEK_EAST_AEGEAN_ISLANDS
; }
1597 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_TURKISH_EAST_AEGEAN_ISLANDS
; }
1598 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ALB")) { return AREA_ALBANIA
; }
1599 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ALB-OO")) { return AREA_ALBANIA
; }
1600 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AUT")) { return AREA_AUSTRIA_WITH_LIECHTENSTEIN
; }
1601 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AUT-AU")) { return AREA_AUSTRIA
; }
1602 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AUT-LI")) { return AREA_LIECHTENSTEIN
; }
1603 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AZO")) { return AREA_AZORES
; }
1604 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AZO-OO")) { return AREA_AZORES
; }
1605 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_CORVO
; }
1606 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FAIAL
; }
1607 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_GRACIOSA
; }
1608 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_SAO_JORGE
; }
1609 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FLORES
; }
1610 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_SAO_MIGUEL
; }
1611 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_PICO
; }
1612 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_SANTA_MARIA
; }
1613 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_TERCEIRA
; }
1614 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BGM")) { return AREA_BELGIUM_WITH_LUXEMBOURG
; }
1615 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BGM-BE")) { return AREA_BELGIUM
; }
1616 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BGM-LU")) { return AREA_LUXEMBOURG
; }
1617 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-BH")) { return AREA_BOSNIA_HERZEGOVINA
; }
1618 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BAL")) { return AREA_BALEARES
; }
1619 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BAL-OO")) { return AREA_BALEARES
; }
1620 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_IBIZA_WITH_FORMENTERA
; }
1621 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_MALLORCA
; }
1622 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_MENORCA
; }
1623 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRB")) { return AREA_GREAT_BRITAIN
; }
1624 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRB-OO")) { return AREA_GREAT_BRITAIN
; }
1625 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT")) { return AREA_BALTIC_STATES_ESTONIA_LATVIA_LITHUANIA_AND_KALININGRAD_REGION
; }
1626 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BUL")) { return AREA_BULGARIA
; }
1627 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BUL-OO")) { return AREA_BULGARIA
; }
1628 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLR")) { return AREA_BELARUS
; }
1629 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLR-OO")) { return AREA_BELARUS
; }
1630 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CNY")) { return AREA_CANARY_ISLANDS
; }
1631 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CNY-OO")) { return AREA_CANARY_ISLANDS
; }
1632 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_GRAN_CANARIA
; }
1633 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FUERTEVENTURA_WITH_LOBOS
; }
1634 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_GOMERA
; }
1635 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_HIERRO
; }
1636 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_LANZAROTE_WITH_GRACIOSA
; }
1637 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_LA_PALMA
; }
1638 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_TENERIFE
; }
1639 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-MN")) { return AREA_MONTENEGRO
; }
1640 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("COR")) { return AREA_CORSE
; }
1641 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("COR-OO")) { return AREA_CORSE
; }
1642 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("KRI")) { return AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS
; }
1643 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("KRI-OO")) { return AREA_CRETE_WITH_KARPATHOS_KASOS_AND_GAVDHOS
; }
1644 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CZE-CZ")) { return AREA_CZECH_REPUBLIC
; }
1645 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-CR")) { return AREA_CROATIA
; }
1646 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CYP")) { return AREA_CYPRUS
; }
1647 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CYP-OO")) { return AREA_CYPRUS
; }
1648 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CZE")) { return AREA_FORMER_CZECHOSLOVAKIA
; }
1649 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("DEN")) { return AREA_DENMARK_WITH_BORNHOLM
; }
1650 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("DEN-OO")) { return AREA_DENMARK_WITH_BORNHOLM
; }
1651 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT-ES")) { return AREA_ESTONIA
; }
1652 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FOR")) { return AREA_FAROE_ISLANDS
; }
1653 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FOR-OO")) { return AREA_FAROE_ISLANDS
; }
1654 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FIN")) { return AREA_FINLAND_WITH_AHVENANMAA
; }
1655 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FIN-OO")) { return AREA_FINLAND_WITH_AHVENANMAA
; }
1656 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FRA")) { return AREA_FRANCE
; }
1657 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FRA-CI")) { return AREA_CHANNEL_ISLANDS
; }
1658 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FRA-FR")) { return AREA_FRENCH_MAINLAND
; }
1659 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("FRA-MO")) { return AREA_MONACO
; }
1660 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GER")) { return AREA_GERMANY
; }
1661 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GER-OO")) { return AREA_GERMANY
; }
1662 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRC")) { return AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS
; }
1663 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRC-OO")) { return AREA_GREECE_WITH_CYCLADES_AND_MORE_ISLANDS
; }
1664 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("IRE")) { return AREA_IRELAND
; }
1665 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("IRE-IR")) { return AREA_REPUBLIC_OF_IRELAND
; }
1666 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("IRE-NI")) { return AREA_NORTHERN_IRELAND
; }
1667 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SWI")) { return AREA_SWITZERLAND
; }
1668 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SWI-OO")) { return AREA_SWITZERLAND
; }
1669 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NET")) { return AREA_NETHERLANDS
; }
1670 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NET-OO")) { return AREA_NETHERLANDS
; }
1671 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SPA")) { return AREA_SPAIN
; }
1672 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SPA-AN")) { return AREA_ANDORRA
; }
1673 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SPA-GI")) { return AREA_GIBRALTAR
; }
1674 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SPA-SP")) { return AREA_KINGDOM_OF_SPAIN
; }
1675 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("HUN")) { return AREA_HUNGARY
; }
1676 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("HUN-OO")) { return AREA_HUNGARY
; }
1677 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ICE")) { return AREA_ICELAND
; }
1678 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ICE-OO")) { return AREA_ICELAND
; }
1679 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ITA")) { return AREA_ITALY
; }
1680 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ITA-IT")) { return AREA_ITALIAN_MAINLAND
; }
1681 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ITA-SM")) { return AREA_SAN_MARINO
; }
1682 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG")) { return AREA_FORMER_JUGOSLAVIA
; }
1683 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT-LA")) { return AREA_LATVIA
; }
1684 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT-LI")) { return AREA_LITHUANIA
; }
1685 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("POR")) { return AREA_PORTUGUESE_MAINLAND
; }
1686 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("POR-OO")) { return AREA_PORTUGUESE_MAINLAND
; }
1687 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("MDR")) { return AREA_MADEIRA
; }
1688 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("MDR-OO")) { return AREA_MADEIRA
; }
1689 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_DESERTAS
; }
1690 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_PORTO_SANTO
; }
1691 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-MA")) { return AREA_THE_FORMER_JUGOSLAV_REPUBLIC_OF_MAKEDONIJA
; }
1692 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("UKR-MO")) { return AREA_MOLDOVA
; }
1693 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NOR")) { return AREA_NORWEGIAN_MAINLAND
; }
1694 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NOR-OO")) { return AREA_NORWEGIAN_MAINLAND
; }
1695 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("POL")) { return AREA_POLAND
; }
1696 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("POL-OO")) { return AREA_POLAND
; }
1697 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUS")) { return AREA_THE_RUSSIAN_FEDERATION
; }
1698 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("WSB")) { return AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND
; }
1699 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("WSB-OO")) { return AREA_NOVAYA_ZEMLYA_AND_FRANZ_JOSEPH_LAND
; }
1700 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUC")) { return AREA_CENTRAL_EUROPEAN_RUSSIA
; }
1701 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUC-OO")) { return AREA_CENTRAL_EUROPEAN_RUSSIA
; }
1702 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUE")) { return AREA_EASTERN_EUROPEAN_RUSSIA
; }
1703 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUE-OO")) { return AREA_EASTERN_EUROPEAN_RUSSIA
; }
1704 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLT-KA")) { return AREA_KALININGRAD
; }
1705 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUN")) { return AREA_NORTHERN_EUROPEAN_RUSSIA
; }
1706 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUN-OO")) { return AREA_NORTHERN_EUROPEAN_RUSSIA
; }
1707 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUW")) { return AREA_NORTHWEST_EUROPEAN_RUSSIA
; }
1708 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUW-OO")) { return AREA_NORTHWEST_EUROPEAN_RUSSIA
; }
1709 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUS")) { return AREA_SOUTH_EUROPEAN_RUSSIA
; }
1710 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUS-OO")) { return AREA_SOUTH_EUROPEAN_RUSSIA
; }
1711 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ROM")) { return AREA_ROMANIA
; }
1712 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ROM-OO")) { return AREA_ROMANIA
; }
1713 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FORMER_USSR
; }
1714 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_RUSSIA_BALTIC
; }
1715 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUC")) { return AREA_RUSSIA_CENTRAL
; }
1716 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_RUSSIA_SOUTHEAST
; }
1717 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("RUN")) { return AREA_RUSSIA_NORTHERN
; }
1718 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_RUSSIA_SOUTHWEST
; }
1719 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SAR")) { return AREA_SARDEGNA
; }
1720 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SAR-OO")) { return AREA_SARDEGNA
; }
1721 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SVA")) { return AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN
; }
1722 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SVA-OO")) { return AREA_SVALBARD_WITH_BJORNOYA_AND_JAN_MAYEN
; }
1723 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SEL")) { return AREA_SELVAGENS_ISLANDS
; }
1724 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SEL-OO")) { return AREA_SELVAGENS_ISLANDS
; }
1725 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIC")) { return AREA_SICILY_WITH_MALTA
; }
1726 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIC-MA")) { return AREA_MALTA
; }
1727 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIC-SI")) { return AREA_SICILY
; }
1728 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CZE-SK")) { return AREA_SLOVAKIA
; }
1729 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-SL")) { return AREA_SLOVENIA
; }
1730 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CS")) { return AREA_SERBIA_WITH_MONTENEGRO
; }
1731 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("YUG-SE")) { return AREA_SERBIA_INCLUDING_VOJVODINA_AND_WITH_KOSOVO
; }
1732 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SWE")) { return AREA_SWEDEN
; }
1733 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SWE-OO")) { return AREA_SWEDEN
; }
1734 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUE")) { return AREA_EUROPEAN_TURKEY
; }
1735 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUE-OO")) { return AREA_EUROPEAN_TURKEY
; }
1736 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_UKRAINE_INCLUDING_CRIMEA
; }
1737 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("KRY")) { return AREA_CRIMEA
; }
1738 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("KRY-OO")) { return AREA_CRIMEA
; }
1739 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("UKR-UK")) { return AREA_UKRAINE
; }
1740 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GRE")) { return AREA_GREEK_MAINLAND
; }
1741 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GR-KRI")) { return AREA_CRETE
; }
1742 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GR-DOD")) { return AREA_DODECANESE_ISLANDS
; }
1743 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GR-CYC")) { return AREA_CYCLADES_ISLANDS
; }
1744 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("GR-AEG")) { return AREA_NORTH_AEGEAN_ISLANDS
; }
1745 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ITA-VC")) { return AREA_VATICAN_CITY
; }
1746 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_FRANZ_JOSEF_LAND
; }
1747 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_NOVAYA_ZEMLYA
; }
1748 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AZ")) { return AREA_AZERBAIJAN_INCLUDING_NAKHICHEVAN
; }
1749 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TCS-AZ")) { return AREA_AZERBAIJAN
; }
1750 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TCS-NA")) { return AREA_NAKHICHEVAN
; }
1751 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ALG")) { return AREA_ALGERIA
; }
1752 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ALG-OO")) { return AREA_ALGERIA
; }
1753 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TCS-AR")) { return AREA_ARMENIA
; }
1754 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("33")) { return AREA_CAUCASUS_REGION
; }
1755 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("EGY")) { return AREA_EGYPT
; }
1756 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("EGY-OO")) { return AREA_EGYPT
; }
1757 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_GEORGIA
; }
1758 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("PAL")) { return AREA_ISRAEL_JORDAN
; }
1759 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("PAL-IS")) { return AREA_ISRAEL
; }
1760 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("PAL-JO")) { return AREA_JORDAN
; }
1761 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("LBS-LB")) { return AREA_LEBANON
; }
1762 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("LBY-OO")) { return AREA_LIBYA
; }
1763 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("LBS")) { return AREA_LEBANON_SYRIA
; }
1764 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("MOR")) { return AREA_MOROCCO
; }
1765 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NCS")) { return AREA_NORTH_CAUCASUS
; }
1766 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIN")) { return AREA_SINAI
; }
1767 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("SIN-OO")) { return AREA_SINAI
; }
1768 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("LBS-SY")) { return AREA_SYRIA
; }
1769 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUN")) { return AREA_TUNISIA
; }
1770 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUN-OO")) { return AREA_TUNISIA
; }
1771 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_ASIATIC_TURKEY
; }
1772 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_ASIATIC_TURKEY
; }
1773 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUR")) { return AREA_TURKEY
; }
1774 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TUR-OO")) { return AREA_TURKEY
; }
1775 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("20")) { return AREA_NORTHERN_AFRICA
; }
1776 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AFR")) { return AREA_AFRO_TROPICAL_REGION
; }
1777 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("AUS")) { return AREA_AUSTRALIAN_REGION
; }
1778 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("TODO")) { return AREA_EAST_PALAEARCTIC
; }
1779 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NEA")) { return AREA_NEARCTIC_REGION
; }
1780 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NEO")) { return AREA_NEOTROPICAL_REGION
; }
1781 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("NRE")) { return AREA_NEAR_EAST
; }
1782 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("ORR")) { return AREA_ORIENTAL_REGION
; }
1783 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidEuropeanMarineWaters
)) { return AREA_EUROPEAN_MARINE_WATERS
; }
1784 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("MES") ||
1785 (namedArea
.getUuid().equals(ErmsTransformer
.uuidMediterraneanSea
))) { return AREA_MEDITERRANEAN_SEA
; } // abbreviated label missing
1786 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidWhiteSea
)) { return AREA_WHITE_SEA
; }
1787 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidNorthSea
)) { return AREA_NORTH_SEA
; }
1788 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBalticSea
)) { return AREA_BALTIC_SEA
; }
1789 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("BLS") ||
1790 (namedArea
.getUuid().equals(ErmsTransformer
.uuidBlackSea
))) { return AREA_BLACK_SEA
; } // abbreviated label missing
1791 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBarentsSea
)) { return AREA_BARENTS_SEA
; }
1792 else if ((namedArea
.getRepresentation(Language
.DEFAULT()).getAbbreviatedLabel()).equals("CAS") ||
1793 (namedArea
.getUuid().equals(ErmsTransformer
.uuidCaspianSea
))) { return AREA_CASPIAN_SEA
; } // abbreviated label missing
1794 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidPortugueseExclusiveEconomicZone
)) { return AREA_PORTUGUESE_EXCLUSIVE_ECONOMIC_ZONE
; }
1795 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBelgianExclusiveEconomicZone
)) { return AREA_BELGIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1796 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidFrenchExclusiveEconomicZone
)) { return AREA_FRENCH_EXCLUSIVE_ECONOMIC_ZONE
; }
1797 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidEnglishChannel
)) { return AREA_ENGLISH_CHANNEL
; }
1798 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidAdriaticSea
)) { return AREA_ADRIATIC_SEA
; }
1799 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBiscayBay
)) { return AREA_BISCAY_BAY
; }
1800 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidDutchExclusiveEconomicZone
)) { return AREA_DUTCH_EXCLUSIVE_ECONOMIC_ZONE
; }
1801 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidUnitedKingdomExclusiveEconomicZone
)) { return AREA_UNITED_KINGDOM_EXCLUSIVE_ECONOMIC_ZONE
; }
1802 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSpanishExclusiveEconomicZone
)) { return AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1803 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidEgyptianExclusiveEconomicZone
)) { return AREA_EGYPTIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1804 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidGrecianExclusiveEconomicZone
)) { return AREA_GRECIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1805 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidTirrenoSea
)) { return AREA_TIRRENO_SEA
; }
1806 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidIcelandicExclusiveEconomicZone
)) { return AREA_ICELANDIC_EXCLUSIVE_ECONOMIC_ZONE
; }
1807 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidIrishExclusiveeconomicZone
)) { return AREA_IRISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1808 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidIrishSea
)) { return AREA_IRISH_SEA
; }
1809 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidItalianExclusiveEconomicZone
)) { return AREA_ITALIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1810 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidNorwegianSea
)) { return AREA_NORWEGIAN_SEA
; }
1811 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidMoroccanExclusiveEconomicZone
)) { return AREA_MOROCCAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1812 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidNorwegianExclusiveEconomicZone
)) { return AREA_NORWEGIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1813 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSkagerrak
)) { return AREA_SKAGERRAK
; }
1814 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidTunisianExclusiveEconomicZone
)) { return AREA_TUNISIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1815 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidWaddenSea
)) { return AREA_WADDEN_SEA
; }
1816 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBeltSea
)) { return AREA_BELT_SEA
; }
1817 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidMarmaraSea
)) { return AREA_MARMARA_SEA
; }
1818 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSeaofAzov
)) { return AREA_SEA_OF_AZOV
; }
1819 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidAegeanSea
)) { return AREA_AEGEAN_SEA
; }
1820 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBulgarianExclusiveEconomicZone
)) { return AREA_BULGARIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1821 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSouthBalticproper
)) { return AREA_SOUTH_BALTIC_PROPER
; }
1822 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBalticProper
)) { return AREA_BALTIC_PROPER
; }
1823 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidNorthBalticproper
)) { return AREA_NORTH_BALTIC_PROPER
; }
1824 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidArchipelagoSea
)) { return AREA_ARCHIPELAGO_SEA
; }
1825 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBothnianSea
)) { return AREA_BOTHNIAN_SEA
; }
1826 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidGermanExclusiveEconomicZone
)) { return AREA_GERMAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1827 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSwedishExclusiveEconomicZone
)) { return AREA_SWEDISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1828 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidUkrainianExclusiveEconomicZone
)) { return AREA_UKRAINIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1829 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidMadeiranExclusiveEconomicZone
)) { return AREA_MADEIRAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1830 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidLebaneseExclusiveEconomicZone
)) { return AREA_LEBANESE_EXCLUSIVE_ECONOMIC_ZONE
; }
1831 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidSpanishExclusiveEconomicZoneMediterraneanpart
)) { return AREA_SPANISH_EXCLUSIVE_ECONOMIC_ZONE_MEDITERRANEAN_PART
; }
1832 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidEstonianExclusiveEconomicZone
)) { return AREA_ESTONIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1833 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidCroatianExclusiveEconomicZone
)) { return AREA_CROATIAN_EXCLUSIVE_ECONOMIC_ZONE
; }
1834 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidBalearSea
)) { return AREA_BALEAR_SEA
; }
1835 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidTurkishExclusiveEconomicZone
)) { return AREA_TURKISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1836 else if (namedArea
.getUuid().equals(ErmsTransformer
.uuidDanishExclusiveEconomicZone
)) { return AREA_DANISH_EXCLUSIVE_ECONOMIC_ZONE
; }
1838 logger
.error("Unknown NamedArea Area: " + area
.getTitleCache());
1846 * Returns the PESI SourceUseId for a given CDM sourceUseId.
1847 * @param sourceUseId
1850 public static Integer
sourceUseIdSourceUseId(Integer sourceUseId
) {
1851 // TODO: CDM sourceUseId and PESI sourceUseId are equal for now.
1852 Integer result
= null;
1853 switch (sourceUseId
) {
1854 case 3: return ADDITIONAL_SOURCE
;
1855 case 4: return SOURCE_OF_SYNONYMY
;
1856 case 8: return NOMENCLATURAL_REFERENCE
;
1862 * Returns the SourceUseCache for a tiven sourceUseId.
1863 * @param sourceUseId
1866 public static String
sourceUseId2SourceUseCache(Integer sourceUseId
) {
1867 // TODO: CDM sourceUseId and PESI sourceUseId are equal for now.
1868 String result
= null;
1869 switch (sourceUseId
) {
1870 case 3: return STR_ADDITIONAL_SOURCE
;
1871 case 4: return STR_SOURCE_OF_SYNONYMY
;
1872 case 8: return STR_NOMENCLATURAL_REFERENCE
;
1878 * Returns the FossilStatusCache to a given Fossil.
1882 public static String
fossil2FossilStatusCache(Fossil fossil
) {
1883 String result
= null;
1888 * Returns the FossilStatusId to a given Fossil.
1892 public static Integer
fossil2FossilStatusId(Fossil fossil
) {
1893 Integer result
= null;
1898 * Returns the LanguageCache to a given Language.
1902 public static String
language2LanguageCache(Language language
) {
1903 if (language
== null ) {
1906 if (language
.equals(Language
.ALBANIAN())) {
1907 return STR_LANGUAGE_ALBANIAN
;
1908 } else if (language
.equals(Language
.ARABIC())) {
1909 return STR_LANGUAGE_ARABIC
;
1910 } else if (language
.equals(Language
.ARMENIAN())) {
1911 return STR_LANGUAGE_ARMENIAN
;
1912 } else if (language
.equals(Language
.AZERBAIJANI())) {
1913 return STR_LANGUAGE_AZERBAIJAN
;
1914 } else if (language
.equals(Language
.BELORUSSIAN())) {
1915 return STR_LANGUAGE_BELARUSIAN
;
1916 } else if (language
.equals(Language
.BULGARIAN())) {
1917 return STR_LANGUAGE_BULGARIAN
;
1918 } else if (language
.equals(Language
.CATALAN_VALENCIAN())) {
1919 return STR_LANGUAGE_CATALAN
;
1920 } else if (language
.equals(Language
.CROATIAN())) {
1921 return STR_LANGUAGE_CROAT
;
1922 } else if (language
.equals(Language
.CZECH())) {
1923 return STR_LANGUAGE_CZECH
;
1924 } else if (language
.equals(Language
.DANISH())) {
1925 return STR_LANGUAGE_DANISH
;
1926 } else if (language
.equals(Language
.DUTCH_MIDDLE())) {
1927 return STR_LANGUAGE_DUTCH
;
1928 } else if (language
.equals(Language
.ENGLISH())) {
1929 return STR_LANGUAGE_ENGLISH
;
1930 // } else if (language.equals(Language.)) {
1931 // return STR_LANGUAGE_EUSKERA;
1932 } else if (language
.equals(Language
.ESTONIAN())) {
1933 return STR_LANGUAGE_ESTONIAN
;
1934 } else if (language
.equals(Language
.FINNISH())) {
1935 return STR_LANGUAGE_FINNISH
;
1936 } else if (language
.equals(Language
.FRENCH())) {
1937 return STR_LANGUAGE_FRENCH
;
1938 } else if (language
.equals(Language
.GEORGIAN())) {
1939 return STR_LANGUAGE_GEORGIAN
;
1940 } else if (language
.equals(Language
.GERMAN())) {
1941 return STR_LANGUAGE_GERMAN
;
1942 } else if (language
.equals(Language
.GREEK_MODERN())) {
1943 return STR_LANGUAGE_GREEK
;
1944 } else if (language
.equals(Language
.HUNGARIAN())) {
1945 return STR_LANGUAGE_HUNGARIAN
;
1946 } else if (language
.equals(Language
.ICELANDIC())) {
1947 return STR_LANGUAGE_ICELANDIC
;
1948 } else if (language
.equals(Language
.IRISH())) {
1949 return STR_LANGUAGE_IRISH_GAELIC
;
1950 } else if (language
.equals(Language
.HEBREW())) {
1951 return STR_LANGUAGE_ISRAEL_HEBREW
;
1952 } else if (language
.equals(Language
.ITALIAN())) {
1953 return STR_LANGUAGE_ITALIAN
;
1954 } else if (language
.equals(Language
.LATVIAN())) {
1955 return STR_LANGUAGE_LATVIAN
;
1956 } else if (language
.equals(Language
.LITHUANIAN())) {
1957 return STR_LANGUAGE_LITHUANIAN
;
1958 } else if (language
.equals(Language
.MACEDONIAN())) {
1959 return STR_LANGUAGE_MACEDONIAN
;
1960 } else if (language
.equals(Language
.MALTESE())) {
1961 return STR_LANGUAGE_MALTESE
;
1962 } else if (language
.equals(Language
.MOLDAVIAN())) {
1963 return STR_LANGUAGE_MOLDOVIAN
;
1964 } else if (language
.equals(Language
.NORWEGIAN())) {
1965 return STR_LANGUAGE_NORWEGIAN
;
1966 } else if (language
.equals(Language
.POLISH())) {
1967 return STR_LANGUAGE_POLISH
;
1968 } else if (language
.equals(Language
.PORTUGUESE())) {
1969 return STR_LANGUAGE_PORTUGUESE
;
1970 } else if (language
.equals(Language
.ROMANIAN())) {
1971 return STR_LANGUAGE_ROUMANIAN
;
1972 } else if (language
.equals(Language
.RUSSIAN())) {
1973 return STR_LANGUAGE_RUSSIAN
;
1974 // } else if (language.equals(Language.)) {
1975 // return STR_LANGUAGE_RUSSIAN_CAUCASIAN;
1976 // } else if (language.equals(Language.)) {
1977 // return STR_LANGUAGE_RUSSIAN_ALTAIC_KALMYK_OIRAT;
1978 // } else if (language.equals(Language.)) {
1979 // return STR_LANGUAGE_RUSSIAN_ALTAIC_KARACHAY_BALKAR;
1980 // } else if (language.equals(Language.)) {
1981 // return STR_LANGUAGE_RUSSIAN_ALTAIC_KUMYK;
1982 // } else if (language.equals(Language.)) {
1983 // return STR_LANGUAGE_RUSSIAN_ALTAIC_NOGAI;
1984 // } else if (language.equals(Language.)) {
1985 // return STR_LANGUAGE_RUSSIAN_ALTAIC_NORTH_AZERBAIJANI;
1986 // } else if (language.equals(Language.)) {
1987 // return STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_RUSSIAN;
1988 // } else if (language.equals(Language.)) {
1989 // return STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_KALMYK_OIRAT;
1990 // } else if (language.equals(Language.)) {
1991 // return STR_LANGUAGE_RUSSIAN_INDO_EUROPEAN_OSETIN;
1992 // } else if (language.equals(Language.)) {
1993 // return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_ABAZA;
1994 // } else if (language.equals(Language.)) {
1995 // return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_ADYGHE;
1996 // } else if (language.equals(Language.)) {
1997 // return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_CHECHEN;
1998 // } else if (language.equals(Language.)) {
1999 // return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_KABARDIAN;
2000 // } else if (language.equals(Language.)) {
2001 // return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_LAK;
2002 // } else if (language.equals(Language.)) {
2003 // return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_AVAR;
2004 // } else if (language.equals(Language.)) {
2005 // return STR_LANGUAGE_RUSSIAN_NORTH_CAUCASIAN_IN;
2006 // } else if (language.equals(Language.)) {
2007 // return STR_LANGUAGE_RUSSIAN_URALIC_CHUVASH;
2008 // } else if (language.equals(Language.)) {
2009 // return STR_LANGUAGE_RUSSIAN_URALIC_UDMURT;
2010 } else if (language
.equals(Language
.SERBIAN())) {
2011 return STR_LANGUAGE_SERBIAN
;
2012 } else if (language
.equals(Language
.SLOVAK())) {
2013 return STR_LANGUAGE_SLOVAK
;
2014 } else if (language
.equals(Language
.SLOVENIAN())) {
2015 return STR_LANGUAGE_SLOVENE
;
2016 } else if (language
.equals(Language
.SPANISH_CATALAN())) {
2017 return STR_LANGUAGE_SPANISH_CASTILLIAN
;
2018 } else if (language
.equals(Language
.SWEDISH())) {
2019 return STR_LANGUAGE_SWEDISH
;
2020 } else if (language
.equals(Language
.TURKISH())) {
2021 return STR_LANGUAGE_TURKISH
;
2022 } else if (language
.equals(Language
.UKRAINIAN())) {
2023 return STR_LANGUAGE_UKRAINE
;
2024 } else if (language
.equals(Language
.WELSH())) {
2025 return STR_LANGUAGE_WELSH
;
2026 } else if (language
.equals(Language
.CORSICAN())) {
2027 return STR_LANGUAGE_CORSICAN
;
2029 logger
.debug("Unknown Language: " + language
.getTitleCache());
2035 * Returns the identifier of the given Language.
2039 public static Integer
language2LanguageId(Language language
) {
2040 if (language
== null ) {
2043 if (language
.equals(Language
.ALBANIAN())) {
2044 return Language_Albanian
;
2045 } else if (language
.equals(Language
.ARABIC())) {
2046 return Language_Arabic
;
2047 } else if (language
.equals(Language
.ARMENIAN())) {
2048 return Language_Armenian
;
2049 } else if (language
.equals(Language
.AZERBAIJANI())) {
2050 return Language_Azerbaijan
;
2051 } else if (language
.equals(Language
.BELORUSSIAN())) {
2052 return Language_Belarusian
;
2053 } else if (language
.equals(Language
.BULGARIAN())) {
2054 return Language_Bulgarian
;
2055 } else if (language
.equals(Language
.CATALAN_VALENCIAN())) {
2056 return Language_Catalan
;
2057 } else if (language
.equals(Language
.CROATIAN())) {
2058 return Language_Croat
;
2059 } else if (language
.equals(Language
.CZECH())) {
2060 return Language_Czech
;
2061 } else if (language
.equals(Language
.DANISH())) {
2062 return Language_Danish
;
2063 } else if (language
.equals(Language
.DUTCH_MIDDLE())) {
2064 return Language_Dutch
;
2065 } else if (language
.equals(Language
.ENGLISH())) {
2066 return Language_English
;
2067 // } else if (language.equals(Language.)) {
2068 // return Language_Euskera;
2069 } else if (language
.equals(Language
.ESTONIAN())) {
2070 return Language_Estonian
;
2071 } else if (language
.equals(Language
.FINNISH())) {
2072 return Language_Finnish
;
2073 } else if (language
.equals(Language
.FRENCH())) {
2074 return Language_French
;
2075 } else if (language
.equals(Language
.GEORGIAN())) {
2076 return Language_Georgian
;
2077 } else if (language
.equals(Language
.GERMAN())) {
2078 return Language_German
;
2079 } else if (language
.equals(Language
.GREEK_MODERN())) {
2080 return Language_Greek
;
2081 } else if (language
.equals(Language
.HUNGARIAN())) {
2082 return Language_Hungarian
;
2083 } else if (language
.equals(Language
.ICELANDIC())) {
2084 return Language_Icelandic
;
2085 } else if (language
.equals(Language
.IRISH())) {
2086 return Language_Irish_Gaelic
;
2087 } else if (language
.equals(Language
.HEBREW())) {
2088 return Language_Israel_Hebrew
;
2089 } else if (language
.equals(Language
.ITALIAN())) {
2090 return Language_Italian
;
2091 } else if (language
.equals(Language
.LATVIAN())) {
2092 return Language_Latvian
;
2093 } else if (language
.equals(Language
.LITHUANIAN())) {
2094 return Language_Lithuanian
;
2095 } else if (language
.equals(Language
.MACEDONIAN())) {
2096 return Language_Macedonian
;
2097 } else if (language
.equals(Language
.MALTESE())) {
2098 return Language_Maltese
;
2099 } else if (language
.equals(Language
.MOLDAVIAN())) {
2100 return Language_Moldovian
;
2101 } else if (language
.equals(Language
.NORWEGIAN())) {
2102 return Language_Norwegian
;
2103 } else if (language
.equals(Language
.POLISH())) {
2104 return Language_Polish
;
2105 } else if (language
.equals(Language
.PORTUGUESE())) {
2106 return Language_Portuguese
;
2107 } else if (language
.equals(Language
.ROMANIAN())) {
2108 return Language_Roumanian
;
2109 } else if (language
.equals(Language
.RUSSIAN())) {
2110 return Language_Russian
;
2111 // } else if (language.equals(Language.)) {
2112 // return Language_Russian_Caucasian;
2113 // } else if (language.equals(Language.)) {
2114 // return Language_Russian_Altaic_kalmyk_oirat;
2115 // } else if (language.equals(Language.)) {
2116 // return Language_Russian_Altaic_karachay_balkar;
2117 // } else if (language.equals(Language.)) {
2118 // return Language_Russian_Altaic_kumyk;
2119 // } else if (language.equals(Language.)) {
2120 // return Language_Russian_Altaic_nogai;
2121 // } else if (language.equals(Language.)) {
2122 // return Language_Russian_Altaic_north_azerbaijani;
2123 // } else if (language.equals(Language.)) {
2124 // return Language_Russian_Indo_european_russian;
2125 // } else if (language.equals(Language.)) {
2126 // return Language_Russian_Indo_european_kalmyk_oirat;
2127 // } else if (language.equals(Language.)) {
2128 // return Language_Russian_Indo_european_osetin;
2129 // } else if (language.equals(Language.)) {
2130 // return Language_Russian_North_caucasian_abaza;
2131 // } else if (language.equals(Language.)) {
2132 // return Language_Russian_North_caucasian_adyghe;
2133 // } else if (language.equals(Language.)) {
2134 // return Language_Russian_North_caucasian_chechen;
2135 // } else if (language.equals(Language.)) {
2136 // return Language_Russian_North_caucasian_kabardian;
2137 // } else if (language.equals(Language.)) {
2138 // return Language_Russian_North_caucasian_lak;
2139 // } else if (language.equals(Language.)) {
2140 // return Language_Russian_North_caucasian_avar;
2141 // } else if (language.equals(Language.)) {
2142 // return Language_Russian_North_caucasian_in;
2143 // } else if (language.equals(Language.)) {
2144 // return Language_Russian_Uralic_chuvash;
2145 // } else if (language.equals(Language.)) {
2146 // return Language_Russian_Uralic_udmurt;
2147 } else if (language
.equals(Language
.SERBIAN())) {
2148 return Language_Serbian
;
2149 } else if (language
.equals(Language
.SLOVAK())) {
2150 return Language_Slovak
;
2151 } else if (language
.equals(Language
.SLOVENIAN())) {
2152 return Language_Slovene
;
2153 } else if (language
.equals(Language
.SPANISH_CATALAN())) {
2154 return Language_Spanish_Castillian
;
2155 } else if (language
.equals(Language
.SWEDISH())) {
2156 return Language_Swedish
;
2157 } else if (language
.equals(Language
.TURKISH())) {
2158 return Language_Turkish
;
2159 } else if (language
.equals(Language
.UKRAINIAN())) {
2160 return Language_Ukraine
;
2161 } else if (language
.equals(Language
.WELSH())) {
2162 return Language_Welsh
;
2163 } else if (language
.equals(Language
.CORSICAN())) {
2164 return Language_Corsican
;
2166 logger
.debug("Unknown Language: " + language
.getTitleCache());
2172 * Returns the NodeCategoryCache for a given TextData.
2176 public static String
textData2NodeCategoryCache(Feature feature
) {
2177 if (feature
== null) {
2181 if (feature
.equals(Feature
.DESCRIPTION())) {
2182 return NoteCategory_STR_description
;
2183 } else if (feature
.equals(Feature
.ECOLOGY())) {
2184 return NoteCategory_STR_ecology
;
2185 } else if (feature
.equals(Feature
.PHENOLOGY())) {
2186 return NoteCategory_STR_phenology
;
2187 } else if (feature
.equals(Feature
.COMMON_NAME())) {
2188 return NoteCategory_STR_Common_names
;
2189 } else if (feature
.equals(Feature
.OCCURRENCE())) {
2190 return NoteCategory_STR_Occurrence
;
2191 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidRemark
)) {
2192 return NoteCategory_STR_Remark
;
2193 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidAdditionalinformation
)) {
2194 return NoteCategory_STR_Additional_information
;
2195 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidSpelling
)) {
2196 return NoteCategory_STR_Spelling
;
2197 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidDateofPublication
)) {
2198 return NoteCategory_STR_Date_of_publication
;
2199 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidSystematics
)) {
2200 return NoteCategory_STR_Systematics
;
2201 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidClassification
)) {
2202 return NoteCategory_STR_Classification
;
2203 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidEnvironment
)) {
2204 return NoteCategory_STR_Environment
;
2205 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidHabitat
)) {
2206 return NoteCategory_STR_Habitat
;
2207 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidAuthority
)) {
2208 return NoteCategory_STR_Authority
;
2209 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidMorphology
)) {
2210 return NoteCategory_STR_Morphology
;
2211 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTaxonomicRemarks
)) {
2212 return NoteCategory_STR_Taxonomic_Remarks
;
2213 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidNote
)){
2214 return NoteCategory_STR_Note
;
2215 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTaxonomy
)) {
2216 return NoteCategory_STR_Taxonomy
;
2217 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTaxonomicstatus
)) {
2218 return NoteCategory_STR_Taxonomic_status
;
2219 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidStatus
)){
2220 return NoteCategory_STR_Status
;
2221 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidRank
)) {
2222 return NoteCategory_STR_Rank
;
2223 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidHomonymy
)) {
2224 return NoteCategory_STR_Homonymy
;
2225 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidNomenclature
)) {
2226 return NoteCategory_STR_Nomenclature
;
2227 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTaxonomicRemark
)) {
2228 return NoteCategory_STR_Taxonomic_Remark
;
2229 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidAcknowledgments
)){
2230 return NoteCategory_STR_Acknowledgments
;
2231 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidOriginalpublication
)) {
2232 return NoteCategory_STR_Original_publication
;
2233 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTypelocality
)) {
2234 return NoteCategory_STR_Type_locality
;
2235 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidValidity
)) {
2236 return NoteCategory_STR_Validity
;
2237 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidIdentification
)) {
2238 return NoteCategory_STR_Identification
;
2239 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidSynonymy
)) {
2240 return NoteCategory_STR_Synonymy
;
2241 // } else if (feature.equals(Feature.CITATION())) {
2244 // TODO: Unknown NodeCategories
2245 // NoteCategory_STR_general_distribution_euromed = 10;
2246 // NoteCategory_STR_general_distribution_world = 11;
2247 // NoteCategory_STR_Common_names = 12;
2248 // NoteCategory_STR_Maps =14;
2249 // NoteCategory_STR_Link_to_maps = 20;
2250 // NoteCategory_STR_Link_to_images = 21;
2251 // NoteCategory_STR_Link_to_taxonomy = 22;
2252 // NoteCategory_STR_Link_to_general_information = 23;
2253 // NoteCategory_STR_undefined_link = 24;
2254 // NoteCategory_STR_Editor_Braces = 249;
2255 // NoteCategory_STR_Editor_Brackets = 250;
2256 // NoteCategory_STR_Editor_Parenthesis = 251;
2257 // NoteCategory_STR_Inedited = 252;
2258 // NoteCategory_STR_Comments_on_editing_process = 253;
2259 // NoteCategory_STR_Publication_date = 254;
2260 // NoteCategory_STR_Distribution = 278;
2261 // NoteCategory_STR_Biology = 281;
2262 // NoteCategory_STR_Diagnosis = 282;
2263 // NoteCategory_STR_Host = 283;
2266 logger
.debug("Unknown Feature.");
2272 * Returns the NodeCategoryFk for a given TextData.
2276 public static Integer
textData2NodeCategoryFk(Feature feature
) {
2277 if (feature
== null) {
2281 if (feature
.equals(Feature
.DESCRIPTION())) {
2282 return NoteCategory_description
;
2283 } else if (feature
.equals(Feature
.ECOLOGY())) {
2284 return NoteCategory_ecology
;
2285 } else if (feature
.equals(Feature
.PHENOLOGY())) {
2286 return NoteCategory_phenology
;
2287 } else if (feature
.equals(Feature
.COMMON_NAME())) {
2288 return NoteCategory_Common_names
;
2289 } else if (feature
.equals(Feature
.OCCURRENCE())) {
2290 return NoteCategory_Occurrence
;
2291 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidRemark
)) {
2292 return NoteCategory_Remark
;
2293 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidAdditionalinformation
)) {
2294 return NoteCategory_Additional_information
;
2295 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidSpelling
)) {
2296 return NoteCategory_Spelling
;
2297 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidDateofPublication
)) {
2298 return NoteCategory_Date_of_publication
;
2299 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidSystematics
)) {
2300 return NoteCategory_Systematics
;
2301 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidClassification
)) {
2302 return NoteCategory_Classification
;
2303 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidEnvironment
)) {
2304 return NoteCategory_Environment
;
2305 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidHabitat
)) {
2306 return NoteCategory_Habitat
;
2307 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidAuthority
)) {
2308 return NoteCategory_Authority
;
2309 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidMorphology
)) {
2310 return NoteCategory_Morphology
;
2311 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTaxonomicRemarks
)) {
2312 return NoteCategory_Taxonomic_Remarks
;
2313 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidNote
)){
2314 return NoteCategory_Note
;
2315 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTaxonomy
)) {
2316 return NoteCategory_Taxonomy
;
2317 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTaxonomicstatus
)) {
2318 return NoteCategory_Taxonomic_status
;
2319 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidStatus
)){
2320 return NoteCategory_Status
;
2321 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidRank
)) {
2322 return NoteCategory_Rank
;
2323 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidHomonymy
)) {
2324 return NoteCategory_Homonymy
;
2325 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidNomenclature
)) {
2326 return NoteCategory_Nomenclature
;
2327 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTaxonomicRemark
)) {
2328 return NoteCategory_Taxonomic_Remark
;
2329 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidAcknowledgments
)){
2330 return NoteCategory_Acknowledgments
;
2331 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidOriginalpublication
)) {
2332 return NoteCategory_Original_publication
;
2333 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidTypelocality
)) {
2334 return NoteCategory_Type_locality
;
2335 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidValidity
)) {
2336 return NoteCategory_Validity
;
2337 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidIdentification
)) {
2338 return NoteCategory_Identification
;
2339 } else if (feature
.getUuid().equals(ErmsTransformer
.uuidSynonymy
)) {
2340 return NoteCategory_Synonymy
;
2341 // } else if (feature.equals(Feature.CITATION())) {
2344 // TODO: Unknown NodeCategories
2345 // NoteCategory_general_distribution_euromed = 10;
2346 // NoteCategory_general_distribution_world = 11;
2347 // NoteCategory_Common_names = 12;
2348 // NoteCategory_Maps =14;
2349 // NoteCategory_Link_to_maps = 20;
2350 // NoteCategory_Link_to_images = 21;
2351 // NoteCategory_Link_to_taxonomy = 22;
2352 // NoteCategory_Link_to_general_information = 23;
2353 // NoteCategory_undefined_link = 24;
2354 // NoteCategory_Editor_Braces = 249;
2355 // NoteCategory_Editor_Brackets = 250;
2356 // NoteCategory_Editor_Parenthesis = 251;
2357 // NoteCategory_Inedited = 252;
2358 // NoteCategory_Comments_on_editing_process = 253;
2359 // NoteCategory_Publication_date = 254;
2360 // NoteCategory_Distribution = 278;
2361 // NoteCategory_Biology = 281;
2362 // NoteCategory_Diagnosis = 282;
2363 // NoteCategory_Host = 283;
2366 logger
.warn("Unknown Feature.");
2372 * Returns the string representation for a given rank.
2374 * @param pesiKingdomId
2377 public static String
rank2RankCache(Rank rank
, Integer pesiKingdomId
) {
2378 String result
= null;
2383 // We differentiate between Animalia and Plantae only for now.
2384 if (pesiKingdomId
!= null && pesiKingdomId
.intValue() == KINGDOM_ANIMALIA
) {
2385 if (rank
.equals(Rank
.KINGDOM())) {
2386 result
= Animalia_STR_Kingdom
;
2387 } else if (rank
.equals(Rank
.SUBKINGDOM())) {
2388 result
= Animalia_STR_Subkingdom
;
2389 } else if (rank
.equals(Rank
.SUPERPHYLUM())) {
2390 result
= Animalia_STR_Superphylum
;
2391 } else if (rank
.equals(Rank
.PHYLUM())) {
2392 result
= Animalia_STR_Phylum
;
2393 } else if (rank
.equals(Rank
.SUBPHYLUM())) {
2394 result
= Animalia_STR_Subphylum
;
2395 } else if (rank
.equals(Rank
.INFRAPHYLUM())) {
2396 result
= Animalia_STR_Infraphylum
;
2397 } else if (rank
.equals(Rank
.SUPERCLASS())) {
2398 result
= Animalia_STR_Superclass
;
2399 } else if (rank
.equals(Rank
.CLASS())) {
2400 result
= Animalia_STR_Class
;
2401 } else if (rank
.equals(Rank
.SUBCLASS())) {
2402 result
= Animalia_STR_Subclass
;
2403 } else if (rank
.equals(Rank
.INFRACLASS())) {
2404 result
= Animalia_STR_Infraclass
;
2405 } else if (rank
.equals(Rank
.SUPERORDER())) {
2406 result
= Animalia_STR_Superorder
;
2407 } else if (rank
.equals(Rank
.ORDER())) {
2408 result
= Animalia_STR_Order
;
2409 } else if (rank
.equals(Rank
.SUBORDER())) {
2410 result
= Animalia_STR_Suborder
;
2411 } else if (rank
.equals(Rank
.INFRAORDER())) {
2412 result
= Animalia_STR_Infraorder
;
2413 } else if (rank
.equals(Rank
.SECTION_ZOOLOGY())) {
2414 result
= Animalia_STR_Section
;
2415 } else if (rank
.equals(Rank
.SUBSECTION_ZOOLOGY())) {
2416 result
= Animalia_STR_Subsection
;
2417 } else if (rank
.equals(Rank
.SUPERFAMILY())) {
2418 result
= Animalia_STR_Superfamily
;
2419 } else if (rank
.equals(Rank
.FAMILY())) {
2420 result
= Animalia_STR_Family
;
2421 } else if (rank
.equals(Rank
.SUBFAMILY())) {
2422 result
= Animalia_STR_Subfamily
;
2423 } else if (rank
.equals(Rank
.TRIBE())) {
2424 result
= Animalia_STR_Tribe
;
2425 } else if (rank
.equals(Rank
.SUBTRIBE())) {
2426 result
= Animalia_STR_Subtribe
;
2427 } else if (rank
.equals(Rank
.GENUS())) {
2428 result
= Animalia_STR_Genus
;
2429 } else if (rank
.equals(Rank
.SUBGENUS())) {
2430 result
= Animalia_STR_Subgenus
;
2431 } else if (rank
.equals(Rank
.SPECIES())) {
2432 result
= Animalia_STR_Species
;
2433 } else if (rank
.equals(Rank
.SUBSPECIES())) {
2434 result
= Animalia_STR_Subspecies
;
2435 // } else if (rank.equals(Rank.)) { // not yet specified
2436 // result = Animalia_STR_Natio;
2437 } else if (rank
.equals(Rank
.VARIETY())) {
2438 result
= Animalia_STR_Variety
;
2439 } else if (rank
.equals(Rank
.SUBVARIETY())) {
2440 result
= Animalia_STR_Subvariety
;
2441 } else if (rank
.equals(Rank
.FORM())) {
2442 result
= Animalia_STR_Forma
;
2445 logger
.warn("Rank for Kingdom Animalia not yet supported in CDM: "+ rank
.getLabel());
2448 } else if (pesiKingdomId
!= null && pesiKingdomId
.intValue() == KINGDOM_PLANTAE
) {
2449 if (rank
.equals(Rank
.KINGDOM())) {
2450 result
= Plantae_STR_Kingdom
;
2451 } else if (rank
.equals(Rank
.SUBKINGDOM())) {
2452 result
= Plantae_STR_Subkingdom
;
2453 } else if (rank
.equals(Rank
.DIVISION())) {
2454 result
= Plantae_STR_Division
;
2455 } else if (rank
.equals(Rank
.SUBDIVISION())) {
2456 result
= Plantae_STR_Subdivision
;
2457 } else if (rank
.equals(Rank
.CLASS())) {
2458 result
= Plantae_STR_Class
;
2459 } else if (rank
.equals(Rank
.SUBCLASS())) {
2460 result
= Plantae_STR_Subclass
;
2461 } else if (rank
.equals(Rank
.ORDER())) {
2462 result
= Plantae_STR_Order
;
2463 } else if (rank
.equals(Rank
.SUBORDER())) {
2464 result
= Plantae_STR_Suborder
;
2465 } else if (rank
.equals(Rank
.FAMILY())) {
2466 result
= Plantae_STR_Family
;
2467 } else if (rank
.equals(Rank
.SUBFAMILY())) {
2468 result
= Plantae_STR_Subfamily
;
2469 } else if (rank
.equals(Rank
.TRIBE())) {
2470 result
= Plantae_STR_Tribe
;
2471 } else if (rank
.equals(Rank
.SUBTRIBE())) {
2472 result
= Plantae_STR_Subtribe
;
2473 } else if (rank
.equals(Rank
.GENUS())) {
2474 result
= Plantae_STR_Genus
;
2475 } else if (rank
.equals(Rank
.SUBGENUS())) {
2476 result
= Plantae_STR_Subgenus
;
2477 } else if (rank
.equals(Rank
.SECTION_BOTANY())) {
2478 result
= Plantae_STR_Section
;
2479 } else if (rank
.equals(Rank
.SUBSECTION_BOTANY())) {
2480 result
= Plantae_STR_Subsection
;
2481 } else if (rank
.equals(Rank
.SERIES())) {
2482 result
= Plantae_STR_Series
;
2483 } else if (rank
.equals(Rank
.SUBSERIES())) {
2484 result
= Plantae_STR_Subseries
;
2485 // } else if (rank.equals(Rank.)) { // not yet specified
2486 // result = Plantae_STR_Aggregate;
2487 // } else if (rank.equals(Rank.)) { // not yet specified
2488 // result = Plantae_STR_Coll_Species;
2489 } else if (rank
.equals(Rank
.SPECIES())) {
2490 result
= Plantae_STR_Species
;
2491 } else if (rank
.equals(Rank
.SUBSPECIES())) {
2492 result
= Plantae_STR_Subspecies
;
2493 // } else if (rank.equals(Rank.)) { // not yet specified
2494 // result = Plantae_STR_Proles;
2495 // } else if (rank.equals(Rank.)) { // not yet specified
2496 // result = Plantae_STR_Race;
2497 } else if (rank
.equals(Rank
.CONVAR())) {
2498 result
= Plantae_STR_Convarietas
;
2499 } else if (rank
.equals(Rank
.VARIETY())) {
2500 result
= Plantae_STR_Variety
;
2501 } else if (rank
.equals(Rank
.SUBVARIETY())) {
2502 result
= Plantae_STR_Subvariety
;
2503 } else if (rank
.equals(Rank
.FORM())) {
2504 result
= Plantae_STR_Forma
;
2505 } else if (rank
.equals(Rank
.SUBFORM())) {
2506 result
= Plantae_STR_Subforma
;
2507 // } else if (rank.equals(Rank.)) { // not yet specified
2508 // result = Plantae_STR_Forma_spec;
2509 // } else if (rank.equals(Rank.)) { // not yet specified
2510 // result = Plantae_STR_Taxa_infragen;
2511 // } else if (rank.equals(Rank.)) { // not yet specified
2512 // result = Plantae_STR_Taxa_infraspec;
2515 logger
.warn("Rank for Kingdom Plantae not yet supported in CDM: "+ rank
.getLabel());
2518 } else if (pesiKingdomId
!= null && pesiKingdomId
.intValue() == KINGDOM_BACTERIA
) {
2519 if (rank
.equals(Rank
.KINGDOM())) { result
= Bacteria_STR_Kingdom
; }
2520 else if (rank
.equals(Rank
.SUBKINGDOM())) { result
= Bacteria_STR_Subkingdom
; }
2521 else if (rank
.equals(Rank
.PHYLUM())) { result
= Bacteria_STR_Phylum
; }
2522 else if (rank
.equals(Rank
.SUBPHYLUM())) { result
= Bacteria_STR_Subphylum
; }
2523 else if (rank
.equals(Rank
.SUPERCLASS())) { result
= Bacteria_STR_Superclass
; }
2524 else if (rank
.equals(Rank
.CLASS())) { result
= Bacteria_STR_Class
; }
2525 else if (rank
.equals(Rank
.SUBCLASS())) { result
= Bacteria_STR_Subclass
; }
2526 else if (rank
.equals(Rank
.INFRACLASS())) { result
= Bacteria_STR_Infraclass
; }
2527 else if (rank
.equals(Rank
.SUPERORDER())) { result
= Bacteria_STR_Superorder
; }
2528 else if (rank
.equals(Rank
.ORDER())) { result
= Bacteria_STR_Order
; }
2529 else if (rank
.equals(Rank
.SUBORDER())) { result
= Bacteria_STR_Suborder
; }
2530 else if (rank
.equals(Rank
.INFRAORDER())) { result
= Bacteria_STR_Infraorder
; }
2531 else if (rank
.equals(Rank
.SUPERFAMILY())) { result
= Bacteria_STR_Superfamily
; }
2532 else if (rank
.equals(Rank
.FAMILY())) { result
= Bacteria_STR_Family
; }
2533 else if (rank
.equals(Rank
.SUBFAMILY())) { result
= Bacteria_STR_Subfamily
; }
2534 else if (rank
.equals(Rank
.TRIBE())) { result
= Bacteria_STR_Tribe
; }
2535 else if (rank
.equals(Rank
.SUBTRIBE())) { result
= Bacteria_STR_Subtribe
; }
2536 else if (rank
.equals(Rank
.GENUS())) { result
= Bacteria_STR_Genus
; }
2537 else if (rank
.equals(Rank
.SUBGENUS())) { result
= Bacteria_STR_Subgenus
; }
2538 else if (rank
.equals(Rank
.SPECIES())) { result
= Bacteria_STR_Species
; }
2539 else if (rank
.equals(Rank
.SUBSPECIES())) { result
= Bacteria_STR_Subspecies
; }
2540 else if (rank
.equals(Rank
.VARIETY())) { result
= Bacteria_STR_Variety
; }
2541 else if (rank
.equals(Rank
.FORM())) { result
= Bacteria_STR_Forma
; }
2544 logger
.warn("Kingdom not yet supported in CDM: "+ pesiKingdomId
);
2551 * Returns the abbreviation for a given rank.
2553 * @param pesiKingdomId
2556 public static String
rank2RankAbbrev(Rank rank
, Integer pesiKingdomId
) {
2557 String result
= null;
2562 // We differentiate between Animalia and Plantae only for now.
2563 if (pesiKingdomId
!= null && pesiKingdomId
.intValue() == KINGDOM_ANIMALIA
) {
2564 if (rank
.equals(Rank
.SUBGENUS())) {
2565 result
= Animalia_Abbrev_Subgenus
;
2566 } else if (rank
.equals(Rank
.SPECIES())) {
2567 result
= Animalia_Abbrev_Species
;
2568 } else if (rank
.equals(Rank
.SUBSPECIES())) {
2569 result
= Animalia_Abbrev_Subspecies
;
2570 // } else if (rank.equals(Rank.)) { // not yet specified
2571 // result = Animalia_STR_Natio;
2572 } else if (rank
.equals(Rank
.VARIETY())) {
2573 result
= Animalia_Abbrev_Variety
;
2574 } else if (rank
.equals(Rank
.SUBVARIETY())) {
2575 result
= Animalia_Abbrev_Subvariety
;
2576 } else if (rank
.equals(Rank
.FORM())) {
2577 result
= Animalia_Abbrev_Forma
;
2580 logger
.warn("Abbreviation for Rank of Kingdom Animalia not supported in CDM: "+ rank
.getLabel());
2583 } else if (pesiKingdomId
!= null && pesiKingdomId
.intValue() == KINGDOM_PLANTAE
) {
2584 if (rank
.equals(Rank
.KINGDOM())) {
2585 result
= Plantae_Abbrev_Kingdom
;
2586 } else if (rank
.equals(Rank
.SUBKINGDOM())) {
2587 result
= Plantae_Abbrev_Subkingdom
;
2588 } else if (rank
.equals(Rank
.DIVISION())) {
2589 result
= Plantae_Abbrev_Division
;
2590 } else if (rank
.equals(Rank
.SUBDIVISION())) {
2591 result
= Plantae_Abbrev_Subdivision
;
2592 } else if (rank
.equals(Rank
.CLASS())) {
2593 result
= Plantae_Abbrev_Class
;
2594 } else if (rank
.equals(Rank
.SUBCLASS())) {
2595 result
= Plantae_Abbrev_Subclass
;
2596 } else if (rank
.equals(Rank
.ORDER())) {
2597 result
= Plantae_Abbrev_Order
;
2598 } else if (rank
.equals(Rank
.SUBORDER())) {
2599 result
= Plantae_Abbrev_Suborder
;
2600 } else if (rank
.equals(Rank
.FAMILY())) {
2601 result
= Plantae_Abbrev_Family
;
2602 } else if (rank
.equals(Rank
.SUBFAMILY())) {
2603 result
= Plantae_Abbrev_Subfamily
;
2604 } else if (rank
.equals(Rank
.TRIBE())) {
2605 result
= Plantae_Abbrev_Tribe
;
2606 } else if (rank
.equals(Rank
.SUBTRIBE())) {
2607 result
= Plantae_Abbrev_Subtribe
;
2608 } else if (rank
.equals(Rank
.GENUS())) {
2609 result
= Plantae_Abbrev_Genus
;
2610 } else if (rank
.equals(Rank
.SUBGENUS())) {
2611 result
= Plantae_Abbrev_Subgenus
;
2612 } else if (rank
.equals(Rank
.SECTION_BOTANY())) {
2613 result
= Plantae_Abbrev_Section
;
2614 } else if (rank
.equals(Rank
.SUBSECTION_BOTANY())) {
2615 result
= Plantae_Abbrev_Subsection
;
2616 } else if (rank
.equals(Rank
.SERIES())) {
2617 result
= Plantae_Abbrev_Series
;
2618 } else if (rank
.equals(Rank
.SUBSERIES())) {
2619 result
= Plantae_Abbrev_Subseries
;
2620 // } else if (rank.equals(Rank.)) { // not yet specified
2621 // result = Plantae_Abbrev_Aggregate;
2622 // } else if (rank.equals(Rank.)) { // not yet specified
2623 // result = Plantae_Abbrev_Coll_Species;
2624 } else if (rank
.equals(Rank
.SPECIES())) {
2625 result
= Plantae_Abbrev_Species
;
2626 } else if (rank
.equals(Rank
.SUBSPECIES())) {
2627 result
= Plantae_Abbrev_Subspecies
;
2628 // } else if (rank.equals(Rank.)) { // not yet specified
2629 // result = Plantae_Abbrev_Proles;
2630 // } else if (rank.equals(Rank.)) { // not yet specified
2631 // result = Plantae_Abbrev_Race;
2632 } else if (rank
.equals(Rank
.CONVAR())) {
2633 result
= Plantae_Abbrev_Convarietas
;
2634 } else if (rank
.equals(Rank
.VARIETY())) {
2635 result
= Plantae_Abbrev_Variety
;
2636 } else if (rank
.equals(Rank
.SUBVARIETY())) {
2637 result
= Plantae_Abbrev_Subvariety
;
2638 } else if (rank
.equals(Rank
.FORM())) {
2639 result
= Plantae_Abbrev_Forma
;
2640 } else if (rank
.equals(Rank
.SUBFORM())) {
2641 result
= Plantae_Abbrev_Subforma
;
2642 // } else if (rank.equals(Rank.)) { // not yet specified
2643 // result = Plantae_Abbrev_Forma_spec;
2644 // } else if (rank.equals(Rank.)) { // not yet specified
2645 // result = Plantae_Abbrev_Taxa_infragen;
2646 // } else if (rank.equals(Rank.)) { // not yet specified
2647 // result = Plantae_Abbrev_Taxa_infraspec;
2650 logger
.warn("Abbreviation for Rank of Kingdom Plantae not supported in CDM: "+ rank
.getLabel());
2655 logger
.warn("Kingdom not yet supported in CDM: "+ pesiKingdomId
);
2662 * Returns the identifier of a PESI specific kingdom for a given CDM nomenclatural code.
2663 * @param nomenclaturalCode
2664 * @return KINGDOM_ANIMALIA for NomenclaturalCode.ICZN, KINGDOM_PLANTAE for NomenclaturalCode.ICBN
2666 public static Integer
nomenClaturalCode2Kingdom(NomenclaturalCode nomenclaturalCode
) {
2667 Integer result
= null;
2668 // TODO: This needs to be refined. For now we differentiate between Animalia and Plantae only.
2669 if (nomenclaturalCode
.equals(NomenclaturalCode
.ICZN
)) {
2670 result
= KINGDOM_ANIMALIA
;
2671 } else if (nomenclaturalCode
.equals(NomenclaturalCode
.ICBN
)) {
2672 result
= KINGDOM_PLANTAE
;
2673 } else if (nomenclaturalCode
.equals(NomenclaturalCode
.ICNB
)) {
2674 result
= KINGDOM_BACTERIA
;
2675 // } else if (nomenclaturalCode.equals(NomenclaturalCode.)) { // Biota
2678 logger
.error("NomenclaturalCode not yet considered: " + nomenclaturalCode
.getUuid() + " (" + nomenclaturalCode
.getTitleCache() + ")");
2684 * Returns the NomenclaturalCode for a given TaxonNameBase.
2688 public static NomenclaturalCode
getNomenclaturalCode(TaxonNameBase taxonName
) {
2689 NomenclaturalCode code
= null;
2690 if (taxonName
.isInstanceOf(ZoologicalName
.class)) {
2691 code
= NomenclaturalCode
.ICZN
;
2692 } else if (taxonName
.isInstanceOf(BotanicalName
.class)) {
2693 code
= NomenclaturalCode
.ICBN
;
2694 } else if (taxonName
.isInstanceOf(BacterialName
.class)) {
2695 code
= NomenclaturalCode
.ICNB
;
2696 // } else if (taxonName.isInstanceOf(NonViralName.class)) { // Biota
2697 // code = NomenclaturalCode.
2699 logger
.error("NomenclaturalCode could not be determined for this TaxonName: " + taxonName
.getUuid() + " (" + taxonName
.getTitleCache() + ")");
2706 * Returns the RankId for a Rank.
2710 public static Integer
rank2RankId (Rank rank
, Integer pesiKingdomId
) {
2711 Integer result
= null;
2716 // We differentiate between Animalia and Plantae only for now.
2717 if (pesiKingdomId
!= null && pesiKingdomId
.intValue() == KINGDOM_ANIMALIA
) {
2718 if (rank
.equals(Rank
.KINGDOM())) {
2719 result
= Animalia_Kingdom
;
2720 } else if (rank
.equals(Rank
.SUBKINGDOM())) {
2721 result
= Animalia_Subkingdom
;
2722 } else if (rank
.equals(Rank
.SUPERPHYLUM())) {
2723 result
= Animalia_Superphylum
;
2724 } else if (rank
.equals(Rank
.PHYLUM())) {
2725 result
= Animalia_Phylum
;
2726 } else if (rank
.equals(Rank
.SUBPHYLUM())) {
2727 result
= Animalia_Subphylum
;
2728 } else if (rank
.equals(Rank
.INFRAPHYLUM())) {
2729 result
= Animalia_Infraphylum
;
2730 } else if (rank
.equals(Rank
.SUPERCLASS())) {
2731 result
= Animalia_Superclass
;
2732 } else if (rank
.equals(Rank
.CLASS())) {
2733 result
= Animalia_Class
;
2734 } else if (rank
.equals(Rank
.SUBCLASS())) {
2735 result
= Animalia_Subclass
;
2736 } else if (rank
.equals(Rank
.INFRACLASS())) {
2737 result
= Animalia_Infraclass
;
2738 } else if (rank
.equals(Rank
.SUPERORDER())) {
2739 result
= Animalia_Superorder
;
2740 } else if (rank
.equals(Rank
.ORDER())) {
2741 result
= Animalia_Order
;
2742 } else if (rank
.equals(Rank
.SUBORDER())) {
2743 result
= Animalia_Suborder
;
2744 } else if (rank
.equals(Rank
.INFRAORDER())) {
2745 result
= Animalia_Infraorder
;
2746 } else if (rank
.equals(Rank
.SECTION_ZOOLOGY())) {
2747 result
= Animalia_Section
;
2748 } else if (rank
.equals(Rank
.SUBSECTION_ZOOLOGY())) {
2749 result
= Animalia_Subsection
;
2750 } else if (rank
.equals(Rank
.SUPERFAMILY())) {
2751 result
= Animalia_Superfamily
;
2752 } else if (rank
.equals(Rank
.FAMILY())) {
2753 result
= Animalia_Family
;
2754 } else if (rank
.equals(Rank
.SUBFAMILY())) {
2755 result
= Animalia_Subfamily
;
2756 } else if (rank
.equals(Rank
.TRIBE())) {
2757 result
= Animalia_Tribe
;
2758 } else if (rank
.equals(Rank
.SUBTRIBE())) {
2759 result
= Animalia_Subtribe
;
2760 } else if (rank
.equals(Rank
.GENUS())) {
2761 result
= Animalia_Genus
;
2762 } else if (rank
.equals(Rank
.SUBGENUS())) {
2763 result
= Animalia_Subgenus
;
2764 } else if (rank
.equals(Rank
.SPECIES())) {
2765 result
= Animalia_Species
;
2766 } else if (rank
.equals(Rank
.SUBSPECIES())) {
2767 result
= Animalia_Subspecies
;
2768 // } else if (rank.equals(Rank.)) { // not yet specified
2769 // result = Animalia_Natio;
2770 } else if (rank
.equals(Rank
.VARIETY())) {
2771 result
= Animalia_Variety
;
2772 } else if (rank
.equals(Rank
.SUBVARIETY())) {
2773 result
= Animalia_Subvariety
;
2774 } else if (rank
.equals(Rank
.FORM())) {
2775 result
= Animalia_Forma
;
2778 logger
.warn("Rank for Kingdom Animalia not yet supported in CDM: "+ rank
.getLabel());
2781 } else if (pesiKingdomId
!= null && pesiKingdomId
.intValue() == KINGDOM_PLANTAE
) {
2782 if (rank
.equals(Rank
.KINGDOM())) {
2783 result
= Plantae_Kingdom
;
2784 } else if (rank
.equals(Rank
.SUBKINGDOM())) {
2785 result
= Plantae_Subkingdom
;
2786 } else if (rank
.equals(Rank
.DIVISION())) {
2787 result
= Plantae_Division
;
2788 } else if (rank
.equals(Rank
.SUBDIVISION())) {
2789 result
= Plantae_Subdivision
;
2790 } else if (rank
.equals(Rank
.CLASS())) {
2791 result
= Plantae_Class
;
2792 } else if (rank
.equals(Rank
.SUBCLASS())) {
2793 result
= Plantae_Subclass
;
2794 } else if (rank
.equals(Rank
.ORDER())) {
2795 result
= Plantae_Order
;
2796 } else if (rank
.equals(Rank
.SUBORDER())) {
2797 result
= Plantae_Suborder
;
2798 } else if (rank
.equals(Rank
.FAMILY())) {
2799 result
= Plantae_Family
;
2800 } else if (rank
.equals(Rank
.SUBFAMILY())) {
2801 result
= Plantae_Subfamily
;
2802 } else if (rank
.equals(Rank
.TRIBE())) {
2803 result
= Plantae_Tribe
;
2804 } else if (rank
.equals(Rank
.SUBTRIBE())) {
2805 result
= Plantae_Subtribe
;
2806 } else if (rank
.equals(Rank
.GENUS())) {
2807 result
= Plantae_Genus
;
2808 } else if (rank
.equals(Rank
.SUBGENUS())) {
2809 result
= Plantae_Subgenus
;
2810 } else if (rank
.equals(Rank
.SECTION_BOTANY())) {
2811 result
= Plantae_Section
;
2812 } else if (rank
.equals(Rank
.SUBSECTION_BOTANY())) {
2813 result
= Plantae_Subsection
;
2814 } else if (rank
.equals(Rank
.SERIES())) {
2815 result
= Plantae_Series
;
2816 } else if (rank
.equals(Rank
.SUBSERIES())) {
2817 result
= Plantae_Subseries
;
2818 // } else if (rank.equals(Rank.)) { // not yet specified
2819 // result = Plantae_Aggregate;
2820 // } else if (rank.equals(Rank.)) { // not yet specified
2821 // result = Plantae_Coll_Species;
2822 } else if (rank
.equals(Rank
.SPECIES())) {
2823 result
= Plantae_Species
;
2824 } else if (rank
.equals(Rank
.SUBSPECIES())) {
2825 result
= Plantae_Subspecies
;
2826 // } else if (rank.equals(Rank.)) { // not yet specified
2827 // result = Plantae_Proles;
2828 // } else if (rank.equals(Rank.)) { // not yet specified
2829 // result = Plantae_Race;
2830 } else if (rank
.equals(Rank
.CONVAR())) {
2831 result
= Plantae_Convarietas
;
2832 } else if (rank
.equals(Rank
.VARIETY())) {
2833 result
= Plantae_Variety
;
2834 } else if (rank
.equals(Rank
.SUBVARIETY())) {
2835 result
= Plantae_Subvariety
;
2836 } else if (rank
.equals(Rank
.FORM())) {
2837 result
= Plantae_Forma
;
2838 } else if (rank
.equals(Rank
.SUBFORM())) {
2839 result
= Plantae_Subforma
;
2840 // } else if (rank.equals(Rank.)) { // not yet specified
2841 // result = Plantae_Forma_spec;
2842 // } else if (rank.equals(Rank.)) { // not yet specified
2843 // result = Plantae_Taxa_infragen;
2844 // } else if (rank.equals(Rank.)) { // not yet specified
2845 // result = Plantae_Taxa_infraspec;
2848 logger
.warn("Rank for Kingdom Plantae not yet supported in CDM: "+ rank
.getLabel());
2851 } else if (pesiKingdomId
!= null && pesiKingdomId
.intValue() == KINGDOM_BACTERIA
) {
2852 if (rank
.equals(Rank
.KINGDOM())) { result
= Bacteria_Kingdom
; }
2853 else if (rank
.equals(Rank
.SUBKINGDOM())) { result
= Bacteria_Subkingdom
; }
2854 else if (rank
.equals(Rank
.PHYLUM())) { result
= Bacteria_Phylum
; }
2855 else if (rank
.equals(Rank
.SUBPHYLUM())) { result
= Bacteria_Subphylum
; }
2856 else if (rank
.equals(Rank
.SUPERCLASS())) { result
= Bacteria_Superclass
; }
2857 else if (rank
.equals(Rank
.CLASS())) { result
= Bacteria_Class
; }
2858 else if (rank
.equals(Rank
.SUBCLASS())) { result
= Bacteria_Subclass
; }
2859 else if (rank
.equals(Rank
.INFRACLASS())) { result
= Bacteria_Infraclass
; }
2860 else if (rank
.equals(Rank
.SUPERORDER())) { result
= Bacteria_Superorder
; }
2861 else if (rank
.equals(Rank
.ORDER())) { result
= Bacteria_Order
; }
2862 else if (rank
.equals(Rank
.SUBORDER())) { result
= Bacteria_Suborder
; }
2863 else if (rank
.equals(Rank
.INFRAORDER())) { result
= Bacteria_Infraorder
; }
2864 else if (rank
.equals(Rank
.SUPERFAMILY())) { result
= Bacteria_Superfamily
; }
2865 else if (rank
.equals(Rank
.FAMILY())) { result
= Bacteria_Family
; }
2866 else if (rank
.equals(Rank
.SUBFAMILY())) { result
= Bacteria_Subfamily
; }
2867 else if (rank
.equals(Rank
.TRIBE())) { result
= Bacteria_Tribe
; }
2868 else if (rank
.equals(Rank
.SUBTRIBE())) { result
= Bacteria_Subtribe
; }
2869 else if (rank
.equals(Rank
.GENUS())) { result
= Bacteria_Genus
; }
2870 else if (rank
.equals(Rank
.SUBGENUS())) { result
= Bacteria_Subgenus
; }
2871 else if (rank
.equals(Rank
.SPECIES())) { result
= Bacteria_Species
; }
2872 else if (rank
.equals(Rank
.SUBSPECIES())) { result
= Bacteria_Subspecies
; }
2873 else if (rank
.equals(Rank
.VARIETY())) { result
= Bacteria_Variety
; }
2874 else if (rank
.equals(Rank
.FORM())) { result
= Bacteria_Forma
; }
2877 logger
.warn("Kingdom not yet supported in CDM: "+ pesiKingdomId
);
2885 * @param nameTypeDesignationStatus
2888 public static Integer
nameTypeDesignationStatus2TypeDesignationStatusId(NameTypeDesignationStatus nameTypeDesignationStatus
) {
2889 if (nameTypeDesignationStatus
== null) {
2892 if (nameTypeDesignationStatus
.equals(NameTypeDesignationStatus
.ORIGINAL_DESIGNATION())) {
2893 return TYPE_BY_ORIGINAL_DESIGNATION
;
2894 } else if (nameTypeDesignationStatus
.equals(NameTypeDesignationStatus
.SUBSEQUENT_DESIGNATION())) {
2895 return TYPE_BY_SUBSEQUENT_DESIGNATION
;
2896 } else if (nameTypeDesignationStatus
.equals(NameTypeDesignationStatus
.MONOTYPY())) {
2897 return TYPE_BY_MONOTYPY
;
2899 //TODO Figure out a way to handle this gracefully.
2900 logger
.warn("Name Type Designation Status not yet supported in PESI: "+ nameTypeDesignationStatus
.getLabel());
2908 * @param nameTypeDesignationStatus
2911 public static String
nameTypeDesignationStatus2TypeDesignationStatusCache(NameTypeDesignationStatus nameTypeDesignationStatus
) {
2912 if (nameTypeDesignationStatus
== null) {
2915 if (nameTypeDesignationStatus
.equals(NameTypeDesignationStatus
.ORIGINAL_DESIGNATION())) {
2916 return TYPE_STR_BY_ORIGINAL_DESIGNATION
;
2917 } else if (nameTypeDesignationStatus
.equals(NameTypeDesignationStatus
.SUBSEQUENT_DESIGNATION())) {
2918 return TYPE_STR_BY_SUBSEQUENT_DESIGNATION
;
2919 } else if (nameTypeDesignationStatus
.equals(NameTypeDesignationStatus
.MONOTYPY())) {
2920 return TYPE_STR_BY_MONOTYPY
;
2922 //TODO Figure out a way to handle this gracefully.
2923 logger
.warn("Name Type Designation Status not yet supported in PESI: "+ nameTypeDesignationStatus
.getLabel());
2934 public static Integer
taxonBase2statusFk (TaxonBase
<?
> taxonBase
){
2935 if (taxonBase
== null){return null;}
2936 if (taxonBase
.isInstanceOf(Taxon
.class)){
2937 return T_STATUS_ACCEPTED
;
2938 }else if (taxonBase
.isInstanceOf(Synonym
.class)){
2939 return T_STATUS_SYNONYM
;
2941 logger
.warn("Unknown ");
2942 return T_STATUS_UNRESOLVED
;
2945 // public static int T_STATUS_PARTIAL_SYN = 3;
2946 // public static int T_STATUS_PRO_PARTE_SYN = 4;
2947 // public static int T_STATUS_UNRESOLVED = 5;
2948 // public static int T_STATUS_ORPHANED = 6;
2956 public static String
taxonBase2statusCache (TaxonBase
<?
> taxonBase
){
2957 if (taxonBase
== null){return null;}
2958 if (taxonBase
.isInstanceOf(Taxon
.class)){
2959 return T_STATUS_STR_ACCEPTED
;
2960 }else if (taxonBase
.isInstanceOf(Synonym
.class)){
2961 return T_STATUS_STR_SYNONYM
;
2963 logger
.warn("Unknown ");
2964 return T_STATUS_STR_UNRESOLVED
;
2967 // public static int T_STATUS_STR_PARTIAL_SYN = 3;
2968 // public static int T_STATUS_STR_PRO_PARTE_SYN = 4;
2969 // public static int T_STATUS_STR_UNRESOLVED = 5;
2970 // public static int T_STATUS_STR_ORPHANED = 6;
2974 * Returns the {@link SourceCategory SourceCategory} representation of the given {@link ReferenceType ReferenceType} in PESI.
2975 * @param reference The {@link ReferenceBase ReferenceBase}.
2976 * @return The {@link SourceCategory SourceCategory} representation in PESI.
2978 public static Integer
reference2SourceCategoryFK(ReferenceBase
<?
> reference
) {
2979 if (reference
== null){
2981 } else if (reference
.getType().equals(ReferenceType
.Article
)) {
2982 return REF_ARTICLE_IN_PERIODICAL
;
2983 } else if (reference
.getType().equals(ReferenceType
.Book
)) {
2985 } else if (reference
.getType().equals(ReferenceType
.Database
)) {
2986 return REF_DATABASE
;
2987 } else if (reference
.getType().equals(ReferenceType
.WebPage
)) {
2989 } else if (reference
.getType().equals(ReferenceType
.CdDvd
)) {
2990 return REF_NOT_APPLICABLE
;
2991 } else if (reference
.getType().equals(ReferenceType
.Journal
)) {
2993 } else if (reference
.getType().equals(ReferenceType
.Generic
)) {
2994 return REF_UNRESOLVED
;
2995 } else if (reference
.getType().equals(ReferenceType
.PrintSeries
)) {
2996 return REF_PUBLISHED
;
2997 } else if (reference
.getType().equals(ReferenceType
.Proceedings
)) {
2998 return REF_PUBLISHED
;
2999 } else if (reference
.getType().equals(ReferenceType
.Patent
)) {
3000 return REF_NOT_APPLICABLE
;
3001 } else if (reference
.getType().equals(ReferenceType
.PersonalCommunication
)) {
3002 return REF_INFORMAL
;
3003 } else if (reference
.getType().equals(ReferenceType
.Report
)) {
3004 return REF_NOT_APPLICABLE
;
3005 } else if (reference
.getType().equals(ReferenceType
.Thesis
)) {
3006 return REF_NOT_APPLICABLE
;
3008 //TODO Figure out a way to handle this gracefully.
3009 logger
.warn("Reference type not yet supported in PESI: "+ reference
.getClass().getSimpleName());
3015 * Returns the {@link SourceCategoryCache SourceCategoryCache}.
3016 * @param reference The {@link ReferenceBase ReferenceBase}.
3017 * @return The {@link SourceCategoryCache SourceCategoryCache}.
3019 public static String
getSourceCategoryCache(ReferenceBase
<?
> reference
) {
3020 if (reference
== null){
3022 } else if (reference
.getType().equals(ReferenceType
.Article
)) {
3023 return REF_STR_ARTICLE_IN_PERIODICAL
;
3024 } else if (reference
.getType().equals(ReferenceType
.Book
)) {
3025 return REF_STR_BOOK
;
3026 } else if (reference
.getType().equals(ReferenceType
.Database
)) {
3027 return REF_STR_DATABASE
;
3028 } else if (reference
.getType().equals(ReferenceType
.WebPage
)) {
3029 return REF_STR_WEBSITE
;
3030 } else if (reference
.getType().equals(ReferenceType
.CdDvd
)) {
3031 return REF_STR_NOT_APPLICABLE
;
3032 } else if (reference
.getType().equals(ReferenceType
.Journal
)) {
3033 return REF_STR_JOURNAL
;
3034 } else if (reference
.getType().equals(ReferenceType
.Generic
)) {
3035 return REF_STR_UNRESOLVED
;
3036 } else if (reference
.getType().equals(ReferenceType
.PrintSeries
)) {
3037 return REF_STR_PUBLISHED
;
3038 } else if (reference
.getType().equals(ReferenceType
.Proceedings
)) {
3039 return REF_STR_PUBLISHED
;
3040 } else if (reference
.getType().equals(ReferenceType
.Patent
)) {
3041 return REF_STR_NOT_APPLICABLE
;
3042 } else if (reference
.getType().equals(ReferenceType
.PersonalCommunication
)) {
3043 return REF_STR_INFORMAL
;
3044 } else if (reference
.getType().equals(ReferenceType
.Report
)) {
3045 return REF_STR_NOT_APPLICABLE
;
3046 } else if (reference
.getType().equals(ReferenceType
.Thesis
)) {
3047 return REF_STR_NOT_APPLICABLE
;
3049 //TODO Figure out a way to handle this gracefully.
3050 logger
.warn("Reference type not yet supported in PESI: "+ reference
.getClass().getSimpleName());
3060 public static String
nomStatus2NomStatusCache(NomenclaturalStatusType status
) {
3061 if (status
== null){
3064 if (status
.equals(NomenclaturalStatusType
.INVALID())) {return NAME_ST_STR_NOM_INVAL
;
3065 }else if (status
.equals(NomenclaturalStatusType
.ILLEGITIMATE())) {return NAME_ST_STR_NOM_ILLEG
;
3066 }else if (status
.equals(NomenclaturalStatusType
.NUDUM())) {return NAME_ST_STR_NOM_NUD
;
3067 }else if (status
.equals(NomenclaturalStatusType
.REJECTED())) {return NAME_ST_STR_NOM_REJ
;
3068 }else if (status
.equals(NomenclaturalStatusType
.REJECTED_PROP())) {return NAME_ST_STR_NOM_REJ_PROP
;
3069 }else if (status
.equals(NomenclaturalStatusType
.UTIQUE_REJECTED())) {return NAME_ST_STR_NOM_UTIQUE_REJ
;
3070 }else if (status
.equals(NomenclaturalStatusType
.UTIQUE_REJECTED_PROP())) {return NAME_ST_STR_NOM_UTIQUE_REJ_PROP
;
3071 }else if (status
.equals(NomenclaturalStatusType
.CONSERVED())) {return NAME_ST_STR_NOM_CONS
;
3073 }else if (status
.equals(NomenclaturalStatusType
.CONSERVED_PROP())) {return NAME_ST_STR_NOM_CONS_PROP
;
3074 }else if (status
.equals(NomenclaturalStatusType
.ORTHOGRAPHY_CONSERVED())) {return NAME_ST_STR_ORTH_CONS
;
3075 }else if (status
.equals(NomenclaturalStatusType
.ORTHOGRAPHY_CONSERVED_PROP())) {return NAME_ST_STR_ORTH_CONS_PROP
;
3076 }else if (status
.equals(NomenclaturalStatusType
.SUPERFLUOUS())) {return NAME_ST_STR_NOM_SUPERFL
;
3077 }else if (status
.equals(NomenclaturalStatusType
.AMBIGUOUS())) {return NAME_ST_STR_NOM_AMBIG
;
3078 }else if (status
.equals(NomenclaturalStatusType
.PROVISIONAL())) {return NAME_ST_STR_NOM_PROVIS
;
3079 }else if (status
.equals(NomenclaturalStatusType
.DOUBTFUL())) {return NAME_ST_STR_NOM_DUB
;
3080 }else if (status
.equals(NomenclaturalStatusType
.NOVUM())) {return NAME_ST_STR_NOM_NOV
;
3082 }else if (status
.equals(NomenclaturalStatusType
.CONFUSUM())) {return NAME_ST_STR_NOM_CONFUS
;
3083 }else if (status
.equals(NomenclaturalStatusType
.ALTERNATIVE())) {return NAME_ST_STR_NOM_ALTERN
;
3084 }else if (status
.equals(NomenclaturalStatusType
.COMBINATION_INVALID())) {return NAME_ST_STR_COMB_INVAL
;
3085 }else if (status
.equals(NomenclaturalStatusType
.LEGITIMATE())) {return NAME_ST_STR_LEGITIMATE
;
3087 // The following are non-existent in CDM
3088 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_COMB_INED;
3089 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_COMB_AND_STAT_INED;
3090 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_NOM_AND_ORTH_CONS;
3091 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_NOM_NOV_INED;
3092 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_SP_NOV_INED;
3093 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_ALTERNATE_REPRESENTATION;
3094 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_TEMPORARY_NAME;
3095 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_STR_SPECIES_INQUIRENDA;
3100 logger
.warn("NomStatus type not yet supported by PESI export: "+ status
);
3110 public static Integer
nomStatus2nomStatusFk (NomenclaturalStatusType status
){
3111 if (status
== null){
3114 if (status
.equals(NomenclaturalStatusType
.INVALID())) {return NAME_ST_NOM_INVAL
;
3115 }else if (status
.equals(NomenclaturalStatusType
.ILLEGITIMATE())) {return NAME_ST_NOM_ILLEG
;
3116 }else if (status
.equals(NomenclaturalStatusType
.NUDUM())) {return NAME_ST_NOM_NUD
;
3117 }else if (status
.equals(NomenclaturalStatusType
.REJECTED())) {return NAME_ST_NOM_REJ
;
3118 }else if (status
.equals(NomenclaturalStatusType
.REJECTED_PROP())) {return NAME_ST_NOM_REJ_PROP
;
3119 }else if (status
.equals(NomenclaturalStatusType
.UTIQUE_REJECTED())) {return NAME_ST_NOM_UTIQUE_REJ
;
3120 }else if (status
.equals(NomenclaturalStatusType
.UTIQUE_REJECTED_PROP())) {return NAME_ST_NOM_UTIQUE_REJ_PROP
;
3121 }else if (status
.equals(NomenclaturalStatusType
.CONSERVED())) {return NAME_ST_NOM_CONS
;
3123 }else if (status
.equals(NomenclaturalStatusType
.CONSERVED_PROP())) {return NAME_ST_NOM_CONS_PROP
;
3124 }else if (status
.equals(NomenclaturalStatusType
.ORTHOGRAPHY_CONSERVED())) {return NAME_ST_ORTH_CONS
;
3125 }else if (status
.equals(NomenclaturalStatusType
.ORTHOGRAPHY_CONSERVED_PROP())) {return NAME_ST_ORTH_CONS_PROP
;
3126 }else if (status
.equals(NomenclaturalStatusType
.SUPERFLUOUS())) {return NAME_ST_NOM_SUPERFL
;
3127 }else if (status
.equals(NomenclaturalStatusType
.AMBIGUOUS())) {return NAME_ST_NOM_AMBIG
;
3128 }else if (status
.equals(NomenclaturalStatusType
.PROVISIONAL())) {return NAME_ST_NOM_PROVIS
;
3129 }else if (status
.equals(NomenclaturalStatusType
.DOUBTFUL())) {return NAME_ST_NOM_DUB
;
3130 }else if (status
.equals(NomenclaturalStatusType
.NOVUM())) {return NAME_ST_NOM_NOV
;
3132 }else if (status
.equals(NomenclaturalStatusType
.CONFUSUM())) {return NAME_ST_NOM_CONFUS
;
3133 }else if (status
.equals(NomenclaturalStatusType
.ALTERNATIVE())) {return NAME_ST_NOM_ALTERN
;
3134 }else if (status
.equals(NomenclaturalStatusType
.COMBINATION_INVALID())) {return NAME_ST_COMB_INVAL
;
3135 }else if (status
.equals(NomenclaturalStatusType
.LEGITIMATE())) {return NAME_ST_LEGITIMATE
;
3137 // The following are non-existent in CDM
3138 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_COMB_INED;
3139 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_COMB_AND_STAT_INED;
3140 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_NOM_AND_ORTH_CONS;
3141 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_NOM_NOV_INED;
3142 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_SP_NOV_INED;
3143 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_ALTERNATE_REPRESENTATION;
3144 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_TEMPORARY_NAME;
3145 // }else if (status.equals(NomenclaturalStatusType.)) {return NAME_ST_SPECIES_INQUIRENDA;
3150 logger
.warn("NomStatus type not yet supported by PESI export: "+ status
);
3156 * Returns the RelTaxonQualifierCache for a given taxonRelation.
3160 public static String
taxonRelation2RelTaxonQualifierCache(RelationshipBase
<?
,?
,?
> relation
){
3161 if (relation
== null) {
3164 RelationshipTermBase
<?
> type
= relation
.getType();
3165 if (type
.equals(TaxonRelationshipType
.MISAPPLIED_NAME_FOR())) {
3166 return STR_IS_MISAPPLIED_NAME_FOR
;
3167 } else if (type
.equals(SynonymRelationshipType
.SYNONYM_OF())) {
3168 return STR_IS_SYNONYM_OF
;
3169 } else if (type
.equals(SynonymRelationshipType
.HOMOTYPIC_SYNONYM_OF())) {
3170 return STR_IS_HOMOTYPIC_SYNONYM_OF
;
3171 } else if (type
.equals(SynonymRelationshipType
.HETEROTYPIC_SYNONYM_OF())) {
3172 return STR_IS_HETEROTYPIC_SYNONYM_OF
;
3173 } else if (type
.equals(SynonymRelationshipType
.INFERRED_EPITHET_OF())) {
3174 return STR_IS_INFERRED_EPITHET_FOR
;
3175 } else if (type
.equals(SynonymRelationshipType
.INFERRED_GENUS_OF())) {
3176 return STR_IS_INFERRED_GENUS_FOR
;
3177 } else if (type
.equals(SynonymRelationshipType
.POTENTIAL_COMBINATION_OF())) {
3178 return STR_IS_POTENTIAL_COMBINATION_FOR
;
3179 } else if (type
.equals(NameRelationshipType
.BASIONYM())) {
3180 return STR_IS_BASIONYM_FOR
;
3181 } else if (type
.equals(NameRelationshipType
.LATER_HOMONYM())) {
3182 return STR_IS_LATER_HOMONYM_OF
;
3183 } else if (type
.equals(NameRelationshipType
.REPLACED_SYNONYM())) {
3184 return STR_IS_REPLACED_SYNONYM_FOR
;
3185 } else if (type
.equals(NameRelationshipType
.VALIDATED_BY_NAME())) {
3186 return STR_IS_VALIDATION_OF
;
3187 } else if (type
.equals(NameRelationshipType
.LATER_VALIDATED_BY_NAME())) {
3188 return STR_IS_LATER_VALIDATION_OF
;
3189 } else if (type
.equals(NameRelationshipType
.CONSERVED_AGAINST())) {
3190 return STR_IS_CONSERVED_AGAINST
;
3191 } else if (type
.equals(NameRelationshipType
.TREATED_AS_LATER_HOMONYM())) {
3192 return STR_IS_TREATED_AS_LATER_HOMONYM_OF
;
3193 } else if (type
.equals(NameRelationshipType
.ORTHOGRAPHIC_VARIANT())) {
3194 return STR_IS_ORTHOGRAPHIC_VARIANT_OF
;
3195 } else if (type
.equals(NameRelationshipType
.ALTERNATIVE_NAME())) {
3196 return STR_IS_ALTERNATIVE_NAME_FOR
;
3198 logger
.warn("No equivalent RelationshipType found in datawarehouse for: " + type
.getTitleCache());
3201 // The following have no equivalent attribute in CDM
3203 // IS_CONSERVED_TYPE_OF
3204 // IS_REJECTED_TYPE_OF
3205 // IS_FIRST_PARENT_OF
3206 // IS_SECOND_PARENT_OF
3207 // IS_FEMALE_PARENT_OF
3208 // IS_MALE_PARENT_OF
3209 // IS_REJECTED_IN_FAVOUR_OF
3212 // TYPE_NOT_DESIGNATED
3213 // IS_PRO_PARTE_SYNONYM_OF
3214 // IS_PARTIAL_SYNONYM_OF
3215 // IS_PRO_PARTE_AND_HOMOTYPIC_SYNONYM_OF
3216 // IS_PRO_PARTE_AND_HETEROTYPIC_SYNONYM_OF
3217 // IS_PARTIAL_AND_HOMOTYPIC_SYNONYM_OF
3218 // IS_PARTIAL_AND_HETEROTYPIC_SYNONYM_OF
3224 * Returns the RelTaxonQualifierCache for a given zoological taxonRelation.
3228 public static String
zoologicalTaxonRelation2RelTaxonQualifierCache(RelationshipBase
<?
,?
,?
> relation
){
3229 if (relation
== null) {
3232 RelationshipTermBase
<?
> type
= relation
.getType();
3233 if (type
.equals(TaxonRelationshipType
.MISAPPLIED_NAME_FOR())) {
3234 return STR_IS_MISAPPLIED_NAME_FOR
;
3235 } else if (type
.equals(SynonymRelationshipType
.SYNONYM_OF())) {
3236 return STR_IS_SYNONYM_OF
;
3237 } else if (type
.equals(SynonymRelationshipType
.HOMOTYPIC_SYNONYM_OF())) {
3238 return "is objective synonym of";
3239 } else if (type
.equals(SynonymRelationshipType
.HETEROTYPIC_SYNONYM_OF())) {
3240 return "is subjective synonym of";
3241 } else if (type
.equals(SynonymRelationshipType
.INFERRED_EPITHET_OF())) {
3242 return STR_IS_INFERRED_EPITHET_FOR
;
3243 } else if (type
.equals(SynonymRelationshipType
.INFERRED_GENUS_OF())) {
3244 return STR_IS_INFERRED_GENUS_FOR
;
3245 } else if (type
.equals(SynonymRelationshipType
.POTENTIAL_COMBINATION_OF())) {
3246 return STR_IS_POTENTIAL_COMBINATION_FOR
;
3247 } else if (type
.equals(NameRelationshipType
.BASIONYM())) {
3248 return "is original combination for";
3249 } else if (type
.equals(NameRelationshipType
.LATER_HOMONYM())) {
3250 return STR_IS_LATER_HOMONYM_OF
;
3251 } else if (type
.equals(NameRelationshipType
.REPLACED_SYNONYM())) {
3252 return STR_IS_REPLACED_SYNONYM_FOR
;
3253 } else if (type
.equals(NameRelationshipType
.VALIDATED_BY_NAME())) {
3254 return STR_IS_VALIDATION_OF
;
3255 } else if (type
.equals(NameRelationshipType
.LATER_VALIDATED_BY_NAME())) {
3256 return STR_IS_LATER_VALIDATION_OF
;
3257 } else if (type
.equals(NameRelationshipType
.CONSERVED_AGAINST())) {
3258 return STR_IS_CONSERVED_AGAINST
;
3259 } else if (type
.equals(NameRelationshipType
.TREATED_AS_LATER_HOMONYM())) {
3260 return STR_IS_TREATED_AS_LATER_HOMONYM_OF
;
3261 } else if (type
.equals(NameRelationshipType
.ORTHOGRAPHIC_VARIANT())) {
3262 return STR_IS_ORTHOGRAPHIC_VARIANT_OF
;
3263 } else if (type
.equals(NameRelationshipType
.ALTERNATIVE_NAME())) {
3264 return STR_IS_ALTERNATIVE_NAME_FOR
;
3266 logger
.warn("No equivalent RelationshipType found in datawarehouse for: " + type
.getTitleCache());
3269 // The following have no equivalent attribute in CDM
3271 // IS_CONSERVED_TYPE_OF
3272 // IS_REJECTED_TYPE_OF
3273 // IS_FIRST_PARENT_OF
3274 // IS_SECOND_PARENT_OF
3275 // IS_FEMALE_PARENT_OF
3276 // IS_MALE_PARENT_OF
3277 // IS_REJECTED_IN_FAVOUR_OF
3280 // TYPE_NOT_DESIGNATED
3281 // IS_PRO_PARTE_SYNONYM_OF
3282 // IS_PARTIAL_SYNONYM_OF
3283 // IS_PRO_PARTE_AND_HOMOTYPIC_SYNONYM_OF
3284 // IS_PRO_PARTE_AND_HETEROTYPIC_SYNONYM_OF
3285 // IS_PARTIAL_AND_HOMOTYPIC_SYNONYM_OF
3286 // IS_PARTIAL_AND_HETEROTYPIC_SYNONYM_OF
3292 * Returns the RelTaxonQualifierFk for a TaxonRelation.
3296 public static Integer
taxonRelation2RelTaxonQualifierFk(RelationshipBase
<?
,?
,?
> relation
) {
3297 if (relation
== null) {
3300 RelationshipTermBase
<?
> type
= relation
.getType();
3301 if (type
.equals(TaxonRelationshipType
.MISAPPLIED_NAME_FOR())) {
3302 return IS_MISAPPLIED_NAME_FOR
;
3303 } else if (type
.equals(SynonymRelationshipType
.SYNONYM_OF())) {
3304 return IS_SYNONYM_OF
;
3305 } else if (type
.equals(SynonymRelationshipType
.HOMOTYPIC_SYNONYM_OF())) {
3306 return IS_HOMOTYPIC_SYNONYM_OF
;
3307 } else if (type
.equals(SynonymRelationshipType
.HETEROTYPIC_SYNONYM_OF())) {
3308 return IS_HETEROTYPIC_SYNONYM_OF
;
3309 } else if (type
.equals(SynonymRelationshipType
.INFERRED_EPITHET_OF())) {
3310 return IS_INFERRED_EPITHET_FOR
;
3311 } else if (type
.equals(SynonymRelationshipType
.INFERRED_GENUS_OF())) {
3312 return IS_INFERRED_GENUS_FOR
;
3313 } else if (type
.equals(SynonymRelationshipType
.POTENTIAL_COMBINATION_OF())) {
3314 return IS_POTENTIAL_COMBINATION_FOR
;
3315 } else if (type
.equals(NameRelationshipType
.BASIONYM())) {
3316 return IS_BASIONYM_FOR
;
3317 } else if (type
.equals(NameRelationshipType
.LATER_HOMONYM())) {
3318 return IS_LATER_HOMONYM_OF
;
3319 } else if (type
.equals(NameRelationshipType
.REPLACED_SYNONYM())) {
3320 return IS_REPLACED_SYNONYM_FOR
;
3321 } else if (type
.equals(NameRelationshipType
.VALIDATED_BY_NAME())) {
3322 return IS_VALIDATION_OF
;
3323 } else if (type
.equals(NameRelationshipType
.LATER_VALIDATED_BY_NAME())) {
3324 return IS_LATER_VALIDATION_OF
;
3325 } else if (type
.equals(NameRelationshipType
.CONSERVED_AGAINST())) {
3326 return IS_CONSERVED_AGAINST
;
3327 } else if (type
.equals(NameRelationshipType
.TREATED_AS_LATER_HOMONYM())) {
3328 return IS_TREATED_AS_LATER_HOMONYM_OF
;
3329 } else if (type
.equals(NameRelationshipType
.ORTHOGRAPHIC_VARIANT())) {
3330 return IS_ORTHOGRAPHIC_VARIANT_OF
;
3331 } else if (type
.equals(NameRelationshipType
.ALTERNATIVE_NAME())) {
3332 return IS_ALTERNATIVE_NAME_FOR
;
3334 logger
.warn("No equivalent RelationshipType found in datawarehouse for: " + type
.getTitleCache());
3337 // The following have no equivalent attribute in CDM
3339 // IS_CONSERVED_TYPE_OF
3340 // IS_REJECTED_TYPE_OF
3341 // IS_FIRST_PARENT_OF
3342 // IS_SECOND_PARENT_OF
3343 // IS_FEMALE_PARENT_OF
3344 // IS_MALE_PARENT_OF
3345 // IS_REJECTED_IN_FAVOUR_OF
3348 // TYPE_NOT_DESIGNATED
3349 // IS_PRO_PARTE_SYNONYM_OF
3350 // IS_PARTIAL_SYNONYM_OF
3351 // IS_PRO_PARTE_AND_HOMOTYPIC_SYNONYM_OF
3352 // IS_PRO_PARTE_AND_HETEROTYPIC_SYNONYM_OF
3353 // IS_PARTIAL_AND_HOMOTYPIC_SYNONYM_OF
3354 // IS_PARTIAL_AND_HETEROTYPIC_SYNONYM_OF
3360 * Returns the QualityStatusFk for a given QualityStatusCache.
3361 * @param qualityStatusCache
3364 public Integer
QualityStatusCache2QualityStatusFk(String qualityStatusCache
) {
3365 Integer result
= null;
3366 if (qualityStatusCache
.equalsIgnoreCase("Checked by Taxonomic Editor: included in ERMS 1.1")) {
3368 } else if (qualityStatusCache
.equalsIgnoreCase("Added by Database Management Team")) {
3370 } else if (qualityStatusCache
.equalsIgnoreCase("Checked by Taxonomic Editor")) {
3372 } else if (qualityStatusCache
.equalsIgnoreCase("Edited by Database Management Team")) {
3375 logger
.error("QualityStatusFk could not be determined. QualityStatusCache unknown: " + qualityStatusCache
);
3382 * Returns the FossilStatusFk for a given FossilStatusCache.
3383 * @param fossilStatusCache
3386 public Integer
FossilStatusCache2FossilStatusFk(String fossilStatusCache
) {
3387 Integer result
= null;
3388 if (fossilStatusCache
.equalsIgnoreCase("recent only")) {
3390 } else if (fossilStatusCache
.equalsIgnoreCase("fossil only")) {
3392 } else if (fossilStatusCache
.equalsIgnoreCase("recent + fossil")) {
3395 logger
.error("FossilStatusFk could not be determined. FossilStatusCache unknown: " + fossilStatusCache
);
3402 * Returns the NoteCategoryFk for a given UUID representing an ExtensionType.
3406 public static Integer
getNoteCategoryFk(UUID uuid
) {
3407 Integer result
= null;
3408 if (uuid
.equals(taxCommentUuid
)) {
3410 } else if (uuid
.equals(fauCommentUuid
)) {
3412 } else if (uuid
.equals(fauExtraCodesUuid
)) {
3419 * Returns the NoteCategoryCache for a given UUID representing an ExtensionType.
3423 public static String
getNoteCategoryCache(UUID uuid
) {
3424 String result
= null;
3425 if (uuid
.equals(taxCommentUuid
)) {
3426 result
= "Taxonomy";
3427 } else if (uuid
.equals(fauCommentUuid
)) {
3429 } else if (uuid
.equals(fauExtraCodesUuid
)) {
3430 result
= "Distribution";