1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169
|
<?xml version='1.0' encoding='UTF-8'?>
<!-- Schema file written by PDE -->
<schema targetNamespace="org.eclipse.emf.codegen.ecore">
<annotation>
<appInfo>
<meta.schema plugin="org.eclipse.emf.codegen.ecore" id="generatorAdapters" name="Generator Adapters"/>
</appInfo>
<documentation>
This extension point provides support for EMF's extensible code generator. It is used to define a set of generator adapters to be used in generating code for particular model elements. Typically, an adapter factory will be registered to provide these adapters for Ecore or Java objects from a given package. For convenience, an adapter can be registered directly for a given class from a given package, as well.
</documentation>
</annotation>
<element name="extension">
<complexType>
<sequence>
<choice>
<element ref="adapterFactory" minOccurs="1" maxOccurs="unbounded"/>
<element ref="adapter" minOccurs="1" maxOccurs="unbounded"/>
</choice>
</sequence>
<attribute name="point" type="string" use="required">
<annotation>
<documentation>
The 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="adapterFactory">
<annotation>
<appInfo>
<meta.element labelAttribute="modelPackage"/>
</appInfo>
<documentation>
An adapter factory represents a mapping from a package to a generator adapter factory. The adapter factory will be instantiated and used to provide adapters that can generate code (and other artifacts) relating to model elements from the package.
</documentation>
</annotation>
<complexType>
<attribute name="modelPackage" type="string" use="default" value="http://www.eclipse.org/emf/2002/GenModel">
<annotation>
<documentation>
A namespace URI identifying an Ecore package or a fully qualified Java package name. By default, this refers to the GenModel package.
</documentation>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
The generator adapter factory to contribute. This class must implement <code>org.eclipse.emf.codegen.generator.GeneratorAdapterFactory</code> and have a no-argument constructor.
</documentation>
<appInfo>
<meta.attribute kind="java" basedOn=":org.eclipse.emf.codegen.generator.GeneratorAdapterFactory"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<element name="adapter">
<annotation>
<appInfo>
<meta.element labelAttribute="modelClass"/>
</appInfo>
<documentation>
An adapter represents a mapping from an Ecore or Java package and class to a generator adapter. An instance of the adapter will be created and used to generate code (and other artifacts) relating to model elements of that class.
</documentation>
</annotation>
<complexType>
<attribute name="modelPackage" type="string" use="default" value="http://www.eclipse.org/emf/2002/GenModel">
<annotation>
<documentation>
A namespace URI identifying an Ecore package or a fully qualified Java package name. By default, this refers to the GenModel package.
</documentation>
</annotation>
</attribute>
<attribute name="modelClass" type="string" use="required">
<annotation>
<documentation>
The unqalified name of an Ecore or Java class within the package.
</documentation>
</annotation>
</attribute>
<attribute name="class" type="string" use="required">
<annotation>
<documentation>
The generator adapter to contribute. This class must implement <code>org.eclipse.emf.codegen.generator.GeneratorAdapter</code> and have a no-argument constructor.
</documentation>
<appInfo>
<meta.attribute kind="java" basedOn="org.eclipse.emf.codegen.generator.GeneratorAdapter"/>
</appInfo>
</annotation>
</attribute>
</complexType>
</element>
<annotation>
<appInfo>
<meta.section type="since"/>
</appInfo>
<documentation>
2.2.0
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="examples"/>
</appInfo>
<documentation>
<pre>
<extension point="org.eclipse.emf.codegen.ecore.generatorAdapters">
<adapterFactory class="com.example.emf.codegen.ecore.generator.ExampleGeneratorAdapterFactory"/>
<adapter
modelPackage="http://www.eclipse.org/emf/2002/Ecore" modelClass="EAnnotation"
class="com.example.emf.codegen.ecore.generator.adapter.EAnnotationGeneratorAdapter"/>
</extension>
</pre>
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="apiInfo"/>
</appInfo>
<documentation>
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="implementation"/>
</appInfo>
<documentation>
This plug-in provides its own implementation of this extension point, specifying the default generator adapter factory for EMF code generation.
</documentation>
</annotation>
<annotation>
<appInfo>
<meta.section type="copyright"/>
</appInfo>
<documentation>
Copyright (c) 2006 IBM Corporation and others.<br>
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v2.0 which accompanies this distribution, and is available at <a
href="http://www.eclipse.org/legal/epl-v20.html">http://www.eclipse.org/legal/epl-v20.html</a>
</documentation>
</annotation>
</schema>
|