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 MexicoConabioImportConfigurator
extends ExcelImportConfiguratorBase
{
26 private static final long serialVersionUID
= -2795059530001736347L;
28 private Reference secReference
;
30 private boolean doTaxa
= true;
31 private boolean doDistributions
= true;
32 private boolean doCommonNames
= true;
34 private static IInputTransformer defaultTransformer
= new MexicoConabioTransformer();
36 public static MexicoConabioImportConfigurator
NewInstance(URI source
, ICdmDataSource destination
) {
37 return new MexicoConabioImportConfigurator(source
, destination
);
40 private MexicoConabioImportConfigurator(URI source
, ICdmDataSource destination
) {
41 super(source
, destination
, defaultTransformer
);
42 setNomenclaturalCode(NomenclaturalCode
.ICNAFP
);
44 setDestination(destination
);
47 @SuppressWarnings({ "unchecked", "rawtypes" })
49 public ImportStateBase
getNewState() {
50 return new SimpleExcelTaxonImportState
<>(this);
53 @SuppressWarnings("unchecked")
55 protected void makeIoClassList() {
56 ioClassList
= new Class
[]{
57 MexicoConabioTaxonImport
.class,
58 MexicoConabioDistributionImport
.class,
59 MexicoConabioCommonNamesImport
.class
66 public boolean isDoTaxa() {
71 * @param doTaxa the doTaxa to set
73 public void setDoTaxa(boolean doTaxa
) {
78 * @return the doDistributions
80 public boolean isDoDistributions() {
81 return doDistributions
;
85 * @param doDistributions the doDistributions to set
87 public void setDoDistributions(boolean doDistributions
) {
88 this.doDistributions
= doDistributions
;
92 * @return the doCommonNames
94 public boolean isDoCommonNames() {
99 * @param doCommonNames the doCommonNames to set
101 public void setDoCommonNames(boolean doCommonNames
) {
102 this.doCommonNames
= doCommonNames
;
106 * @return the secReference
108 public Reference
getSecReference() {
114 * @param secReference
116 public void setSecReference(Reference secReference
) {
117 this.secReference
= secReference
;