|
|
Re: [ATL] Modeling with KM3: How to model an enumeration that uses numeric values. [message #40463 is a reply to message #40401] |
Tue, 22 May 2007 14:25 |
Eclipse User |
|
|
|
Originally posted by: freddy.allilaire.univ-nantes.fr
To use numbers as values you should add ""
-------------
class SampleClass {
attribute myEnum : Enum;
}
enumeration Enum {
literal "0";
literal "1";
}
-------------
Regards,
Freddy.
Freddy Allilaire a écrit :
> Hi Erik,
>
> You should use the following syntax:
>
> enumeration MyEnum {
> literal sample1;
> literal sample2;
> }
>
> Regards,
> Freddy.
>
> Erik Becker a écrit :
>> Hi all,
>>
>> I'm trying to create a meta model with KM3 and need a enumeration that
>> uses numbers as values.
>> I tried several things but didn't find a solution.
>>
>> Any help is appreciated. :-)
>>
>> Greetings
>>
>> Erik
>
>
--
Freddy Allilaire - ATLAS Group (INRIA & LINA)
http://www.sciences.univ-nantes.fr/lina/atl/contrib/allilair e
|
|
|
Powered by
FUDForum. Page generated in 0.02845 seconds