ref #9918 first version of caryophyllaceae import
[cdmlib-apps.git] / app-import / src / main / java / eu / etaxonomy / cdm / io / caryo / KewExcelTaxonImportConfigurator.java
1 /**
2 * Copyright (C) 2016 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.caryo;
10
11 import eu.etaxonomy.cdm.common.URI;
12 import eu.etaxonomy.cdm.database.ICdmDataSource;
13 import eu.etaxonomy.cdm.io.common.mapping.IInputTransformer;
14 import eu.etaxonomy.cdm.io.excel.common.ExcelImportConfiguratorBase;
15 import eu.etaxonomy.cdm.io.mexico.SimpleExcelTaxonImportState;
16 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
17 import eu.etaxonomy.cdm.model.reference.Reference;
18
19 /**
20 * Configurator for Kew excel taxon import for Caryophyllaceae.
21 *
22 * @author a.mueller
23 * @since 05.01.2022
24 */
25 public class KewExcelTaxonImportConfigurator
26 extends ExcelImportConfiguratorBase{
27
28 private static final long serialVersionUID = -1819917445326422841L;
29
30 private static IInputTransformer defaultTransformer = null;
31 private Reference secReference;
32
33 public static KewExcelTaxonImportConfigurator NewInstance(URI source, ICdmDataSource destination) {
34 return new KewExcelTaxonImportConfigurator(source, destination);
35 }
36
37 private KewExcelTaxonImportConfigurator(URI source, ICdmDataSource destination) {
38 super(source, destination, defaultTransformer);
39 setNomenclaturalCode(NomenclaturalCode.ICNAFP);
40 setSource(source);
41 setDestination(destination);
42 }
43
44 @SuppressWarnings({ "unchecked", "rawtypes" })
45 @Override
46 public SimpleExcelTaxonImportState getNewState() {
47 return new SimpleExcelTaxonImportState<>(this);
48 }
49
50 @SuppressWarnings("unchecked")
51 @Override
52 protected void makeIoClassList() {
53 ioClassList = new Class[]{
54 KewExcelTaxonImport.class,
55 };
56 }
57
58 public Reference getSecReference() {
59 return secReference;
60 }
61 public void setSecReference(Reference secReference) {
62 this.secReference = secReference;
63 }
64 }