xtext-core/org.eclipse.xtext/schema/extension_resourceServiceProvider.exsd
2016-06-14 08:30:25 +02:00

65 lines
2.6 KiB
XML

<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.xtext" xmlns="http://www.w3.org/2001/XMLSchema">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.xtext" id="extension_resourceServiceProvider" name="URI Extension Resource Service Provider Registry"/>
</appInfo>
<documentation>
This extension point is used to define the resource factory that handles a specific file (or URI) extension. The global Xtext resource service provider registry, &lt;samp&gt;IResourceServiceProvider.Registry.INSTANCE&lt;/samp&gt;, is used to record the registration.
</documentation>
</annotation>
<element name="extension">
<complexType>
<sequence>
<element ref="resourceServiceProvider" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
A fully qualified identifier of the target extension point.
</documentation>
</annotation>
</attribute>
<attribute name="id" type="string">
<annotation>
<documentation>
An optional identifier of the extension instance.
</documentation>
</annotation>
</attribute>
<attribute name="name" type="string">
<annotation>
<documentation>
An optional name of the extension instance.
</documentation>
</annotation>
</attribute>
</complexType>
</element>
<element name="resourceServiceProvider">
<complexType>
<attribute name="uriExtension" type="string" use="required">
<annotation>
<documentation>
A file (or URI) extension (without the leading .) that identifies the filenames and URIs to be handled by a resource factory.
</documentation>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
A fully qualified name of the Java class implementing &lt;samp&gt;org.eclipse.xtext.resource.IResourceServiceProvider
&lt;/samp&gt;.
</documentation>
<appInfo>
<meta.attribute kind="java" basedOn=":org.eclipse.xtext.resource.IResourceServiceProvider"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
</schema>