|Re: EMF iterate through an Enumeration's fields [message #32886 is a reply to message #32721]
||Thu, 06 September 2007 13:06
| Tex Twil
Registered: July 2009
but I want to list all the EEnum. Not only one reference to one of these
Enumeration. The EEnum is directly on the "root" of my model. Something
<c:iterate select="/@MyColors" var="aColor">
<c:get select="$aColor" />
But anyway, I think this joins the problem that Stu and I are talking about
in the other message "[JET2] Struggling with iterate command" and also the "
EMF Iterate through an String array" :) I think those topics are similar.
"Paul Elder" <firstname.lastname@example.org> a écrit dans le message de
> In an ecore model Enumerations are declared as EAttributes, so, you would
> do $parentVar/@enumAttrName. It should return you the symbolic value of
> the enumeration. There isn't a way to get at the numeric value without
> dropping into Java code, or writing a custom XPath function.
> "Tex Twil" <email@example.com> wrote in message
>> It's been a while since my last post and now I got back to using JET and
>> I already have a question.
>> I use JET for a EMF model transformation and I'd like to know how can I
>> get all the "fields" of a Enumaration which I have in my ecore.
>> Kind regards,
Powered by FUDForum
. Page generated in 0.02067 seconds