Project

General

Profile

Download (2.57 KB) Statistics
| Branch: | Revision:
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<?> currentMicroRef;
30
	private Reference<?> completeSourceRef;
31
	private String classificationA;
32
	private String classificationB;
33
	@SuppressWarnings("unused")
34
	private static final Logger logger = Logger.getLogger(BfnXmlImportState.class);
35

    
36
	//TODO make it better
37
	private Map<String, CommonTaxonName> commonNameMap = null;
38

    
39
	public BfnXmlImportState(BfnXmlImportConfigurator config) {
40
		super(config);
41
	}
42

    
43
	public Map<String, CommonTaxonName> getCommonNameMap() {
44
		return commonNameMap;
45
	}
46

    
47

    
48

    
49
	public void setCommonNameMap(Map<String, CommonTaxonName> commonNameMap) {
50
		this.commonNameMap = commonNameMap;
51
	}
52

    
53
	public void setFirstListSecRef(Reference<?> ref) {
54
		this.refA = ref;
55
	}
56

    
57
	public void setSecondListSecRef(Reference<?> ref) {
58
		this.refB = ref;
59
	}
60

    
61
	public Reference<?> getFirstListSecRef(){
62
		return refA;
63
	}
64

    
65
	public Reference<?> getSecondListSecRef(){
66
		return refB;
67
	}
68

    
69
	public void setCurrentMicroRef(Reference<?> currentRef) {
70
		this.currentMicroRef = currentRef;
71
	}
72
	public Reference<?> getCompleteSourceRef() {
73
		return completeSourceRef;
74
	}
75

    
76
	public void setCompleteSourceRef(Reference<?> completeSourceRef) {
77
		this.completeSourceRef = completeSourceRef;
78
	}
79

    
80
	public Reference<?> getCurrentMicroRef(){
81
		return currentMicroRef;
82
	}
83
	public void setFirstClassificationName(String classificationA) {
84
		  this.classificationA = classificationA;
85
	}
86

    
87
	public void setSecondClassificationName(String classificationB) {
88
		  this.classificationB = classificationB;
89
	}
90

    
91
	public String getFirstClassificationName() {
92
		return  classificationA;
93
	}
94

    
95
	public String getSecondClassificationName() {
96
		return  classificationB;
97
	}
98

    
99
//	/* (non-Javadoc)
100
//	 * @see eu.etaxonomy.cdm.io.common.IoStateBase#initialize(eu.etaxonomy.cdm.io.common.IoConfiguratorBase)
101
//	 */
102
//	@Override
103
//	public void initialize(TcsXmlImportConfigurator config) {
104
//
105
//	}
106

    
107
}
(6-6/8)