Project

General

Profile

Download (2.03 KB) Statistics
| Branch: | Revision:
1
// $Id$
2
/**
3
* Copyright (C) 2017 EDIT
4
* European Distributed Institute of Taxonomy
5
* http://www.e-taxonomy.eu
6
*
7
* The contents of this file are subject to the Mozilla Public License Version 1.1
8
* See LICENSE.TXT at the top of this package for the full license terms.
9
*/
10
package eu.etaxonomy.cdm.io.redlist.gefaesspflanzen.excel;
11

    
12
import java.net.URI;
13

    
14
import eu.etaxonomy.cdm.database.ICdmDataSource;
15
import eu.etaxonomy.cdm.io.common.ImportStateBase;
16
import eu.etaxonomy.cdm.io.excel.common.ExcelImportConfiguratorBase;
17
import eu.etaxonomy.cdm.io.mexico.SimpleExcelTaxonImportState;
18
import eu.etaxonomy.cdm.model.reference.Reference;
19

    
20
/**
21
 * Import for German red list checklist for plantae.
22
 *
23
 * @author a.mueller
24
 * @since 13.06.2019
25
 */
26
public class RedListGefaesspflanzenExcelImportConfigurator extends ExcelImportConfiguratorBase{
27

    
28
    private static final long serialVersionUID = 1747735027309419198L;
29
    private Reference secReference;
30

    
31
    /**
32
     * @param source
33
     * @param cdmDestination
34
     * @return
35
     */
36
    public static RedListGefaesspflanzenExcelImportConfigurator NewInstance(URI source, ICdmDataSource destination) {
37
        return new RedListGefaesspflanzenExcelImportConfigurator(source, destination);
38
    }
39

    
40
    /**
41
     * @param uri
42
     * @param destination
43
     */
44
    private RedListGefaesspflanzenExcelImportConfigurator(URI uri, ICdmDataSource destination) {
45
        super(uri, destination);
46
    }
47

    
48
    /**
49
     * {@inheritDoc}
50
     */
51
    @Override
52
    public ImportStateBase getNewState() {
53
        return new SimpleExcelTaxonImportState<>(this);
54
    }
55

    
56
    /**
57
     * {@inheritDoc}
58
     */
59
    @Override
60
    protected void makeIoClassList() {
61
        ioClassList = new Class[]{
62
                RedListGefaesspflanzenTaxonExcelImport.class,
63
        };
64
    }
65

    
66
    /**
67
     * @return the secReference
68
     */
69
    public Reference getSecReference() {
70
        return secReference;
71
    }
72

    
73

    
74
    /**
75
     * @param secReference
76
     */
77
    public void setSecReference(Reference secReference) {
78
        this.secReference = secReference;
79
    }
80

    
81
}
(1-1/2)