import org.apache.log4j.Logger;\r
\r
import eu.etaxonomy.cdm.database.ICdmDataSource;\r
-import eu.etaxonomy.cdm.io.common.ExportConfiguratorBase;\r
+import eu.etaxonomy.cdm.io.common.ExportStateBase;\r
import eu.etaxonomy.cdm.io.common.IExportConfigurator;\r
-import eu.etaxonomy.cdm.io.sdd.SDDCdmExporter;\r
+import eu.etaxonomy.cdm.io.common.XmlExportConfiguratorBase;\r
\r
/**\r
* @author h.fradin (from a.babadshanjan JaxbExportConfigurator)\r
* @created 09.12.2008\r
* @version 1.0\r
*/\r
-public class SDDExportConfigurator extends ExportConfiguratorBase implements IExportConfigurator {\r
+public class SDDExportConfigurator extends XmlExportConfiguratorBase implements IExportConfigurator {\r
\r
@SuppressWarnings("unused")\r
private static final Logger logger = Logger.getLogger(SDDExportConfigurator.class);\r
\r
\r
public static SDDExportConfigurator NewInstance(ICdmDataSource source, String url, String destinationFolder) {\r
- return new SDDExportConfigurator(source, url);\r
+ return new SDDExportConfigurator(source, destinationFolder + File.separator + url);\r
}\r
\r
\r
* @param destination\r
*/\r
private SDDExportConfigurator(ICdmDataSource source, String url) {\r
- super();\r
- setDestination(url);\r
- setSource(source);\r
+ super(new File(url), source);\r
+// setDestination(url);\r
+// setSource(source);\r
}\r
\r
\r
* @see eu.etaxonomy.cdm.io.common.ImportConfiguratorBase#getSource()\r
*/\r
public File getDestination() {\r
- return (File)super.getDestination();\r
+ File file = super.getDestination();\r
+ return file;\r
+// return super.getDestination();\r
}\r
\r
\r
/**\r
* @param file\r
*/\r
- public void setDestination(String fileName) {\r
+ public void setDestination(File fileName) {\r
super.setDestination(fileName);\r
}\r
\r
return this.getDestination().toString();\r
}\r
}\r
+\r
+\r
+ /* (non-Javadoc)\r
+ * @see eu.etaxonomy.cdm.io.common.IExportConfigurator#getNewState()\r
+ */\r
+ public ExportStateBase getNewState() {\r
+ return new SDDExportState(this);\r
+ }\r
\r
\r
}\r