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.
10 package eu
.etaxonomy
.cdm
.io
.eflora
.centralAfrica
.checklist
;
12 import java
.util
.UUID
;
14 import org
.apache
.log4j
.Logger
;
16 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
17 import eu
.etaxonomy
.cdm
.io
.common
.DbImportConfiguratorBase
;
18 import eu
.etaxonomy
.cdm
.io
.common
.IImportConfigurator
;
19 import eu
.etaxonomy
.cdm
.io
.common
.Source
;
20 import eu
.etaxonomy
.cdm
.io
.common
.mapping
.IInputTransformer
;
21 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalCode
;
29 public class CentralAfricaChecklistImportConfigurator
extends DbImportConfiguratorBase
<CentralAfricaChecklistImportState
> implements IImportConfigurator
{
30 @SuppressWarnings("unused")
31 private static Logger logger
= Logger
.getLogger(CentralAfricaChecklistImportConfigurator
.class);
33 private UUID uuidGenevaReference
= UUID
.fromString("cf3fd13d-6cad-430c-ab70-7ea841b7159f");
35 private String genevaReferenceTitle
= null;
37 public static CentralAfricaChecklistImportConfigurator
NewInstance(Source ermsSource
, ICdmDataSource destination
){
38 return new CentralAfricaChecklistImportConfigurator(ermsSource
, destination
);
41 private boolean doVernaculars
= true;
42 private boolean doLinks
= true;
43 private boolean doNotes
= true;
44 private boolean doImages
= true;
45 private DO_REFERENCES doReferences
= DO_REFERENCES
.ALL
;
46 private boolean doTaxa
= true;
49 private static IInputTransformer defaultTransformer
= new CentralAfricaChecklistTransformer();
51 protected void makeIoClassList(){
52 ioClassList
= new Class
[]{
53 //ErmsGeneralImportValidator.class
54 CentralAfricaChecklistReferenceImport
.class ,
55 CentralAfricaChecklistTaxonImport
.class,
56 CentralAfricaChecklistSynonymImport
.class
62 * @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState()
64 public CentralAfricaChecklistImportState
getNewState() {
65 return new CentralAfricaChecklistImportState(this);
70 private CentralAfricaChecklistImportConfigurator(Source source
, ICdmDataSource destination
) {
71 super(source
, destination
,NomenclaturalCode
.ICNAFP
, defaultTransformer
); //default for FdAC
75 public Source
getSource() {
76 return (Source
)super.getSource();
78 public void setSource(Source berlinModelSource
) {
79 super.setSource(berlinModelSource
);
83 * @param doVernaculars the doVernaculars to set
85 public void setDoVernaculars(boolean doVernaculars
) {
86 this.doVernaculars
= doVernaculars
;
90 * @return the doVernaculars
92 public boolean isDoVernaculars() {
99 * @param doLinks the doLinks to set
101 public void setDoLinks(boolean doLinks
) {
102 this.doLinks
= doLinks
;
108 * @return the doLinks
110 public boolean isDoLinks() {
117 * @param doNotes the doNotes to set
119 public void setDoNotes(boolean doNotes
) {
120 this.doNotes
= doNotes
;
126 * @return the doNotes
128 public boolean isDoNotes() {
135 * @param doImages the doImages to set
137 public void setDoImages(boolean doImages
) {
138 this.doImages
= doImages
;
144 * @return the doImages
146 public boolean isDoImages() {
151 public void setUuidGenevaReference(UUID uuidGenevaReference
) {
152 this.uuidGenevaReference
= uuidGenevaReference
;
156 public UUID
getUuidGenevaReference() {
157 return uuidGenevaReference
;
161 public void setGenevaReferenceTitle(String genevaReferenceTitle
) {
162 this.genevaReferenceTitle
= genevaReferenceTitle
;
166 public String
getGenevaReferenceTitle() {
167 return genevaReferenceTitle
;
171 public DO_REFERENCES
getDoReferences() {
174 public void setDoReferences(DO_REFERENCES doReferences
) {
175 this.doReferences
= doReferences
;
178 public boolean isDoTaxa() {
181 public void setDoTaxa(boolean doTaxa
) {
182 this.doTaxa
= doTaxa
;