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
.cyprus
;
13 import java
.util
.HashMap
;
16 import org
.apache
.log4j
.Logger
;
18 import eu
.etaxonomy
.cdm
.io
.excel
.common
.ExcelImportState
;
19 import eu
.etaxonomy
.cdm
.io
.excel
.common
.ExcelRowBase
;
20 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
27 public class CyprusImportState
extends ExcelImportState
<CyprusImportConfigurator
, ExcelRowBase
>{
28 @SuppressWarnings("unused")
29 private static final Logger logger
= Logger
.getLogger(CyprusImportState
.class);
31 private Map
<String
, Taxon
> higherTaxonTaxonMap
= new HashMap
<String
, Taxon
>();
33 private CyprusRow cyprusRow
;
34 private CyprusDistributionRow cyprusDistributionRow
;
37 public CyprusImportState(CyprusImportConfigurator config
) {
42 public boolean containsHigherTaxon(String higherName
) {
43 return higherTaxonTaxonMap
.containsKey(higherName
);
46 public Taxon
putHigherTaxon(String higherName
, Taxon taxon
) {
47 return higherTaxonTaxonMap
.put(higherName
, taxon
);
50 public Taxon
removeHigherTaxon(String higherName
) {
51 return higherTaxonTaxonMap
.remove(higherName
);
54 public Taxon
getHigherTaxon(String higherName
) {
55 return higherTaxonTaxonMap
.get(higherName
);
61 // public boolean containsHigherTaxonUuid(String higherName) {
62 // return higherTaxonUuidMap.containsKey(higherName);
65 // public UUID putHigherTaxon(String higherName, UUID uuid) {
66 // return higherTaxonUuidMap.put(higherName, uuid);
69 // public UUID removeHigherTaxon(String higherName) {
70 // return higherTaxonUuidMap.remove(higherName);
73 // public UUID getHigherTaxon(String higherName) {
74 // return higherTaxonUuidMap.get(higherName);
80 * @return the cyprusRow
82 public CyprusRow
getCyprusRow() {
87 * @param cyprusRow the normalExplicitRow to set
89 public void setCyprusRow(CyprusRow cyprusRow
) {
90 this.cyprusRow
= cyprusRow
;
95 * @return the cyprusRow
97 public CyprusDistributionRow
getCyprusDistributionRow() {
98 return cyprusDistributionRow
;
102 * @param cyprusRow the normalExplicitRow to set
104 public void setCyprusDistributionRow(CyprusDistributionRow cyprusRow
) {
105 this.cyprusDistributionRow
= cyprusRow
;