Project

General

Profile

Download (1.52 KB) Statistics
| Branch: | Revision:
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.plantglossary;
10

    
11
import java.io.IOException;
12
import java.net.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
 * @since Dec 7, 2018
21
 *
22
 */
23
public class PlantGlossaryCsvImportConfigurator
24
        extends CsvImportConfiguratorBase{
25

    
26
    private static final long serialVersionUID = 987286481306951779L;
27

    
28
    public static PlantGlossaryCsvImportConfigurator NewInstance(URI source,
29
            ICdmDataSource cdmDestination) throws IOException {
30
        return new PlantGlossaryCsvImportConfigurator(source, cdmDestination);
31
    }
32

    
33
// ****************** CONSTRUCTOR *****************************/
34

    
35
    private PlantGlossaryCsvImportConfigurator(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
                PlantGlossaryCategoryImport.class,
48
                PlantGlossaryStateImport.class };
49
    }
50

    
51
    @Override
52
    public PlantGlossaryCsvImportState getNewState() {
53
        return new PlantGlossaryCsvImportState(this);
54
    }
55

    
56
}
(3-3/5)