<!ELEMENT extension ((unit | library)+)>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED
>Extension point to register QVT black-box unit of Java implementations
<!ATTLIST unit
name CDATA #REQUIRED
namespace CDATA #IMPLIED
description CDATA #IMPLIED
>
A deployment unit that can define mutliple libraries or transformations, a conceptual analogy to compilation unit
defined in QVT specification.
<!ELEMENT library (metamodel*)>
<!ATTLIST library
name CDATA #IMPLIED
class CDATA #REQUIRED
>
A library module which defines its operations in the associated implementation class and is defined in a deployment unit.
In order to facilitate the common case of a single library per unit, a simplified definition is supported to help in reducing verbosity. In this case no explicit owning unit needs to be defined and the library element can be defined as standalone.
Corresponding implicit unit is synthesized based on the implementation class and inherits its qualified name.
<!ELEMENT metamodel EMPTY>
<!ATTLIST metamodel
nsURI CDATA #REQUIRED
>Specifies a metamodel used by a declared library, being a part of that library signature.
The following examples registers the ExampleJavaLib
black-box unit, which is resolvable as
m2m.qvt.oml.ExampleJavaLib
from importing QVT modules.
It defines the QVT library resolveable by name UtilLib
, implemented in the
org.eclipse.m2m.qvt.oml.examples.blackbox.UtilitiesLibrary
class.
The library operation reference types defined in the Ecore
metamodel.
<extension point="org.eclipse.m2m.qvt.oml.javaBlackboxUnits"> <unit name="ExampleJavaLib" namespace="m2m.qvt.oml"> <library name="UtilLib" class="org.eclipse.m2m.qvt.oml.examples.blackbox.UtilitiesLibrary"> <metamodel nsURI="http://www.eclipse.org/emf/2002/Ecore"/> </library> </unit> </extension>
Copyright (c) 2008 Borland Software Corporation 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 http://www.eclipse.org/legal/epl-v20.html