| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.gendoc.m2t" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.gendoc.m2t" id="org.eclipse.gendoc.scriptLanguages" name="Gendoc Script Languages"/> |
| </appinfo> |
| <documentation> |
| The scriptLanguages extension point allows third-party plug-ins to define new script languages for Gendoc. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appinfo> |
| <meta.element /> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <sequence> |
| <element ref="scriptLanguage" minOccurs="0" 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> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="scriptLanguage"> |
| <annotation> |
| <documentation> |
| Describes a script language that will be processed in a Gendoc template. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="name" type="string" use="required"> |
| <annotation> |
| <documentation> |
| a unique name that will be used to identify this script language within template documents. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="processor" type="string" use="required"> |
| <annotation> |
| <documentation> |
| the fully qualified name of a class that implements <samp>org.eclipse.gendoc.m2t.IM2TProcessor</samp>. |
| to enable fragment tag the processor must implement |
| <samp>org.eclipse.gendoc.m2t.IFragmentableM2TProcessor</samp>. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn=":org.eclipse.gendoc.m2t.IM2TProcess"/> |
| </appinfo> |
| </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 scriptLanguages extension point usage: |
| <p> |
| <pre> |
| <extension |
| point="org.eclipse.gendoc.scriptLanguages"> |
| <scriptLanguage |
| name="example" |
| processor="com.example.Gendoc.ExampleM2TProcess"> |
| </scriptLanguage> |
| </extension> |
| </pre> |
| </p> |
| <p> |
| This defines script language named <samp>example</samp> that is processed by the <samp>com.example.Gendoc.ExampleM2TProcess</samp> class. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiinfo"/> |
| </appinfo> |
| <documentation> |
| Plug-ins that want to extend this extension point must provide a script processor that implements the the <samp>org.eclipse.gendoc.m2t.IM2TProcess</samp> interface. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="implementation"/> |
| </appinfo> |
| <documentation> |
| Gendoc provides and uses the <samp>acceleo</samp> script language by default. |
| </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> |