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
.caryo
;
12 import org
.apache
.log4j
.Logger
;
14 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
15 import eu
.etaxonomy
.cdm
.io
.common
.DbImportConfiguratorBase
;
16 import eu
.etaxonomy
.cdm
.io
.common
.IImportConfigurator
;
17 import eu
.etaxonomy
.cdm
.io
.common
.Source
;
18 import eu
.etaxonomy
.cdm
.io
.common
.mapping
.IInputTransformer
;
19 import eu
.etaxonomy
.cdm
.model
.name
.NomenclaturalCode
;
27 public class CaryoImportConfigurator
extends DbImportConfiguratorBase
<CaryoImportState
> implements IImportConfigurator
{
28 @SuppressWarnings("unused")
29 private static Logger logger
= Logger
.getLogger(CaryoImportConfigurator
.class);
31 private boolean isDoTaxa
;
33 private static IInputTransformer defaultTransformer
= new CaryoTransformer();
35 public static CaryoImportConfigurator
NewInstance(Source source
, ICdmDataSource destination
){
36 return new CaryoImportConfigurator(source
, destination
);
41 protected void makeIoClassList(){
42 ioClassList
= new Class
[]{
43 CaryoTaxonImport
.class ,
49 * @see eu.etaxonomy.cdm.io.common.IImportConfigurator#getNewState()
51 public CaryoImportState
getNewState() {
52 return new CaryoImportState(this);
57 private CaryoImportConfigurator(Source source
, ICdmDataSource destination
) {
58 super(source
, destination
, NomenclaturalCode
.ICNAFP
, defaultTransformer
);
63 public boolean isDoTaxa() {
69 public void setDoTaxa(boolean isDoTaxa
) {
70 this.isDoTaxa
= isDoTaxa
;