Revision 748cb818
Added by Andreas Müller about 4 years ago
app-import/src/main/java/eu/etaxonomy/cdm/io/caryo/CaryoImportConfigurator.java | ||
---|---|---|
1 | 1 |
/** |
2 | 2 |
* Copyright (C) 2007 EDIT |
3 |
* European Distributed Institute of Taxonomy
|
|
3 |
* European Distributed Institute of Taxonomy |
|
4 | 4 |
* http://www.e-taxonomy.eu |
5 |
*
|
|
5 |
* |
|
6 | 6 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
7 | 7 |
* See LICENSE.TXT at the top of this package for the full license terms. |
8 | 8 |
*/ |
... | ... | |
13 | 13 |
|
14 | 14 |
import eu.etaxonomy.cdm.database.ICdmDataSource; |
15 | 15 |
import eu.etaxonomy.cdm.io.common.DbImportConfiguratorBase; |
16 |
import eu.etaxonomy.cdm.io.common.IImportConfigurator; |
|
17 | 16 |
import eu.etaxonomy.cdm.io.common.Source; |
18 | 17 |
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer; |
19 | 18 |
import eu.etaxonomy.cdm.model.name.NomenclaturalCode; |
20 | 19 |
|
21 |
|
|
22 | 20 |
/** |
23 | 21 |
* @author a.mueller |
24 | 22 |
* @since 20.03.2008 |
25 |
* @version 1.0 |
|
26 | 23 |
*/ |
27 |
public class CaryoImportConfigurator extends DbImportConfiguratorBase<CaryoImportState> implements IImportConfigurator{ |
|
28 |
@SuppressWarnings("unused") |
|
24 |
public class CaryoImportConfigurator |
|
25 |
extends DbImportConfiguratorBase<CaryoImportState>{ |
|
26 |
|
|
27 |
private static final long serialVersionUID = 9002177401082394179L; |
|
28 |
@SuppressWarnings("unused") |
|
29 | 29 |
private static Logger logger = Logger.getLogger(CaryoImportConfigurator.class); |
30 | 30 |
|
31 | 31 |
private boolean isDoTaxa; |
32 |
|
|
32 |
|
|
33 | 33 |
private static IInputTransformer defaultTransformer = new CaryoTransformer(); |
34 |
|
|
34 |
|
|
35 | 35 |
public static CaryoImportConfigurator NewInstance(Source source, ICdmDataSource destination){ |
36 | 36 |
return new CaryoImportConfigurator(source, destination); |
37 |
} |
|
38 |
|
|
37 |
} |
|
39 | 38 |
|
40 |
|
|
41 |
protected void makeIoClassList(){ |
|
39 |
@SuppressWarnings("unchecked") |
|
40 |
@Override |
|
41 |
protected void makeIoClassList(){ |
|
42 | 42 |
ioClassList = new Class[]{ |
43 | 43 |
CaryoTaxonImport.class , |
44 |
};
|
|
44 |
}; |
|
45 | 45 |
} |
46 |
|
|
47 | 46 |
|
48 |
/* (non-Javadoc) |
|
49 |
* @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState() |
|
50 |
*/ |
|
51 |
public CaryoImportState getNewState() { |
|
47 |
@SuppressWarnings("unchecked") |
|
48 |
@Override |
|
49 |
public CaryoImportState getNewState() { |
|
52 | 50 |
return new CaryoImportState(this); |
53 | 51 |
} |
54 | 52 |
|
55 |
|
|
56 |
|
|
57 | 53 |
private CaryoImportConfigurator(Source source, ICdmDataSource destination) { |
58 | 54 |
super(source, destination, NomenclaturalCode.ICNAFP, defaultTransformer); |
59 | 55 |
} |
60 | 56 |
|
61 |
|
|
62 |
|
|
63 | 57 |
public boolean isDoTaxa() { |
64 | 58 |
return this.isDoTaxa; |
65 | 59 |
} |
66 | 60 |
|
67 |
|
|
68 |
|
|
69 | 61 |
public void setDoTaxa(boolean isDoTaxa) { |
70 | 62 |
this.isDoTaxa = isDoTaxa; |
71 | 63 |
} |
72 |
|
|
73 | 64 |
} |
Also available in: Unified diff
cleanup