]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.simantics.export.core/src/org/simantics/export/core/ExportExtensionPoint.java
Merge commit 'b3da313'
[simantics/platform.git] / bundles / org.simantics.export.core / src / org / simantics / export / core / ExportExtensionPoint.java
1 package org.simantics.export.core;\r
2 \r
3 import org.simantics.export.core.intf.ContentType;\r
4 import org.simantics.export.core.intf.Discoverer;\r
5 import org.simantics.export.core.intf.Exporter;\r
6 import org.simantics.export.core.intf.Format;\r
7 import org.simantics.export.core.intf.Importer;\r
8 import org.simantics.export.core.intf.Publisher;\r
9 \r
10 /**\r
11  * Export Extension Point services\r
12  *\r
13  * @author toni.kalajainen@semantum.fi\r
14  */\r
15 public interface ExportExtensionPoint {\r
16 \r
17         ContentType[] contentTypes();\r
18         Discoverer[] discoverers();\r
19         Format[] formats();\r
20         Importer[] importers();\r
21         Exporter[] exporters(); \r
22         Publisher[] publishers();\r
23         \r
24         Discoverer[] getDiscoverers(String contentTypeId);\r
25         Format getFormat(String formatId);\r
26         Format getFormatByExt(String fileExt);\r
27         ContentType getContentType(String contentTypeId);\r
28         Importer getImporter(String formatId);\r
29         Exporter[] getExporters(String formatId, String contentTypeId);\r
30         Publisher getPublisher(String publisherId);\r
31         Publisher getPublisherByLabel(String publisherLabel);\r
32         int getPublisherIndex(String publisherId);\r
33         \r
34         /**\r
35          * Get exporters for a content type. The result is priority ordered list.\r
36          *  \r
37          * @param contentTypeId\r
38          * @return ordered list of exporters\r
39          */\r
40         Exporter[] getExportersForContentType(String contentTypeId);\r
41         \r
42         /**\r
43          * Get exporters for a content type. The result is priority ordered list.\r
44          *  \r
45          * @param formatId\r
46          * @return ordered list of exporters\r
47          */\r
48         Exporter[] getExportersForFormat(String formatId);\r
49         \r
50         \r
51 }\r