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.caryo;
|
11
|
|
12
|
import org.apache.log4j.Logger;
|
13
|
|
14
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
15
|
import eu.etaxonomy.cdm.io.common.DbImportConfiguratorBase;
|
16
|
import eu.etaxonomy.cdm.io.common.IImportConfigurator;
|
17
|
import eu.etaxonomy.cdm.io.common.Source;
|
18
|
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
|
19
|
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
|
20
|
|
21
|
|
22
|
/**
|
23
|
* @author a.mueller
|
24
|
* @since 20.03.2008
|
25
|
* @version 1.0
|
26
|
*/
|
27
|
public class CaryoImportConfigurator extends DbImportConfiguratorBase<CaryoImportState> implements IImportConfigurator{
|
28
|
@SuppressWarnings("unused")
|
29
|
private static Logger logger = Logger.getLogger(CaryoImportConfigurator.class);
|
30
|
|
31
|
private boolean isDoTaxa;
|
32
|
|
33
|
private static IInputTransformer defaultTransformer = new CaryoTransformer();
|
34
|
|
35
|
public static CaryoImportConfigurator NewInstance(Source source, ICdmDataSource destination){
|
36
|
return new CaryoImportConfigurator(source, destination);
|
37
|
}
|
38
|
|
39
|
|
40
|
|
41
|
protected void makeIoClassList(){
|
42
|
ioClassList = new Class[]{
|
43
|
CaryoTaxonImport.class ,
|
44
|
};
|
45
|
}
|
46
|
|
47
|
|
48
|
/* (non-Javadoc)
|
49
|
* @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState()
|
50
|
*/
|
51
|
public CaryoImportState getNewState() {
|
52
|
return new CaryoImportState(this);
|
53
|
}
|
54
|
|
55
|
|
56
|
|
57
|
private CaryoImportConfigurator(Source source, ICdmDataSource destination) {
|
58
|
super(source, destination, NomenclaturalCode.ICNAFP, defaultTransformer);
|
59
|
}
|
60
|
|
61
|
|
62
|
|
63
|
public boolean isDoTaxa() {
|
64
|
return this.isDoTaxa;
|
65
|
}
|
66
|
|
67
|
|
68
|
|
69
|
public void setDoTaxa(boolean isDoTaxa) {
|
70
|
this.isDoTaxa = isDoTaxa;
|
71
|
}
|
72
|
|
73
|
}
|