Revision 539b7820
Added by Andreas Müller over 5 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/mexico/MexicoConabioTaxonImport.java | ||
---|---|---|
103 | 103 |
@Override |
104 | 104 |
protected void firstPass(SimpleExcelTaxonImportState<CONFIG> state) { |
105 | 105 |
String line = state.getCurrentLine() + ": "; |
106 |
HashMap<String, String> record = state.getOriginalRecord();
|
|
106 |
Map<String, String> record = state.getOriginalRecord(); |
|
107 | 107 |
|
108 | 108 |
Set<String> keys = record.keySet(); |
109 | 109 |
|
... | ... | |
219 | 219 |
* @param state |
220 | 220 |
* @return |
221 | 221 |
*/ |
222 |
private IBotanicalName makeName(String line, HashMap<String, String> record, SimpleExcelTaxonImportState<CONFIG> state) {
|
|
222 |
private IBotanicalName makeName(String line, Map<String, String> record, SimpleExcelTaxonImportState<CONFIG> state) { |
|
223 | 223 |
|
224 | 224 |
String authorStr = getValueNd(record, "AutorSinAnio"); |
225 | 225 |
String nameStr = getValue(record, "Nombre"); |
... | ... | |
416 | 416 |
* @param string |
417 | 417 |
* @return |
418 | 418 |
*/ |
419 |
private String getValueNd(HashMap<String, String> record, String string) {
|
|
419 |
private String getValueNd(Map<String, String> record, String string) { |
|
420 | 420 |
String value = getValue(record, string); |
421 | 421 |
if ("ND".equals(value)){ |
422 | 422 |
return null; |
... | ... | |
429 | 429 |
@Override |
430 | 430 |
protected void secondPass(SimpleExcelTaxonImportState<CONFIG> state) { |
431 | 431 |
// IdCAT_AscendenteInmediato, IdCATRel, TipoRelacion |
432 |
HashMap<String, String> record = state.getOriginalRecord();
|
|
432 |
Map<String, String> record = state.getOriginalRecord(); |
|
433 | 433 |
String line = state.getCurrentLine() + ": "; |
434 | 434 |
|
435 | 435 |
String parentStr = getValue(record, "IdCAT_AscendenteInmediato"); |
Also available in: Unified diff
cleanup