Revision 2fedea5a
Added by Andreas Müller about 1 year ago
app-import/src/main/java/eu/etaxonomy/cdm/io/caryo/CaryoSileneaeImportBase.java | ||
---|---|---|
8 | 8 |
*/ |
9 | 9 |
package eu.etaxonomy.cdm.io.caryo; |
10 | 10 |
|
11 |
import java.util.HashMap; |
|
12 |
import java.util.HashSet; |
|
13 |
import java.util.Map; |
|
14 |
import java.util.Set; |
|
15 |
|
|
16 |
import eu.etaxonomy.cdm.common.DoubleResult; |
|
11 | 17 |
import eu.etaxonomy.cdm.io.mexico.SimpleExcelTaxonImport; |
12 | 18 |
import eu.etaxonomy.cdm.io.mexico.SimpleExcelTaxonImportState; |
13 | 19 |
import eu.etaxonomy.cdm.model.name.TaxonName; |
... | ... | |
24 | 30 |
|
25 | 31 |
private Reference secRef = null; |
26 | 32 |
|
27 |
protected Taxon getTaxon(SimpleExcelTaxonImportState<CaryoSileneaeImportConfigurator> state, Integer taxonLinkId) { |
|
28 |
// TODO Auto-generated method stub |
|
29 |
return null; |
|
33 |
protected static Map<Integer,TaxonName> nameMap = new HashMap<>(); |
|
34 |
|
|
35 |
private static Map<Integer,Taxon> taxonMap = new HashMap<>(); |
|
36 |
|
|
37 |
protected static Map<Integer,TaxonName> origNameMap = new HashMap<>(); |
|
38 |
protected static Map<Integer,TaxonName> orphanedNameMap = new HashMap<>(); |
|
39 |
protected static Set<TaxonName> origSpellingNames = new HashSet<>(); |
|
40 |
|
|
41 |
protected static Map<Integer, Integer> accIdMap = new HashMap<>(); |
|
42 |
|
|
43 |
protected static Map<Integer,DoubleResult<String,String>> origPublicationMap = new HashMap<>(); |
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
protected Taxon getTaxon(Integer taxonLinkId) { |
|
48 |
return taxonMap.get(taxonLinkId); |
|
30 | 49 |
} |
31 | 50 |
|
32 |
protected TaxonName getName(SimpleExcelTaxonImportState<CaryoSileneaeImportConfigurator> state, Integer nameLinkID) { |
|
33 |
// TODO Auto-generated method stub |
|
34 |
return null; |
|
51 |
protected TaxonName getName(Integer nameLinkId) { |
|
52 |
return nameMap.get(nameLinkId); |
|
53 |
} |
|
54 |
|
|
55 |
protected void putToNameMap(Integer id, TaxonName name) { |
|
56 |
nameMap.put(id, name); |
|
57 |
origNameMap.put(id, name); |
|
58 |
orphanedNameMap.put(id, name); |
|
59 |
} |
|
60 |
protected void putToTaxonMap(Integer id, Taxon taxon) { |
|
61 |
taxonMap.put(id, taxon); |
|
35 | 62 |
} |
36 | 63 |
|
37 | 64 |
protected Reference getSecRef(SimpleExcelTaxonImportState<CaryoSileneaeImportConfigurator> state) { |
Also available in: Unified diff
ref #10242 final version of Sileneae import (before synonym cleanup=