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