2 * Copyright (C) 2007 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
.eflora
.centralAfrica
.checklist
;
11 import java
.util
.UUID
;
13 import org
.apache
.logging
.log4j
.LogManager
;
14 import org
.apache
.logging
.log4j
.Logger
;
16 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
17 import eu
.etaxonomy
.cdm
.io
.common
.DbImportConfiguratorBase
;
18 import eu
.etaxonomy
.cdm
.io
.common
.Source
;
19 import eu
.etaxonomy
.cdm
.io
.common
.mapping
.IInputTransformer
;
20 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalCode
;
27 public class CentralAfricaChecklistImportConfigurator
28 extends DbImportConfiguratorBase
<CentralAfricaChecklistImportState
> {
30 private static final long serialVersionUID
= 3575836691256409349L;
31 @SuppressWarnings("unused")
32 private static Logger logger
= LogManager
.getLogger();
34 private UUID uuidGenevaReference
= UUID
.fromString("cf3fd13d-6cad-430c-ab70-7ea841b7159f");
36 private String genevaReferenceTitle
= null;
38 public static CentralAfricaChecklistImportConfigurator
NewInstance(Source ermsSource
, ICdmDataSource destination
){
39 return new CentralAfricaChecklistImportConfigurator(ermsSource
, destination
);
42 private boolean doVernaculars
= true;
43 private boolean doLinks
= true;
44 private boolean doNotes
= true;
45 private boolean doImages
= true;
46 private DO_REFERENCES doReferences
= DO_REFERENCES
.ALL
;
47 private boolean doTaxa
= true;
50 private static IInputTransformer defaultTransformer
= new CentralAfricaChecklistTransformer();
53 protected void makeIoClassList(){
54 ioClassList
= new Class
[]{
55 //ErmsGeneralImportValidator.class
56 CentralAfricaChecklistReferenceImport
.class ,
57 CentralAfricaChecklistTaxonImport
.class,
58 CentralAfricaChecklistSynonymImport
.class
64 * @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState()
67 public CentralAfricaChecklistImportState
getNewState() {
68 return new CentralAfricaChecklistImportState(this);
73 private CentralAfricaChecklistImportConfigurator(Source source
, ICdmDataSource destination
) {
74 super(source
, destination
,NomenclaturalCode
.ICNAFP
, defaultTransformer
); //default for FdAC
79 public Source
getSource() {
80 return super.getSource();
83 public void setSource(Source berlinModelSource
) {
84 super.setSource(berlinModelSource
);
88 * @param doVernaculars the doVernaculars to set
90 public void setDoVernaculars(boolean doVernaculars
) {
91 this.doVernaculars
= doVernaculars
;
95 * @return the doVernaculars
97 public boolean isDoVernaculars() {
104 * @param doLinks the doLinks to set
106 public void setDoLinks(boolean doLinks
) {
107 this.doLinks
= doLinks
;
113 * @return the doLinks
115 public boolean isDoLinks() {
122 * @param doNotes the doNotes to set
124 public void setDoNotes(boolean doNotes
) {
125 this.doNotes
= doNotes
;
131 * @return the doNotes
133 public boolean isDoNotes() {
140 * @param doImages the doImages to set
142 public void setDoImages(boolean doImages
) {
143 this.doImages
= doImages
;
149 * @return the doImages
151 public boolean isDoImages() {
156 public void setUuidGenevaReference(UUID uuidGenevaReference
) {
157 this.uuidGenevaReference
= uuidGenevaReference
;
161 public UUID
getUuidGenevaReference() {
162 return uuidGenevaReference
;
166 public void setGenevaReferenceTitle(String genevaReferenceTitle
) {
167 this.genevaReferenceTitle
= genevaReferenceTitle
;
171 public String
getGenevaReferenceTitle() {
172 return genevaReferenceTitle
;
176 public DO_REFERENCES
getDoReferences() {
179 public void setDoReferences(DO_REFERENCES doReferences
) {
180 this.doReferences
= doReferences
;
183 public boolean isDoTaxa() {
186 public void setDoTaxa(boolean doTaxa
) {
187 this.doTaxa
= doTaxa
;