2 * Copyright (C) 2008 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
7 package eu
.etaxonomy
.cdm
.io
.common
;
11 import eu
.etaxonomy
.cdm
.api
.application
.CdmApplicationController
;
12 import eu
.etaxonomy
.cdm
.common
.monitor
.IProgressMonitor
;
13 import eu
.etaxonomy
.cdm
.database
.DbSchemaValidation
;
14 import eu
.etaxonomy
.cdm
.io
.common
.events
.IIoObserver
;
18 * @author a.babadshanjan
21 public interface IIoConfigurator
extends IIoObservable
{
24 * A String representation of the used source may it be a source to be imported (e.g. "BerlinModel Cichorieae Database")
25 * or a source to be exported (e.g. "CDM Cichorieae Database")
26 * @return String representing the source for the io
28 public String
getSourceNameString();
32 * A String representation of the destination may it be an import destination and therefore a CDM (e.g. CDM Cichorieae Database)
33 * or an export destination (e.g. CDM XML)
36 public String
getDestinationNameString();
40 * Returns the CdmApplicationController
43 public CdmApplicationController
getCdmAppController();
47 * Sets the CdmApplicationController
48 * @param cdmApp the cdmApp to set
50 public void setCdmAppController(CdmApplicationController cdmApp
);
53 * Get the way how the CDM schema is validated
54 * @see eu.etaxonomy.cdm.database.DbSchemaValidation
57 public DbSchemaValidation
getDbSchemaValidation();
60 * Get the way how the CDM schema is validated
61 * For exports values that delete the source (CREATE, CREATE_DROP) are not allowed and may throw an
62 * Exception in the further run
63 * @see eu.etaxonomy.cdm.database.DbSchemaValidation
64 * @param dbSchemaValidation
66 public void setDbSchemaValidation(DbSchemaValidation dbSchemaValidation
);
70 * Returns the progress monitor.
73 public IProgressMonitor
getProgressMonitor();
76 * Sets the progress monitor.
77 * @see #getProgressMonitor()
80 public void setProgressMonitor(IProgressMonitor monitor
);
83 * Returns the observers for this import/export
86 public Set
<IIoObserver
> getObservers();
89 * Sets the observers for this import/export
92 public void setObservers(Set
<IIoObserver
> observers
);