Revision 539b7820
Added by Andreas Müller over 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/bogota/BogotaChecklistTaxonImport.java | ||
---|---|---|
9 | 9 |
*/ |
10 | 10 |
package eu.etaxonomy.cdm.io.bogota; |
11 | 11 |
|
12 |
import java.util.HashMap;
|
|
12 |
import java.util.Map; |
|
13 | 13 |
import java.util.UUID; |
14 | 14 |
|
15 | 15 |
import org.apache.log4j.Logger; |
... | ... | |
86 | 86 |
} |
87 | 87 |
|
88 | 88 |
String line = state.getCurrentLine() + ": "; |
89 |
HashMap<String, String> record = state.getOriginalRecord();
|
|
89 |
Map<String, String> record = state.getOriginalRecord(); |
|
90 | 90 |
|
91 | 91 |
String noStr = getValue(record, ID_COL); |
92 | 92 |
|
... | ... | |
119 | 119 |
* @param line |
120 | 120 |
* @param taxon |
121 | 121 |
*/ |
122 |
private void makeSynonyms(SimpleExcelTaxonImportState<CONFIG> state, HashMap<String, String> record, String line,
|
|
122 |
private void makeSynonyms(SimpleExcelTaxonImportState<CONFIG> state, Map<String, String> record, String line, |
|
123 | 123 |
Taxon taxon, String noStr) { |
124 | 124 |
|
125 | 125 |
String synonymsStr = getValue(record, SINONIMOS); |
... | ... | |
233 | 233 |
* @param taxon |
234 | 234 |
* @param noStr |
235 | 235 |
*/ |
236 |
private void makeInfraSpecific(SimpleExcelTaxonImportState<CONFIG> state, HashMap<String, String> record, String line,
|
|
236 |
private void makeInfraSpecific(SimpleExcelTaxonImportState<CONFIG> state, Map<String, String> record, String line, |
|
237 | 237 |
TaxonNode speciesNode, String noStr) { |
238 | 238 |
String subSpeciesStr = getValue(record, INFRASPECIFIC); |
239 | 239 |
if (subSpeciesStr != null){ |
... | ... | |
266 | 266 |
* @param noStr |
267 | 267 |
* @return |
268 | 268 |
*/ |
269 |
private TaxonNode makeTaxon(SimpleExcelTaxonImportState<CONFIG> state, String line, HashMap<String, String> record,
|
|
269 |
private TaxonNode makeTaxon(SimpleExcelTaxonImportState<CONFIG> state, String line, Map<String, String> record, |
|
270 | 270 |
String noStr) { |
271 | 271 |
|
272 | 272 |
TaxonNode familyTaxon = getFamilyTaxon(record, state); |
... | ... | |
325 | 325 |
* @param state |
326 | 326 |
* @return |
327 | 327 |
*/ |
328 |
private TaxonNode getFamilyTaxon(HashMap<String, String> record, SimpleExcelTaxonImportState<CONFIG> state) {
|
|
328 |
private TaxonNode getFamilyTaxon(Map<String, String> record, SimpleExcelTaxonImportState<CONFIG> state) { |
|
329 | 329 |
String familyStr = getValue(record, FAMILIA); |
330 | 330 |
if (familyStr == null){ |
331 | 331 |
return null; |
... | ... | |
431 | 431 |
* @return |
432 | 432 |
*/ |
433 | 433 |
private TaxonNode makeGenusNode(SimpleExcelTaxonImportState<CONFIG> state, |
434 |
HashMap<String, String> record, String genusStr) {
|
|
434 |
Map<String, String> record, String genusStr) { |
|
435 | 435 |
IBotanicalName name = TaxonNameFactory.NewBotanicalInstance(Rank.GENUS()); |
436 | 436 |
name.setGenusOrUninomial(genusStr); |
437 | 437 |
Taxon genus = Taxon.NewInstance(name, getSecReference(state)); |
Also available in: Unified diff
cleanup