| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.ocl.modelregistry" xmlns="http://www.w3.org/2001/XMLSchema"> |
| <annotation> |
| <appinfo> |
| <meta.schema plugin="org.eclipse.ocl.modelregistry" id="namespace" name="%ExtPoint.namespace"/> |
| </appinfo> |
| <documentation> |
| The Model Registry supports accessing content by access keys with an appropriate value. |
| <p> |
| The <tt>namespace</tt> extension point supports declaration of these keys. |
| Default keys support access through informal ModelNames or through |
| URIs. |
| <p> |
| The <tt>org.eclipse.ocl.registry.editor</tt> plug-in provides a Property Page |
| that may be activated on a per-project, folder or file basis for projects |
| to which the ModelRegistryNature has been added. The Property Page supports |
| definition of model references by particular values of accessors. |
| <p> |
| Thus a folder registration of the ModelName <tt>ecore</tt> could be bound to |
| <tt>platform:/plugin/org.eclipse.emf.ecore/model/Ecore.ecore</tt> so that the |
| registration applied to all files in that folder and its sub-folders. |
| <p> |
| Alternatively, a project-wide registration of the URI |
| <tt>http://www.w3.org/XML/1998/namespace</tt> could be bound to |
| <tt>platform:/resource/MyProject/mynamespace.ecore</tt> to experiment |
| with an alternate definition of a standard model. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <annotation> |
| <appinfo> |
| <meta.element /> |
| </appinfo> |
| </annotation> |
| <complexType> |
| <sequence minOccurs="0" maxOccurs="unbounded"> |
| <element ref="accessor"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The standard extension point type name. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| The optional extension point identifier. |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| The optional extension point name. |
| </documentation> |
| <appinfo> |
| <meta.attribute translatable="true"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="accessor"> |
| <annotation> |
| <documentation> |
| Definition of an access key by which models are located on the model registry. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| Class implementing Accessor that realises an access key for a model registration. |
| </documentation> |
| <appinfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.ocl.registry.model.Accessor$Installer:"/> |
| </appinfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="since"/> |
| </appinfo> |
| <documentation> |
| ? a candidate for Eclipse EMF 2.4.0. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="examples"/> |
| </appinfo> |
| <documentation> |
| The Model Name and URI registrations are: |
| <pre> |
| <extension point="org.eclipse.ocl.registry.namespace"> |
| <accessor class="org.eclipse.ocl.registry.model.ModelNameAccessor"/> |
| <accessor class="org.eclipse.ocl.registry.model.URIAccessor"/> |
| </extension> |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="apiInfo"/> |
| </appinfo> |
| <documentation> |
| Registered accessor kinds must implement the Accessor interface. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="implementation"/> |
| </appinfo> |
| <documentation> |
| Accessor kinds for an informal ModelName and a URI are provided. |
| <br> |
| The ModelResolver interface and more particularly the ModelResourceResolver |
| class support identification of the Resource associated by an accessor. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appinfo> |
| <meta.section type="copyright"/> |
| </appinfo> |
| <documentation> |
| Copyright (c) 2007 Willink Transformations and others.<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> |