Primitive Types Library
Identifier:
com.yakindu.bridges.ea.uml.primitiveTypesLibrary
Since:
1.0.0
Description:
The Enterprise Architect has built-in primitive datatypes for a set of languages including Java, C, C++, C#, Delphi, PHP, VBNet, and Visual Basic.
The YAKINDU EA-Bridge already ships Eclipse UML libraries for all of them.
In case custom primitive datatypes are added to the EA, this extension point can be used to register a corresponding library.
Configuration Markup:
<!ELEMENT extension (primitivetypelib)+>
<!ATTLIST extension
point CDATA #REQUIRED
id CDATA #IMPLIED
name CDATA #IMPLIED>
<!ELEMENT primitivetypelib EMPTY>
<!ATTLIST primitivetypelib
primitivetype_lib_name CDATA #REQUIRED
primitivetype_lib_uri CDATA #REQUIRED
primitivetype_lib_default (true | false) >
- primitivetype_lib_name - The language name as specified in EA.
Examples for build-in languages are:
'C', 'C++', 'C#', 'Delphi', 'Java', etc.
- primitivetype_lib_uri - The URI which points to the type library.
- primitivetype_lib_default - A UML library may be used for multiple EA languages.
This works fine when loading EA models but implies a conflict when writing into EA: which EA primitive type library name should be used? When this attribute is set to true, that language is used.
So this attribute is only needed if multiple EA languages are registered for the same URI.
And for all registered URIs, all but one of them must specify this attribute to be false.
Examples:
The following is an example of the extension point:
<extension point="com.yakindu.bridges.ea.uml.primitiveTypesLibrary">
<primitivetypelib
primitivetype_lib_name="MyTypes"
primitivetype_lib_uri="platform:/plugin/com.examples.types/libs/MyTypes.library.uml">
</primitivetypelib>
</extension>
Please note that the name must match the name of the code engineering language in the EA model.
The URI format may either be a pathmap or a platform URI as shown above.