ref #6241 change @date to @since in appimport
[cdmlib-apps.git] / app-import / src / main / java / eu / etaxonomy / cdm / io / mexico / MexicoBorhidiImportConfigurator.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.mexico;
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.common.mapping.IInputTransformer;
16 import eu.etaxonomy.cdm.io.excel.common.ExcelImportConfiguratorBase;
17 import eu.etaxonomy.cdm.model.name.NomenclaturalCode;
18 import eu.etaxonomy.cdm.model.reference.Reference;
19
20 /**
21 * @author a.mueller
22 * @since 16.06.2016
23 *
24 */
25 public class MexicoBorhidiImportConfigurator extends ExcelImportConfiguratorBase{
26 private static final long serialVersionUID = -4793138681632122831L;
27
28 private static IInputTransformer defaultTransformer = new MexicoConabioTransformer();
29 private Reference secReference;
30
31 /**
32 * @param source
33 * @param cdmDestination
34 * @return
35 */
36 public static MexicoBorhidiImportConfigurator NewInstance(URI source, ICdmDataSource destination) {
37 return new MexicoBorhidiImportConfigurator(source, destination);
38 }
39
40
41 private MexicoBorhidiImportConfigurator(URI source, ICdmDataSource destination) {
42 super(source, destination, defaultTransformer);
43 setNomenclaturalCode(NomenclaturalCode.ICNAFP);
44 setSource(source);
45 setDestination(destination);
46 }
47
48 @Override
49 public ImportStateBase getNewState() {
50 return new SimpleExcelTaxonImportState<>(this);
51 }
52
53 @Override
54 protected void makeIoClassList() {
55 ioClassList = new Class[]{
56 MexicoBorhidiExcelImport.class
57 };
58 }
59
60
61 /**
62 * @return the secReference
63 */
64 public Reference getSecReference() {
65 return secReference;
66 }
67
68
69 /**
70 * @param secReference
71 */
72 public void setSecReference(Reference secReference) {
73 this.secReference = secReference;
74 }
75
76 }
77