EMF iterate through an Enumeration's fields [message #32408] |
Wed, 05 September 2007 06:06  |
Eclipse User |
|
|
|
Hi,
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.
Thanks
Kind regards,
Tex
|
|
|
|
Re: EMF iterate through an Enumeration's fields [message #32886 is a reply to message #32721] |
Thu, 06 September 2007 09:06  |
Eclipse User |
|
|
|
Ok
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
like:
<c:iterate select="/@MyColors" var="aColor">
<c:get select="$aColor" />
</c:iterate>
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.
Tex
"Paul Elder" <pelder@ca.ibm.com> a écrit dans le message de
news:fbor9j$et7$1@build.eclipse.org...
> Tex:
>
> 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.
>
> Paul
>
> "Tex Twil" <chaljan@hotmail.com> wrote in message
> news:fblv2k$q7n$1@build.eclipse.org...
>> Hi,
>> 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.
>>
>> Thanks
>> Kind regards,
>> Tex
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.40066 seconds