added xml importer of bfn data to trunk
[cdmlib-apps.git] / app-import / src / main / java / eu / etaxonomy / cdm / io / redlist / bfnXml / BfnXmlImportState.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
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.
9 */
10
11 package eu.etaxonomy.cdm.io.redlist.bfnXml;
12
13 import java.util.Map;
14
15 import org.apache.log4j.Logger;
16
17 import eu.etaxonomy.cdm.io.common.ImportStateBase;
18 import eu.etaxonomy.cdm.model.description.CommonTaxonName;
19 import eu.etaxonomy.cdm.model.reference.Reference;
20
21 /**
22 * @author a.mueller
23 * @created 11.05.2009
24 * @version 1.0
25 */
26 public class BfnXmlImportState extends ImportStateBase<BfnXmlImportConfigurator, BfnXmlImportBase>{
27 private Reference refA;
28 private Reference refB;
29 private Reference currentRef;
30 @SuppressWarnings("unused")
31 private static final Logger logger = Logger.getLogger(BfnXmlImportState.class);
32
33 //TODO make it better
34 private Map<String, CommonTaxonName> commonNameMap = null;
35
36 public BfnXmlImportState(BfnXmlImportConfigurator config) {
37 super(config);
38 }
39
40 public Map<String, CommonTaxonName> getCommonNameMap() {
41 return commonNameMap;
42 }
43
44 public void setCommonNameMap(Map<String, CommonTaxonName> commonNameMap) {
45 this.commonNameMap = commonNameMap;
46 }
47
48 public void setFirstListSecRef(Reference ref) {
49 this.refA = ref;
50 }
51
52 public void setSecondListSecRef(Reference ref) {
53 this.refB = ref;
54 }
55
56 public Reference getFirstListSecRef(){
57 return refA;
58 }
59
60 public Reference getSecondListSecRef(){
61 return refB;
62 }
63
64 public void setCurrentRef(Reference currentRef) {
65 this.currentRef = currentRef;
66 }
67 public Reference getCurrentRef(){
68 return currentRef;
69 }
70
71 // /* (non-Javadoc)
72 // * @see eu.etaxonomy.cdm.io.common.IoStateBase#initialize(eu.etaxonomy.cdm.io.common.IoConfiguratorBase)
73 // */
74 // @Override
75 // public void initialize(TcsXmlImportConfigurator config) {
76 //
77 // }
78
79 }