| <?xml version='1.0' encoding='UTF-8'?> |
| <!-- Schema file written by PDE --> |
| <schema targetNamespace="org.eclipse.ocl"> |
| <annotation> |
| <appInfo> |
| <meta.schema plugin="org.eclipse.ocl" id="environments" name="Registered OCL Environments"/> |
| </appInfo> |
| <documentation> |
| Static registration of OCL environments in the <tt>Environment.Registry</tt>. |
| </documentation> |
| </annotation> |
| |
| <element name="extension"> |
| <complexType> |
| <sequence minOccurs="1" maxOccurs="unbounded"> |
| <element ref="environmentFactory"/> |
| </sequence> |
| <attribute name="point" type="string" use="required"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="id" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| </annotation> |
| </attribute> |
| <attribute name="name" type="string"> |
| <annotation> |
| <documentation> |
| |
| </documentation> |
| <appInfo> |
| <meta.attribute translatable="true"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="environmentFactory"> |
| <annotation> |
| <appInfo> |
| <meta.element labelAttribute="class"/> |
| </appInfo> |
| <documentation> |
| Registers an OCL <tt>EnvironmentFactory</tt> for a metamodel. The metamodel is represented by one or more <tt>EPackage</tt>s, specified as nested elements. |
| </documentation> |
| </annotation> |
| <complexType> |
| <sequence minOccurs="1" maxOccurs="unbounded"> |
| <element ref="package"/> |
| </sequence> |
| <attribute name="class" type="string" use="required"> |
| <annotation> |
| <documentation> |
| References an implementation of the <code>EnvironmentFactory</code> interface providing the OCL parsing support for the particular metamodel. |
| </documentation> |
| <appInfo> |
| <meta.attribute kind="java" basedOn="org.eclipse.uml2.ocl.EnvironmentFactory"/> |
| </appInfo> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <element name="package"> |
| <annotation> |
| <documentation> |
| Identifies a metamodel for which the associated <code>EnvironmentFactory</code> provides OCL parsing support. The metamodel is identified by its namespace URI. |
| </documentation> |
| </annotation> |
| <complexType> |
| <attribute name="nsURI" type="string" use="required"> |
| <annotation> |
| <documentation> |
| The namespace URI of the metamodel. |
| </documentation> |
| </annotation> |
| </attribute> |
| </complexType> |
| </element> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="since"/> |
| </appInfo> |
| <documentation> |
| 1.1 |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="examples"/> |
| </appInfo> |
| <documentation> |
| <p> |
| The following example, from the <tt>org.eclipse.ocl.ecore</tt> plugin, registers the Ecore |
| environment factory for the Ecore metamodel package. |
| </p> |
| <pre> |
| <extension point="org.eclipse.ocl.environments"> |
| <environmentFactory |
| class="org.eclipse.ocl.ecore.EcoreEnvironmentFactory"> |
| <package nsURI="http://www.eclipse.org/emf/2002/Ecore"/> |
| </environmentFactory> |
| </extension> |
| </pre> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="apiInfo"/> |
| </appInfo> |
| <documentation> |
| <p> |
| The value of the <tt>&lt;environmentFactory&gt;</tt> element <tt>class</tt> attribute must be the fully qualified name of a class that implements |
| the <code><a href="../javadoc/org/eclipse/ocl/EnvironmentFactory.html">EnvironmentFactory</a></code> interface. It is instantiated using the default (no-argument) constructor. |
| </p><p> |
| Environments provided on this extension point are registered implicitly in the shared instance of the |
| <code><a href="../javadoc/org/eclipse/ocl/Environment.Registry.html">Environment.Registry</a></code>. |
| </p> |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="implementation"/> |
| </appInfo> |
| <documentation> |
| The <tt>org.eclipse.ocl.ecore</tt> plugin defining the Ecore binding for OCL registers the |
| <code><a href="../javadoc/org/eclipse/ocl/ecore/EcoreEnvironmentFactory.html">EcoreEnvironmentFactory</a></code>. |
| </documentation> |
| </annotation> |
| |
| <annotation> |
| <appInfo> |
| <meta.section type="copyright"/> |
| </appInfo> |
| <documentation> |
| Copyright (c) 2007 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> |