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

    
18
/**
19
 * @author a.mueller
20
 * @date 21.04.2017
21
 *
22
 */
23
public class BogotaSpecimenImportConfigurator extends ExcelImportConfiguratorBase{
24

    
25
    private static final long serialVersionUID = 6688815926646112726L;
26

    
27
    private int minLineNumber = 0;
28
    private int maxLineNumber = 1000000;
29

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

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

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

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

    
65
    public int getMinLineNumber() {
66
        return minLineNumber;
67
    }
68
    public void setMinLineNumber(int minLineNumber) {
69
        this.minLineNumber = minLineNumber;
70
    }
71

    
72
    public int getMaxLineNumber() {
73
        return maxLineNumber;
74
    }
75

    
76
    public void setMaxLineNumber(int maxLineNumber) {
77
        this.maxLineNumber = maxLineNumber;
78
    }
79

    
80

    
81
}
(4-4/6)