2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
6 * The contents of this file are subject to the Mozilla Public License Version 1.1
7 * See LICENSE.TXT at the top of this package for the full license terms.
10 package eu
.etaxonomy
.cdm
.io
.excel
.common
;
12 import java
.util
.HashMap
;
14 import org
.apache
.log4j
.Logger
;
16 import eu
.etaxonomy
.cdm
.io
.common
.ImportStateBase
;
22 public class ExcelImportState
<CONFIG
extends ExcelImportConfiguratorBase
, ROW
extends ExcelRowBase
>
23 extends ImportStateBase
<CONFIG
, ExcelImportBase
>{
24 @SuppressWarnings("unused")
25 private static final Logger logger
= Logger
.getLogger(ExcelImportState
.class);
27 private Integer currentLine
;
28 private ROW currentRow
;
29 private HashMap
<String
, String
> originalRecord
;
32 public ExcelImportState(CONFIG config
) {
37 public Integer
getCurrentLine() {
40 public void setCurrentLine(Integer currentLine
) {
41 this.currentLine
= currentLine
;
45 * Increments the current line
47 public void incCurrentLine(){
53 * The data holder class in which results for the current record are stored.
56 public ROW
getCurrentRow() {
60 public void setCurrentRow(ROW currentRow
) {
61 this.currentRow
= currentRow
;
64 public HashMap
<String
,String
> getOriginalRecord(){
65 return this.originalRecord
;
68 public void setOriginalRecord(HashMap
<String
,String
> originalRecord
){
69 this.originalRecord
= originalRecord
;