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