2 * Copyright (C) 2008 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
7 package eu
.etaxonomy
.cdm
.io
.common
;
9 import eu
.etaxonomy
.cdm
.api
.application
.CdmApplicationController
;
10 import eu
.etaxonomy
.cdm
.common
.IProgressMonitor
;
11 import eu
.etaxonomy
.cdm
.database
.DbSchemaValidation
;
15 * @author a.babadshanjan
18 public interface IIoConfigurator
{
21 * A String representation of the used source may it be a source to be imported (e.g. "BerlinModel Cichorieae Database")
22 * or a source to be exported (e.g. "CDM Cichorieae Database")
23 * @return String representing the source for the io
25 public String
getSourceNameString();
29 * A String representation of the destination may it be an import destination and therefore a CDM (e.g. CDM Cichorieae Database)
30 * or an export destination (e.g. CDM XML)
33 public String
getDestinationNameString();
37 * Returns the CdmApplicationController
40 public CdmApplicationController
getCdmAppController();
44 * Sets the CdmApplicationController
45 * @param cdmApp the cdmApp to set
47 public void setCdmAppController(CdmApplicationController cdmApp
);
50 * Get the way how the CDM schema is validated
51 * @see eu.etaxonomy.cdm.database.DbSchemaValidation
54 public DbSchemaValidation
getDbSchemaValidation();
57 * Get the way how the CDM schema is validated
58 * For exports values that delete the source (CREATE, CREATE_DROP) are not allowed and may throw an
59 * Exception in the further run
60 * @see eu.etaxonomy.cdm.database.DbSchemaValidation
61 * @param dbSchemaValidation
63 public void setDbSchemaValidation(DbSchemaValidation dbSchemaValidation
);
69 public void setProgressMonitor(IProgressMonitor monitor
);
75 public IProgressMonitor
getProgressMonitor();