1
|
/**
|
2
|
* Copyright (C) 2017 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
|
package eu.etaxonomy.cdm.io.bogota;
|
10
|
|
11
|
import eu.etaxonomy.cdm.common.URI;
|
12
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
13
|
import eu.etaxonomy.cdm.io.common.ImportStateBase;
|
14
|
import eu.etaxonomy.cdm.io.excel.common.ExcelImportConfiguratorBase;
|
15
|
import eu.etaxonomy.cdm.io.mexico.SimpleExcelTaxonImportState;
|
16
|
import eu.etaxonomy.cdm.model.reference.Reference;
|
17
|
|
18
|
/**
|
19
|
* @author a.mueller
|
20
|
* @since 21.04.2017
|
21
|
*/
|
22
|
public class BogotaChecklistImportConfigurator extends ExcelImportConfiguratorBase{
|
23
|
|
24
|
private static final long serialVersionUID = 5988430626932820343L;
|
25
|
|
26
|
private Reference secReference;
|
27
|
|
28
|
/**
|
29
|
* @param source
|
30
|
* @param cdmDestination
|
31
|
* @return
|
32
|
*/
|
33
|
public static BogotaChecklistImportConfigurator NewInstance(URI source, ICdmDataSource destination) {
|
34
|
return new BogotaChecklistImportConfigurator(source, destination);
|
35
|
}
|
36
|
|
37
|
private BogotaChecklistImportConfigurator(URI uri, ICdmDataSource destination) {
|
38
|
super(uri, destination);
|
39
|
}
|
40
|
|
41
|
@Override
|
42
|
public ImportStateBase getNewState() {
|
43
|
return new SimpleExcelTaxonImportState<>(this);
|
44
|
}
|
45
|
|
46
|
@SuppressWarnings("unchecked")
|
47
|
@Override
|
48
|
protected void makeIoClassList() {
|
49
|
ioClassList = new Class[]{
|
50
|
BogotaChecklistTaxonImport.class,
|
51
|
};
|
52
|
}
|
53
|
|
54
|
public Reference getSecReference() {
|
55
|
return secReference;
|
56
|
}
|
57
|
public void setSecReference(Reference secReference) {
|
58
|
this.secReference = secReference;
|
59
|
}
|
60
|
|
61
|
}
|