| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.gendoc.services" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.gendoc.services" id="org.eclipse.gendoc.services" name="Gendoc Services"/> |
| </appinfo> |
| <documentation> |
| The services extension point allows third-party plug-ins to define services for Gendoc. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appinfo> |
| <meta.element /> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <choice minOccurs="0" maxOccurs="unbounded"> |
| <element ref="service"/> |
| </choice> |
| <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> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="service"> |
| <complexType> |
| <attribute name="id" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a unique id that will be used to identify this service within Gendoc templates. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="identifier"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| the fully qualified name of a class that is implements the interface specified by the serviceType. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn=":org.eclipse.gendoc.services.IService"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="default" type="boolean" use="required"> |
| <annotation> |
| <documentation> |
| Is this the default service instance for it's serviceType? One service must be declared as the default for each serviceType. |
| If there are a service with a higher priority, that service will be choosen as default instead. |
| |
| This attribute should be deprecated and use priority, with a 0 value instead, |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="serviceType" type="string" use="required"> |
| <annotation> |
| <documentation> |
| the id of a serviceType extension that this service is an instance of. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="identifier" basedOn="org.eclipse.gendoc.serviceTypes/serviceType/@id"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| <attribute name="priority" type="string"> |
| <annotation> |
| <documentation> |
| The priority of the service. The service with higher priority will be load as default service. |
| This value is a numeric value. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| 1.1.0 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| The following is an example of the serviceTypes extension point usage: |
| <p> |
| <pre> |
| <extension |
| point="org.eclipse.gendoc.services"> |
| <service |
| class="com.example.Gendoc.impl.ExampleService" |
| default="true" |
| id="DefaultExampleService" |
| serviceType="ExampleService"> |
| </service> |
| </extension> |
| </pre> |
| </p> |
| <p> |
| This defines the <samp>DefaultExampleService</samp> implemented by the <samp>com.example.Gendoc.impl.ExampleService</samp> class as the default service for the <samp>ExampleService</samp> serviceType. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiinfo"/> |
| </appinfo> |
| <documentation> |
| Plug-ins that want to extend this extension point must provide a class that implements the interface specified in the referenced serviceType extension. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="implementation"/> |
| </appinfo> |
| <documentation> |
| Gendoc provides a number of default services for each serviceType it defines. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="copyright"/> |
| </appinfo> |
| <documentation> |
| Copyright (c) 2010 Atos Origin.<br> |
| All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a> |
| </documentation> |
| </annotation> |
| |
| </schema> |