Project

General

Profile

Download (1.99 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.euromed;
10

    
11
import java.net.URI;
12

    
13
import eu.etaxonomy.cdm.database.ICdmDataSource;
14
import eu.etaxonomy.cdm.io.common.ImportStateBase;
15
import eu.etaxonomy.cdm.io.excel.common.ExcelImportConfiguratorBase;
16
import eu.etaxonomy.cdm.io.mexico.SimpleExcelTaxonImportState;
17
import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
18

    
19
/**
20
 * @author a.mueller
21
 * @since 23.10.2019
22
 */
23
public class IpniSourcesImportConfigurator extends ExcelImportConfiguratorBase {
24

    
25
    private static final long serialVersionUID = 7883220110057878974L;
26

    
27
    public static IpniSourcesImportConfigurator NewInstance(URI uri, ICdmDataSource cdmDestination) {
28
        return new IpniSourcesImportConfigurator(uri, cdmDestination);
29
    }
30

    
31
    private IpniSourcesImportConfigurator(URI uri, ICdmDataSource cdmDestination) {
32
        super(uri, cdmDestination, null);
33
        this.setNomenclaturalCode(NomenclaturalCode.ICNAFP);
34
    }
35

    
36
    @SuppressWarnings("unchecked")
37
    @Override
38
    protected void makeIoClassList() {
39
        ioClassList = new Class[]{
40
                IpniSourcesImport.class
41
            };
42
    }
43

    
44
    @Override
45
    public ImportStateBase getNewState() {
46
        return new SimpleExcelTaxonImportState<>(this);
47
    }
48
//
49
//    /**
50
//     * If <code>true</code> the name authors will be added
51
//     * to the nomenclatural reference (Book or Article) though
52
//     * it might not be the exact same author.<BR>
53
//     * Default is <code>true</code>
54
//     */
55
//    public boolean isAddAuthorsToReference() {
56
//        return addAuthorsToReference;
57
//    }
58
//    /**
59
//     * @see #isAddAuthorsToReference()
60
//     */
61
//    public void setAddAuthorsToReference(boolean addAuthorsToReference) {
62
//        this.addAuthorsToReference = addAuthorsToReference;
63
//    }
64
}
(4-4/4)