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.redlist.bfnXml.in;
|
11
|
|
12
|
import java.util.Map;
|
13
|
|
14
|
import org.apache.log4j.Logger;
|
15
|
|
16
|
import eu.etaxonomy.cdm.io.common.ImportStateBase;
|
17
|
import eu.etaxonomy.cdm.model.description.CommonTaxonName;
|
18
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
19
|
|
20
|
/**
|
21
|
* @author a.oppermann
|
22
|
* @since 2013
|
23
|
*/
|
24
|
public class BfnXmlImportState extends ImportStateBase<BfnXmlImportConfigurator, BfnXmlImportBase>{
|
25
|
@SuppressWarnings("unused")
|
26
|
private static final Logger logger = Logger.getLogger(BfnXmlImportState.class);
|
27
|
|
28
|
private Reference firstListSecRef;
|
29
|
private Reference secondListSecRef;
|
30
|
private Reference currentSecundumRef;
|
31
|
private Reference completeSourceRef;
|
32
|
private String classificationA;
|
33
|
private String classificationB;
|
34
|
|
35
|
private boolean fillSecondList = false;
|
36
|
|
37
|
//TODO make it better
|
38
|
private Map<String, CommonTaxonName> commonNameMap = null;
|
39
|
|
40
|
public BfnXmlImportState(BfnXmlImportConfigurator config) {
|
41
|
super(config);
|
42
|
}
|
43
|
|
44
|
public Map<String, CommonTaxonName> getCommonNameMap() {
|
45
|
return commonNameMap;
|
46
|
}
|
47
|
|
48
|
public void setCommonNameMap(Map<String, CommonTaxonName> commonNameMap) {
|
49
|
this.commonNameMap = commonNameMap;
|
50
|
}
|
51
|
|
52
|
|
53
|
public Reference getFirstListSecRef(){
|
54
|
return firstListSecRef;
|
55
|
}
|
56
|
public void setFirstListSecRef(Reference ref) {
|
57
|
this.firstListSecRef = ref;
|
58
|
}
|
59
|
|
60
|
public Reference getSecondListSecRef(){
|
61
|
return secondListSecRef;
|
62
|
}
|
63
|
public void setSecondListSecRef(Reference ref) {
|
64
|
this.secondListSecRef = ref;
|
65
|
}
|
66
|
|
67
|
/**
|
68
|
* The import file as reference, not the book
|
69
|
* @return
|
70
|
*/
|
71
|
public Reference getCompleteSourceRef() {
|
72
|
return completeSourceRef;
|
73
|
}
|
74
|
/**
|
75
|
* {@link #getCompleteSourceRef()}
|
76
|
*/
|
77
|
public void setCompleteSourceRef(Reference completeSourceRef) {
|
78
|
this.completeSourceRef = completeSourceRef;
|
79
|
}
|
80
|
|
81
|
public Reference getCurrentSecRef(){
|
82
|
return currentSecundumRef;
|
83
|
}
|
84
|
public void setCurrentSecundumRef(Reference currentRef) {
|
85
|
this.currentSecundumRef = currentRef;
|
86
|
}
|
87
|
|
88
|
public void setFirstClassificationName(String classificationA) {
|
89
|
this.classificationA = classificationA;
|
90
|
}
|
91
|
|
92
|
public void setSecondClassificationName(String classificationB) {
|
93
|
this.classificationB = classificationB;
|
94
|
}
|
95
|
|
96
|
public String getFirstClassificationName() {
|
97
|
return classificationA;
|
98
|
}
|
99
|
|
100
|
public String getSecondClassificationName() {
|
101
|
return classificationB;
|
102
|
}
|
103
|
|
104
|
|
105
|
public boolean isFillSecondList() {
|
106
|
return fillSecondList;
|
107
|
}
|
108
|
public void setFillSecondList(boolean fillSecondList) {
|
109
|
this.fillSecondList = fillSecondList;
|
110
|
}
|
111
|
|
112
|
}
|