EEnumLiteral and Integer [message #754631] |
Thu, 03 November 2011 12:42  |
Eclipse User |
|
|
|
Hello,
In Ecore, EEnumLiterals have an associated numeric value.
How can this value be obtained (as Integer) in an OCL expression defined for the Ecore model which defines an EEnum ?
Regards,
Vlad
|
|
|
|
|
Re: EEnumLiteral and Integer [message #754965 is a reply to message #754960] |
Sat, 05 November 2011 17:57  |
Eclipse User |
|
|
|
Hi
Indeed you cannot define a cklass scope methosd.
Define an instnace scpe method in which the 'self' is never actually used.
Regards
Ed Willink
On 05/11/2011 21:10, Vlad Gheorghe wrote:
>
> Thank you for the response - informative, as always.
>
>
> I tried to implement the utility class, but I couldn't find a way to
> define a class-scope operation in EMF (that is, static method in
> Java). That means that I need to have an instance of the utility class
> in order to call the helper operation from OCL.
>
> Am I missing something here ?
> (I know this belongs to the EMF forum, but I feel that the solution is
> trivial...)
>
> Regards,
> Vlad Gheorghe
|
|
|
Powered by
FUDForum. Page generated in 0.05983 seconds