293 lines
9.8 KiB
XML
293 lines
9.8 KiB
XML
<?xml version='1.0' encoding='UTF-8'?>
|
|
<!-- Schema file written by PDE -->
|
|
<schema targetNamespace="org.talend.repository.items.importexport" xmlns="http://www.w3.org/2001/XMLSchema">
|
|
<annotation>
|
|
<appinfo>
|
|
<meta.schema plugin="org.talend.repository.items.importexport" id="handler" name="Import Export Handler"/>
|
|
</appinfo>
|
|
<documentation>
|
|
[Enter description of this extension point.]
|
|
</documentation>
|
|
</annotation>
|
|
|
|
<element name="extension">
|
|
<annotation>
|
|
<appinfo>
|
|
<meta.element />
|
|
</appinfo>
|
|
</annotation>
|
|
<complexType>
|
|
<sequence minOccurs="0" maxOccurs="unbounded">
|
|
<element ref="importItemsProvider" minOccurs="0" maxOccurs="unbounded"/>
|
|
<element ref="importResourcesProvider" minOccurs="0" maxOccurs="unbounded"/>
|
|
</sequence>
|
|
<attribute name="point" type="string" use="required">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="id" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="name" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
|
|
</documentation>
|
|
<appinfo>
|
|
<meta.attribute translatable="true"/>
|
|
</appinfo>
|
|
</annotation>
|
|
</attribute>
|
|
</complexType>
|
|
</element>
|
|
|
|
<element name="importItemsProvider">
|
|
<annotation>
|
|
<documentation>
|
|
If don't set the basePath parameters, can set the data after class attribute.
|
|
For example, XxxxImportHandler:TEST
|
|
</documentation>
|
|
</annotation>
|
|
<complexType>
|
|
<sequence>
|
|
<element ref="importItemsHandler"/>
|
|
</sequence>
|
|
<attribute name="id" type="string" use="required">
|
|
<annotation>
|
|
<documentation>
|
|
Unique import provider id.
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="name" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
Name of provider
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="description" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
Description for provider.
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="priority">
|
|
<annotation>
|
|
<documentation>
|
|
the higher level provider will be executed before others.
|
|
</documentation>
|
|
<appinfo>
|
|
<meta.attribute kind="identifier"/>
|
|
</appinfo>
|
|
</annotation>
|
|
<simpleType>
|
|
<restriction base="string">
|
|
<enumeration value="HIGHEST">
|
|
</enumeration>
|
|
<enumeration value="HIGH">
|
|
</enumeration>
|
|
<enumeration value="NORMAL">
|
|
</enumeration>
|
|
<enumeration value="LOW">
|
|
</enumeration>
|
|
<enumeration value="LOWEST">
|
|
</enumeration>
|
|
</restriction>
|
|
</simpleType>
|
|
</attribute>
|
|
<attribute name="override" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
The value is the id of ImportItemsProvider to be overrided.
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
</complexType>
|
|
</element>
|
|
|
|
<element name="importItemsHandler">
|
|
<annotation>
|
|
<documentation>
|
|
The class attribute must implement the interface IImportHandler and the parameter children will be a java.util.Map "data" arguments for method setInitializationData.
|
|
</documentation>
|
|
</annotation>
|
|
<complexType>
|
|
<sequence minOccurs="0" maxOccurs="unbounded">
|
|
<element ref="parameter" minOccurs="0" maxOccurs="unbounded"/>
|
|
</sequence>
|
|
<attribute name="class" type="string" use="required">
|
|
<annotation>
|
|
<documentation>
|
|
must implement the interface IImportItemsHandler
|
|
</documentation>
|
|
<appinfo>
|
|
<meta.attribute kind="java" basedOn=":org.talend.repository.items.importexport.handlers.imports.IImportItemsHandler"/>
|
|
</appinfo>
|
|
</annotation>
|
|
</attribute>
|
|
</complexType>
|
|
</element>
|
|
|
|
<element name="importResourcesProvider">
|
|
<complexType>
|
|
<sequence>
|
|
<element ref="importResoucesHandler"/>
|
|
</sequence>
|
|
<attribute name="id" type="string" use="required">
|
|
<annotation>
|
|
<documentation>
|
|
Unique import provider id.
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="name" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
Name of provider
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="description" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
Description for provider.
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="priority">
|
|
<annotation>
|
|
<documentation>
|
|
the higher level provider will be executed before others.
|
|
</documentation>
|
|
<appinfo>
|
|
<meta.attribute kind="identifier"/>
|
|
</appinfo>
|
|
</annotation>
|
|
<simpleType>
|
|
<restriction base="string">
|
|
<enumeration value="HIGHEST">
|
|
</enumeration>
|
|
<enumeration value="HIGH">
|
|
</enumeration>
|
|
<enumeration value="NORMAL">
|
|
</enumeration>
|
|
<enumeration value="LOW">
|
|
</enumeration>
|
|
<enumeration value="LOWEST">
|
|
</enumeration>
|
|
</restriction>
|
|
</simpleType>
|
|
</attribute>
|
|
<attribute name="override" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
The value is the id of ImportResourcesProvider to be overrided.
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
</complexType>
|
|
</element>
|
|
|
|
<element name="importResoucesHandler">
|
|
<complexType>
|
|
<sequence minOccurs="0" maxOccurs="unbounded">
|
|
<element ref="parameter" minOccurs="0" maxOccurs="unbounded"/>
|
|
</sequence>
|
|
<attribute name="class" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
Need implement two methods preImport and postImport
|
|
</documentation>
|
|
<appinfo>
|
|
<meta.attribute kind="java" basedOn=":org.talend.repository.items.importexport.handlers.imports.IImportResourcesHandler"/>
|
|
</appinfo>
|
|
</annotation>
|
|
</attribute>
|
|
</complexType>
|
|
</element>
|
|
|
|
<element name="parameter">
|
|
<annotation>
|
|
<documentation>
|
|
should be a map for handler
|
|
</documentation>
|
|
</annotation>
|
|
<complexType>
|
|
<attribute name="name" type="string" use="required">
|
|
<annotation>
|
|
<documentation>
|
|
The name must be unique, because this is key of java.util.Map for the handler.
|
|
|
|
- if the name is "path", the value should be a relative path for resources. for example, XML File metadata is "metadata/fileXml". @see ImportBasicHandler
|
|
|
|
- if the name is "type", the value should be the "Type" of extension "org.talend.core.repository.repository_node_provider" or "ERepositoryObjectType". @see ImportRepTypeHandler
|
|
|
|
- if the name is others, need do it by yourself in the method setInitializationData of handler.
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="value" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
the value can be multi, and split by comma ",".
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
<attribute name="comment" type="string">
|
|
<annotation>
|
|
<documentation>
|
|
juse for some comments
|
|
</documentation>
|
|
</annotation>
|
|
</attribute>
|
|
</complexType>
|
|
</element>
|
|
|
|
<annotation>
|
|
<appinfo>
|
|
<meta.section type="since"/>
|
|
</appinfo>
|
|
<documentation>
|
|
[Enter the first release in which this extension point appears.]
|
|
</documentation>
|
|
</annotation>
|
|
|
|
<annotation>
|
|
<appinfo>
|
|
<meta.section type="examples"/>
|
|
</appinfo>
|
|
<documentation>
|
|
[Enter extension point usage example here.]
|
|
</documentation>
|
|
</annotation>
|
|
|
|
<annotation>
|
|
<appinfo>
|
|
<meta.section type="apiinfo"/>
|
|
</appinfo>
|
|
<documentation>
|
|
[Enter API information here.]
|
|
</documentation>
|
|
</annotation>
|
|
|
|
<annotation>
|
|
<appinfo>
|
|
<meta.section type="implementation"/>
|
|
</appinfo>
|
|
<documentation>
|
|
[Enter information about supplied implementation of this extension point.]
|
|
</documentation>
|
|
</annotation>
|
|
|
|
|
|
</schema>
|