1
|
/**
|
2
|
* Copyright (C) 2016 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.salvador;
|
10
|
|
11
|
import java.io.IOException;
|
12
|
import eu.etaxonomy.cdm.common.URI;
|
13
|
|
14
|
import eu.etaxonomy.cdm.database.ICdmDataSource;
|
15
|
import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
|
16
|
import eu.etaxonomy.cdm.io.csv.in.CsvImportConfiguratorBase;
|
17
|
import eu.etaxonomy.cdm.io.csv.in.CsvImportState;
|
18
|
|
19
|
/**
|
20
|
* @author a.mueller
|
21
|
* @since 16.06.2016
|
22
|
*
|
23
|
*/
|
24
|
public class SalvadorSpecimenImportConfigurator extends CsvImportConfiguratorBase{
|
25
|
private static final long serialVersionUID = -4793138681632122831L;
|
26
|
|
27
|
private static IInputTransformer defaultTransformer = new SalvadorImportTransformer();
|
28
|
|
29
|
/**
|
30
|
* @param source
|
31
|
* @param cdmDestination
|
32
|
* @return
|
33
|
* @throws IOException
|
34
|
*/
|
35
|
public static SalvadorSpecimenImportConfigurator NewInstance(URI source, ICdmDataSource destination) throws IOException {
|
36
|
return new SalvadorSpecimenImportConfigurator(source, destination);
|
37
|
}
|
38
|
|
39
|
|
40
|
private SalvadorSpecimenImportConfigurator(URI source, ICdmDataSource destination) throws IOException {
|
41
|
super(source, destination, defaultTransformer);
|
42
|
}
|
43
|
|
44
|
@Override
|
45
|
protected void makeIoClassList() {
|
46
|
ioClassList = new Class[]{
|
47
|
SalvadorSpecimenImport.class
|
48
|
};
|
49
|
}
|
50
|
|
51
|
/**
|
52
|
* {@inheritDoc}
|
53
|
*/
|
54
|
@Override
|
55
|
public CsvImportState getNewState() {
|
56
|
return new SalvadorSpecimenImportState(this);
|
57
|
}
|
58
|
|
59
|
}
|
60
|
|