1 package org.simantics.export.core.intf;
\r
3 import org.simantics.export.core.error.ExportException;
\r
6 * Exporter exports content for one specific format.
\r
8 * @author toni.kalajainen@semantum.fi
\r
10 public interface Exporter {
\r
13 * Identifier for the file format, eg. "pdf", "tg", "csv".
\r
19 * The identifier to the content type, that this definition can export.
\r
22 String contentTypeId();
\r
25 * Code that exports the content into format specific writer.
\r
27 * @throws ExportException
\r
29 ExportClass exportAction() throws ExportException;
\r
32 * Priority of this exporter in comparison to other exporters for the
\r
33 * content. The smaller the number the higher the priority.
\r
37 int getExportPriority();
\r