Community
Participate
Working Groups
The current support of black-box libraries is tricky to setup, contains weird Metainfo class keeping type resolution info for operations. This is a legacy feature from the inital contribution, kept as the only mechanism to plugin in external java coded libraries. Provide pure (annotated) Java approach, to allow writing a java impl right away. IOW, deduce the OCL types from java binary types in operation signatures. 1) Use MDT defined OCL binary mapping of OCL collection types to Java collections, derive the OCL element type from the actual types of generics. 2) Make use of OCL defined Primitive types mapping to java binary types 3) The OCL type for user model elements can be derived by searching the 'instanceClass' attribute of EClassifiers in the referenced metamodel package, declared in the library extention point. The approach above supports the most common usecases. Eventually, for complementary info like param names, doc etc., java annotations can be used.
Committed.
Test: /org.eclipse.m2m.tests.qvt.oml/parserTestData/models/blackboxlib_annotation_java