X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=bundles%2Forg.simantics.export.core%2Fsrc%2Forg%2Fsimantics%2Fexport%2Fcore%2FExportExtensionPoint.java;fp=bundles%2Forg.simantics.export.core%2Fsrc%2Forg%2Fsimantics%2Fexport%2Fcore%2FExportExtensionPoint.java;h=960414646293f1bdde3d45beecd639d4dac8d086;hb=969bd23cab98a79ca9101af33334000879fb60c5;hp=0000000000000000000000000000000000000000;hpb=866dba5cd5a3929bbeae85991796acb212338a08;p=simantics%2Fplatform.git diff --git a/bundles/org.simantics.export.core/src/org/simantics/export/core/ExportExtensionPoint.java b/bundles/org.simantics.export.core/src/org/simantics/export/core/ExportExtensionPoint.java new file mode 100644 index 000000000..960414646 --- /dev/null +++ b/bundles/org.simantics.export.core/src/org/simantics/export/core/ExportExtensionPoint.java @@ -0,0 +1,51 @@ +package org.simantics.export.core; + +import org.simantics.export.core.intf.ContentType; +import org.simantics.export.core.intf.Discoverer; +import org.simantics.export.core.intf.Exporter; +import org.simantics.export.core.intf.Format; +import org.simantics.export.core.intf.Importer; +import org.simantics.export.core.intf.Publisher; + +/** + * Export Extension Point services + * + * @author toni.kalajainen@semantum.fi + */ +public interface ExportExtensionPoint { + + ContentType[] contentTypes(); + Discoverer[] discoverers(); + Format[] formats(); + Importer[] importers(); + Exporter[] exporters(); + Publisher[] publishers(); + + Discoverer[] getDiscoverers(String contentTypeId); + Format getFormat(String formatId); + Format getFormatByExt(String fileExt); + ContentType getContentType(String contentTypeId); + Importer getImporter(String formatId); + Exporter[] getExporters(String formatId, String contentTypeId); + Publisher getPublisher(String publisherId); + Publisher getPublisherByLabel(String publisherLabel); + int getPublisherIndex(String publisherId); + + /** + * Get exporters for a content type. The result is priority ordered list. + * + * @param contentTypeId + * @return ordered list of exporters + */ + Exporter[] getExportersForContentType(String contentTypeId); + + /** + * Get exporters for a content type. The result is priority ordered list. + * + * @param formatId + * @return ordered list of exporters + */ + Exporter[] getExportersForFormat(String formatId); + + +}