|Drived attributes and custom bodies with EAttribute annotations with OCL [message #1698746]
||Wed, 17 June 2015 14:54
Registered: June 2015
I am trying to customize the Java API generated from an example Ecore model by using EAnnotations with OCL, but have not managed to see any changes in the generated code. |
My class includes a 'Name'-attribute and a 'DerivedName'-attribute with the following annotation:
<details key="derive" value="self.Name"/>
I have updated the GenModel to use dynamic templates, added the plugin dependencies by adding OCL_ECORE=org.eclipse.ocl.ecore to the Model Plug-in Variables, and tried setting the transient and volatile attributes.
Any pointers to the below would be appreciated?
- documentation on the various eAnnotation-source accessible features and their constraints
- example projects where the EAnnotations are used to do derived attributes and customized bodies with OCL
Powered by FUDForum
. Page generated in 0.02822 seconds