dbdc8dab44bb1a624018a7d3647b7ead00eed4b6
[cdmlib.git] / cdmlib-io / src / main / java / eu / etaxonomy / cdm / io / excel / common / ExcelImportState.java
1 /**
2 * Copyright (C) 2007 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
5 *
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.
8 */
9
10 package eu.etaxonomy.cdm.io.excel.common;
11
12 import java.util.HashMap;
13
14 import org.apache.log4j.Logger;
15
16 import eu.etaxonomy.cdm.io.common.ImportStateBase;
17
18 /**
19 * @author a.mueller
20 * @created 11.05.2009
21 */
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);
26
27 private Integer currentLine;
28 private ROW currentRow;
29 private HashMap<String, String> originalRecord;
30
31
32 public ExcelImportState(CONFIG config) {
33 super(config);
34 }
35
36
37 public Integer getCurrentLine() {
38 return currentLine;
39 }
40 public void setCurrentLine(Integer currentLine) {
41 this.currentLine = currentLine;
42 }
43
44 /**
45 * Increments the current line
46 */
47 public void incCurrentLine(){
48 this.currentLine++;
49 }
50
51
52 /**
53 * The data holder class in which results for the current record are stored.
54 * @return
55 */
56 public ROW getCurrentRow() {
57 return currentRow;
58 }
59
60 public void setCurrentRow(ROW currentRow) {
61 this.currentRow = currentRow;
62 }
63
64 public HashMap<String,String> getOriginalRecord(){
65 return this.originalRecord;
66 }
67
68 public void setOriginalRecord(HashMap<String,String> originalRecord){
69 this.originalRecord = originalRecord;
70 }
71
72
73 }