|Distinguishing "logical" Ecore elements from additional "technical" ones [message #1766675]
||Sun, 25 June 2017 10:45
| Daniel Strueber
Registered: April 2014
In my use-case, I need to I compute a complete list of all elements in a given model, where this model can potentially be a meta-model.|
As an example, consider a simple Ecore meta-model with 1 EPackage, 3 EClasses and 2 EReferences. Clearly, I would expect this list to have 1+3+2=6 elements.
However, it turns out the actual number is 8: Upon loading, for each of the two EReferences, an elements of the type "EGenericTypeImpl" is created (and the property "eClassifier" of each EReference is set to to one these elements).
I assume these additional elements serve some meaningful technical purpose. Still, they are not only irrelevant for my use-case, but actually detrimental: in the list that I want to compute, it is important to have a list of the "logical" elements, i.e., those shown to the user in the graphical and tree-based Ecore editors.
So, it need a way of distinguishing
* "logical" elements from "technical" ones,
* "logical" properties of elements from "technical" ones.
Is there a natural way of doing this?
[Updated on: Sun, 25 June 2017 10:48]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01938 seconds