blob: 652263f32f19282aac2279be4bd5569c9f85377f [file] [log] [blame]
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.jwt.transformations" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appinfo>
<meta.schema plugin="org.eclipse.jwt.transformations" id="transformations" name="Transformations with JWT"/>
</appinfo>
<documentation>
This is the extension point that developers shall use to add a new JWT transformation.
&lt;p&gt;Please note that &lt;code&gt;org.eclipse.jwt.transformations.api.TransformationService&lt;/code&gt; is &lt;em&gt;deprecated&lt;/em&gt; as of JWT 1.3, and may be removed in a (distant) future release. Developers should extend &lt;code&gt;org.eclipse.jwt.transformations.api.AbstractTransformation&lt;/code&gt; instead, and properly define inputs and outputs (see &lt;code&gt;org.eclipse.jwt.transformations.iodefinitions&lt;/code&gt; extension point).
</documentation>
</annotation>
<include schemaLocation="iodefinitions.exsd"/>
<element name="extension">
<annotation>
<appinfo>
<meta.element />
</appinfo>
</annotation>
<complexType>
<sequence>
<element ref="transformation" minOccurs="1" 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="transformation">
<complexType>
<sequence minOccurs="0" maxOccurs="1">
<element ref="inputs"/>
<element ref="outputs"/>
</sequence>
<attribute name="name" type="string" use="required">
<annotation>
<documentation>
A short, human-readable name identifying this transformation.
</documentation>
<appinfo>
<meta.attribute translatable="true"/>
</appinfo>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
</documentation>
<appinfo>
<meta.attribute kind="java" basedOn="org.eclipse.jwt.transformations.api.AbstractTransformation:org.eclipse.jwt.transformations.api.Transformation"/>
</appinfo>
</annotation>
</attribute>
<attribute name="description" type="string">
<annotation>
<documentation>
A short paragraph describing the purpose of this transformation.
</documentation>
</annotation>
</attribute>
<attribute name="type">
<annotation>
<documentation>
&quot;import&quot; or &quot;export&quot;, depending on the category this transformation should be made available under.
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="import">
</enumeration>
<enumeration value="export">
</enumeration>
</restriction>
</simpleType>
</attribute>
</complexType>
</element>
<element name="inputs">
<annotation>
<documentation>
This element registers compatible input definitions. It is optional if the implementing class extends TransformationService (deprecated) or if it overrides &lt;code&gt;getCompatibleInputDefinitions&lt;/code&gt;.
</documentation>
</annotation>
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="iodefinition"/>
<element ref="ioreference"/>
</choice>
</complexType>
</element>
<element name="outputs">
<annotation>
<documentation>
This element registers compatible output definitions. It is optional if the implementing class extends TransformationService (deprecated) or if it overrides &lt;code&gt;getCompatibleOutputDefinitions&lt;/code&gt;.
</documentation>
</annotation>
<complexType>
<choice minOccurs="1" maxOccurs="unbounded">
<element ref="iodefinition"/>
<element ref="ioreference"/>
</choice>
</complexType>
</element>
<annotation>
<appinfo>
<meta.section type="since"/>
</appinfo>
<documentation>
0.6.0
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="examples"/>
</appinfo>
<documentation>
See &lt;code&gt;org.eclipse.jwt.transformations.xpdl&lt;/code&gt; plugin for legacy transformations support example.
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="apiInfo"/>
</appinfo>
<documentation>
See interface &lt;code&gt;org.eclipse.jwt.transformations.api.Transformation&lt;/code&gt;.
&lt;p&gt;For API compatibility purpose, the class &lt;code&gt;org.eclipse.jwt.transformations.api.TransformationService&lt;/code&gt; is still supported: when defining a transformation extending &lt;code&gt;TransformationService&lt;/code&gt;, missing input or output definition defaults to one providing a &lt;code&gt;String&lt;/code&gt; to the transformation, with controls similar to what was provided before JWT 1.3.
&lt;p&gt;Please note, though, that &lt;code&gt;org.eclipse.jwt.transformations.api.TransformationService&lt;/code&gt; is &lt;em&gt;deprecated&lt;/em&gt; as of JWT 1.3, and may be removed in a (distant) future release. Developers should extend &lt;code&gt;org.eclipse.jwt.transformations.api.AbstractTransformation&lt;/code&gt; instead, and properly define inputs and outputs (see &lt;code&gt;org.eclipse.jwt.transformations.iodefinitions&lt;/code&gt; extension point).
</documentation>
</annotation>
<annotation>
<appinfo>
<meta.section type="copyright"/>
</appinfo>
<documentation>
Copyright (c) 2008-2009 Open Wide (www.openwide.fr)
</documentation>
</annotation>
</schema>