Project

General

Profile

Download (1.89 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.bogota;
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
 * @author a.mueller
22
 * @date 21.04.2017
23
 *
24
 */
25
public class BogotaChecklistImportConfigurator extends ExcelImportConfiguratorBase{
26
    private static final long serialVersionUID = 5988430626932820343L;
27

    
28
    private Reference secReference;
29

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

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

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

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

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

    
72

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

    
80
}
(1-1/2)