|documentation on rule fragments [message #1727518]
||Wed, 23 March 2016 12:39
|| Lorenzo Bettini
Registered: July 2009
Location: Firenze, Italy
I started to use rule fragments which look really cool :)
However, I see no documentation, besides the but itself
Class : Documented 'class' name=ID ... ;
Method: Documented returnType=TypeRef name=ID ... ;
fragment Documented :
This will semantically like the content of Documented is included in
Class and Method (at the respective position).
In addition this has the effect on the meta model, that Class and Method
have to extend an abstract EClass called 'Documented'. If the meta model
is generated, such a super type will be generated.
Say that I don't want Class and Method to inherit from Documented in the
generated metamodel. Is the following the right solution (note the *)?
fragment Documented *:
No Documented type will be generated in the ecore model either.
I haven't seen that mentioned in the bug, but I saw that in Sebastian's
pull requests implementing rule fragments.
It looks like it gives me what I need, but I'd like to be sure that is
the intended behavior :)
thanks in advance
Prof. Lorenzo Bettini, Computer Science, DISIA, Univ. Firenze
Powered by FUDForum
. Page generated in 0.02064 seconds