3 * Copyright (C) 2007 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.
11 package eu
.etaxonomy
.cdm
.io
.excel
.taxa
;
13 import java
.util
.HashMap
;
14 import java
.util
.HashSet
;
18 import org
.apache
.log4j
.Logger
;
20 import eu
.etaxonomy
.cdm
.io
.excel
.common
.ExcelImportConfiguratorBase
;
21 import eu
.etaxonomy
.cdm
.io
.excel
.common
.ExcelImportState
;
22 import eu
.etaxonomy
.cdm
.model
.agent
.TeamOrPersonBase
;
23 import eu
.etaxonomy
.cdm
.model
.taxon
.Classification
;
24 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
25 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonBase
;
32 public class TaxonExcelImportState
extends ExcelImportState
<ExcelImportConfiguratorBase
, NormalExplicitRow
>{
33 @SuppressWarnings("unused")
34 private static final Logger logger
= Logger
.getLogger(TaxonExcelImportState
.class);
36 /** Already processed authors */
37 private Set
<String
> authors
= new HashSet
<String
>();
39 private Map
<String
, TaxonBase
> taxonMap
= new HashMap
<String
, TaxonBase
>();
40 private Map
<String
, TeamOrPersonBase
> authorMap
= new HashMap
<String
, TeamOrPersonBase
>();
42 private Classification classification
;
46 public TaxonExcelImportState(ExcelImportConfiguratorBase config
) {
53 public Set
<String
> getAuthors() {
58 * @param author the author to set
60 public void setAuthors(Set
<String
> authors
) {
61 this.authors
= authors
;
64 public Taxon
getParent(){
68 public void setParent(Taxon parent
){
76 public TaxonBase
getTaxonBase(String taxonId
) {
77 return taxonMap
.get(taxonId
);
85 public void putTaxon(String taxonId
, TaxonBase taxonBase
) {
88 taxonMap
.put(taxonId
, taxonBase
);
92 * @return the classification
94 public Classification
getClassification() {
95 return classification
;
99 * @param classification the classification to set
101 public void setClassification(Classification classification
) {
102 this.classification
= classification
;