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
.lichenes
;
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
;
20 * Configurator for lichenes genus Cora import.
25 public class CoraImportConfigurator
extends ExcelImportConfiguratorBase
{
27 private static final long serialVersionUID
= 8656746111285366704L;
29 private static IInputTransformer defaultTransformer
= null;
30 private Reference secReference
;
32 public static CoraImportConfigurator
NewInstance(URI source
, ICdmDataSource destination
) {
33 return new CoraImportConfigurator(source
, destination
);
36 private CoraImportConfigurator(URI source
, ICdmDataSource destination
) {
37 super(source
, destination
, defaultTransformer
);
38 setNomenclaturalCode(NomenclaturalCode
.ICNAFP
);
40 setDestination(destination
);
43 @SuppressWarnings({ "unchecked", "rawtypes" })
45 public SimpleExcelTaxonImportState
getNewState() {
46 return new SimpleExcelTaxonImportState
<>(this);
49 @SuppressWarnings("unchecked")
51 protected void makeIoClassList() {
52 ioClassList
= new Class
[]{
53 CoraTaxonImport
.class,
57 public Reference
getSecReference() {
60 public void setSecReference(Reference secReference
) {
61 this.secReference
= secReference
;