Drived attributes and custom bodies with EAttribute annotations with OCL [message #1698746] |
Wed, 17 June 2015 10:54  |
Eclipse User |
|
|
|
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:
<eAnnotations source="http://www.eclipse.org/2007/OCL">
<details key="derive" value="self.Name"/>
</eAnnotations>
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.26437 seconds