1 <?xml version='1.0' encoding='UTF-8'?>
2 <!-- Schema file written by PDE -->
3 <schema targetNamespace="org.simantics.export" xmlns="http://www.w3.org/2001/XMLSchema">
6 <meta.schema plugin="org.simantics.export" id="org.simantics.export.export" name="Export"/>
9 Extension point for exportable content.
13 <element name="extension">
21 <element ref="content_type" minOccurs="0" maxOccurs="unbounded"/>
22 <element ref="importer" minOccurs="0" maxOccurs="unbounded"/>
23 <element ref="exporter" minOccurs="0" maxOccurs="unbounded"/>
24 <element ref="discoverer" minOccurs="0" maxOccurs="unbounded"/>
25 <element ref="format" minOccurs="0" maxOccurs="unbounded"/>
26 <element ref="publisher" minOccurs="0" maxOccurs="unbounded"/>
28 <attribute name="point" type="string" use="required">
35 <attribute name="id" type="string">
42 <attribute name="name" type="string">
48 <meta.attribute translatable="true"/>
55 <element name="content_type">
57 <attribute name="id" type="string" use="required">
60 The identifier for the content type. Used in, for example, in preference mementos.
64 <attribute name="label" type="string" use="required">
67 The ui label for the content type.
71 <attribute name="iconResolver" type="string">
74 Use icon attribute for defining a constant image. If the icon must depend on something programmatic use this attribute to define a class for resolving one.
77 <meta.attribute kind="java" basedOn=":org.simantics.export.core.intf.IconResolver"/>
81 <attribute name="icon" type="string">
87 <meta.attribute kind="resource"/>
91 <attribute name="plural" type="string" use="required">
98 <attribute name="model" type="boolean" use="required">
101 If true, the content type is model type.
105 <attribute name="contentTypeAction" type="string">
108 Contains content type related actions.
111 <meta.attribute kind="java" basedOn=":org.simantics.export.core.intf.ContentTypeAction"/>
118 <element name="exporter">
121 Describes one way how a content_type can be written.
125 <attribute name="content_type_id" type="string" use="required">
128 The identifier to the content type, that this definition can export.
132 <attribute name="formatId" type="string" use="required">
135 Identifier for the format: "PDF", "TG", "CSV".
139 <attribute name="exportAction" type="string" use="required">
142 Code that exports the content into format specific writer.
145 <meta.attribute kind="java" basedOn=":org.simantics.export.core.intf.ExportClass"/>
149 <attribute name="exportPriority" type="string" use="required">
152 Priority of this exporter in comparison to other exporters for the content. The smaller the number the higher the priority.
159 <element name="format">
161 <attribute name="id" type="string" use="required">
164 Defines the identifier for a format_type.
168 <attribute name="fileext" type="string">
171 Defines the file extension for the format.
175 <attribute name="formatClass" type="string" use="required">
178 Format class contains format related code and an action factory for file format actions.
181 <meta.attribute kind="java" basedOn=":org.simantics.export.core.intf.FormatClass"/>
185 <attribute name="writerClass" type="string">
188 Defines the writer class that the exporter extension will use for writing the content of this format.
191 <meta.attribute kind="java"/>
195 <attribute name="readerClass" type="string">
198 The class the importer will use for reading the associated content type of this format.
201 <meta.attribute kind="java"/>
205 <attribute name="label" type="string" use="required">
212 <attribute name="plural" type="string" use="required">
219 <attribute name="icon" type="string">
225 <meta.attribute kind="resource"/>
229 <attribute name="isGroupFormat" type="boolean" use="required">
232 Set to true, if the format can contain multiple content items of one or more types.
236 <attribute name="isContainerFormat" type="boolean" use="required">
239 Set to true, if the format can contain multiple content items of any types.
243 <attribute name="mergeGroupDefault" type="boolean" use="required">
246 The default selection for merge the group.
250 <attribute name="isAttachable" type="string" use="required">
253 This attribute determines if the format is attachable to another format of group type.
257 <attribute name="isAlwaysPublished" type="boolean" use="required">
260 This property determines - if true - that the content must always be published and cannot be hidden inside container file.
264 <attribute name="isLinkContainer" type="boolean" use="required">
267 If true, this format is can contain links to other files.
274 <element name="importer">
277 Extension that imports content from files.
281 <attribute name="content_type_id" type="string" use="required">
288 <attribute name="formatId" type="string" use="required">
295 <attribute name="importAction" type="string" use="required">
298 Code that imports the content using format_type specific reader.
301 <meta.attribute kind="java" basedOn=":org.simantics.export.core.intf.ImportAction"/>
308 <element name="discoverer">
311 Extension that will discover content from selection, project, and database.
315 <attribute name="content_type_id" type="string" use="required">
322 <attribute name="discoverAction" type="string" use="required">
325 Code that discovers content.
328 <meta.attribute kind="java" basedOn=":org.simantics.export.core.intf.DiscoverAction"/>
335 <element name="publisher">
338 Extension for publishing exported content in an external location.
342 <attribute name="id" type="string" use="required">
349 <attribute name="label" type="string" use="required">
356 <attribute name="publisherClass" type="string" use="required">
359 Action code for publishing data.
362 <meta.attribute kind="java" basedOn=":org.simantics.export.core.intf.PublisherClass"/>
371 <meta.section type="since"/>
374 [Enter the first release in which this extension point appears.]
380 <meta.section type="examples"/>
383 [Enter extension point usage example here.]
389 <meta.section type="apiinfo"/>
392 [Enter API information here.]
398 <meta.section type="implementation"/>
401 [Enter information about supplied implementation of this extension point.]