[JET] Switching on eClass() [message #100774] |
Tue, 06 November 2007 06:35 |
|
I am trying to use EMF JET to traverse an EMF model. I am able to access the
members of the model, but I need the equivalent of the EMF Switch utility
class to distinguish instances of subclasses. I would like to use the
built-in XPath functions, if possible.
Concrete case: I have a Script metaclass, which has an eReference to a Steps
Metaclass, that are of different subtypes. I have to produce different
output for each case. How can I write this in EMF JET?
What is the test predicate of the conditional?
<c:when test="value">
content to process if tag condition is satisfied
</c:when>
|
|
|
Re: [JET] Switching on eClass() [message #100826 is a reply to message #100774] |
Tue, 06 November 2007 12:27 |
Eclipse User |
|
|
|
Originally posted by: merks.ca.ibm.com
Jörn,
I'll redirect your JET question to the M2T newsgroup which I've added to
the "to" list of the reply.
Jörn Guy Süß wrote:
> I am trying to use EMF JET to traverse an EMF model. I am able to access the
> members of the model, but I need the equivalent of the EMF Switch utility
> class to distinguish instances of subclasses. I would like to use the
> built-in XPath functions, if possible.
>
> Concrete case: I have a Script metaclass, which has an eReference to a Steps
> Metaclass, that are of different subtypes. I have to produce different
> output for each case. How can I write this in EMF JET?
>
> What is the test predicate of the conditional?
>
> <c:when test="value">
> content to process if tag condition is satisfied
> </c:when>
>
>
>
|
|
|
|
|
Re: [JET] Switching on eClass() [message #610238 is a reply to message #100774] |
Tue, 06 November 2007 12:27 |
Ed Merks Messages: 33231 Registered: July 2009 |
Senior Member |
|
|
Jörn,
I'll redirect your JET question to the M2T newsgroup which I've added to
the "to" list of the reply.
Jörn Guy Süß wrote:
> I am trying to use EMF JET to traverse an EMF model. I am able to access the
> members of the model, but I need the equivalent of the EMF Switch utility
> class to distinguish instances of subclasses. I would like to use the
> built-in XPath functions, if possible.
>
> Concrete case: I have a Script metaclass, which has an eReference to a Steps
> Metaclass, that are of different subtypes. I have to produce different
> output for each case. How can I write this in EMF JET?
>
> What is the test predicate of the conditional?
>
> <c:when test="value">
> content to process if tag condition is satisfied
> </c:when>
>
>
>
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04633 seconds