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.prometheus;
|
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.csv.in.CsvImportConfiguratorBase;
|
16
|
|
17
|
/**
|
18
|
*
|
19
|
* @author pplitzner
|
20
|
* @date 18.02.2019
|
21
|
*
|
22
|
*/
|
23
|
public class PrometheusPropertiesCsvImportConfigurator
|
24
|
extends CsvImportConfiguratorBase{
|
25
|
|
26
|
private static final long serialVersionUID = 987286481306951779L;
|
27
|
|
28
|
public static PrometheusPropertiesCsvImportConfigurator NewInstance(URI source,
|
29
|
ICdmDataSource cdmDestination) throws IOException {
|
30
|
return new PrometheusPropertiesCsvImportConfigurator(source, cdmDestination);
|
31
|
}
|
32
|
|
33
|
// ****************** CONSTRUCTOR *****************************/
|
34
|
|
35
|
private PrometheusPropertiesCsvImportConfigurator(URI source,
|
36
|
ICdmDataSource cdmDestination) throws IOException{
|
37
|
super(source, cdmDestination, null);
|
38
|
}
|
39
|
|
40
|
// *************************************
|
41
|
|
42
|
|
43
|
@Override
|
44
|
@SuppressWarnings("unchecked")
|
45
|
protected void makeIoClassList() {
|
46
|
ioClassList = new Class[] {
|
47
|
PrometheusPropertiesImport.class };
|
48
|
}
|
49
|
|
50
|
@Override
|
51
|
public PrometheusPropertiesCsvImportState getNewState() {
|
52
|
return new PrometheusPropertiesCsvImportState(this);
|
53
|
}
|
54
|
|
55
|
}
|