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
.excel
.common
;
15 import org
.apache
.log4j
.Logger
;
17 import eu
.etaxonomy
.cdm
.database
.ICdmDataSource
;
18 import eu
.etaxonomy
.cdm
.io
.common
.IImportConfigurator
;
19 import eu
.etaxonomy
.cdm
.io
.common
.ImportConfiguratorBase
;
20 import eu
.etaxonomy
.cdm
.io
.common
.mapping
.IInputTransformer
;
21 import eu
.etaxonomy
.cdm
.model
.reference
.Reference
;
22 import eu
.etaxonomy
.cdm
.model
.reference
.ReferenceFactory
;
24 public abstract class ExcelImportConfiguratorBase
extends ImportConfiguratorBase
<ExcelImportState
, URI
> implements IImportConfigurator
{
25 private static final Logger logger
= Logger
.getLogger(ExcelImportConfiguratorBase
.class);
28 private static IInputTransformer defaultTransformer
= null;
35 protected ExcelImportConfiguratorBase(URI uri
, ICdmDataSource destination
) {
36 this(uri
, destination
, defaultTransformer
);
43 protected ExcelImportConfiguratorBase(URI uri
, ICdmDataSource destination
, IInputTransformer transformer
) {
46 setDestination(destination
);
50 * @see eu.etaxonomy.cdm.io.common.ImportConfiguratorBase#getSourceReference()
53 public Reference
getSourceReference() {
55 if (this.sourceReference
== null){
56 logger
.warn("getSource Reference not yet fully implemented");
57 sourceReference
= ReferenceFactory
.newDatabase();
58 sourceReference
.setTitleCache("Distribution data import", true);
60 return sourceReference
;
63 public boolean isDoMatchTaxa() {