2 * Copyright (C) 2016 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
9 package eu
.etaxonomy
.cdm
.io
.mexico
;
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
;
25 public class MexicoBorhidiImportConfigurator
extends ExcelImportConfiguratorBase
{
26 private static final long serialVersionUID
= -4793138681632122831L;
28 private static IInputTransformer defaultTransformer
= new MexicoConabioTransformer();
29 private Reference secReference
;
33 * @param cdmDestination
36 public static MexicoBorhidiImportConfigurator
NewInstance(URI source
, ICdmDataSource destination
) {
37 return new MexicoBorhidiImportConfigurator(source
, destination
);
41 private MexicoBorhidiImportConfigurator(URI source
, ICdmDataSource destination
) {
42 super(source
, destination
, defaultTransformer
);
43 setNomenclaturalCode(NomenclaturalCode
.ICNAFP
);
45 setDestination(destination
);
49 public ImportStateBase
getNewState() {
50 return new SimpleExcelTaxonImportState
<>(this);
54 protected void makeIoClassList() {
55 ioClassList
= new Class
[]{
56 MexicoBorhidiExcelImport
.class
62 * @return the secReference
64 public Reference
getSecReference() {
72 public void setSecReference(Reference secReference
) {
73 this.secReference
= secReference
;