[Epsilon] [Eugenia] EnumType Attributes [message #384898] |
Fri, 22 August 2008 11:34  |
Eclipse User |
|
|
|
Originally posted by: sami.yenice.forte.com.tr
How can we declare enum type attributes.
For example;
@gmf.node(label="type")
abstract class NamedElement {
attr String type;
}
type : type1, type2, type3
|
|
|
|
Re: [Epsilon] [Eugenia] EnumType Attributes [message #385198 is a reply to message #385197] |
Wed, 27 August 2008 06:26  |
Eclipse User |
|
|
|
Louis Rose wrote:
> Sami wrote:
>> How can we declare enum type attributes.
>> For example;
>>
>> @gmf.node(label="type")
>> abstract class NamedElement {
>> attr String type;
>> }
>>
>> type : type1, type2, type3
>
>
> Hi Sami,
>
> Apologies for the late reply; Dimitrios is on vacation, and I've been
> unwell this week.
>
> To specify an enumeration type, use the following Emfatic syntax:
>
> gmf.node(label="type")
> abstract class File {
> attr YourEnumType type;
> }
>
> enum YourEnumType {
> type1 = 0;
> type2 = 1;
> type2 = 2;
> }
>
> Full reference documentation for Emfatic can be found at:
> http://www.alphaworks.ibm.com/tech/emfatic/download
>
> Many thanks,
> Louis.
Slight typo above, of course the annotation should begin with an @, like
this:
@gmf.node(label="type")
abstract class File {
attr YourEnumType type;
}
Many thanks,
Louis.
|
|
|
Re: [Epsilon] [Eugenia] EnumType Attributes [message #620436 is a reply to message #384898] |
Wed, 27 August 2008 06:25  |
Eclipse User |
|
|
|
Sami wrote:
> How can we declare enum type attributes.
> For example;
>
> @gmf.node(label="type")
> abstract class NamedElement {
> attr String type;
> }
>
> type : type1, type2, type3
Hi Sami,
Apologies for the late reply; Dimitrios is on vacation, and I've been
unwell this week.
To specify an enumeration type, use the following Emfatic syntax:
gmf.node(label="type")
abstract class File {
attr YourEnumType type;
}
enum YourEnumType {
type1 = 0;
type2 = 1;
type2 = 2;
}
Full reference documentation for Emfatic can be found at:
http://www.alphaworks.ibm.com/tech/emfatic/download
Many thanks,
Louis.
|
|
|
Re: [Epsilon] [Eugenia] EnumType Attributes [message #620437 is a reply to message #385197] |
Wed, 27 August 2008 06:26  |
Eclipse User |
|
|
|
Louis Rose wrote:
> Sami wrote:
>> How can we declare enum type attributes.
>> For example;
>>
>> @gmf.node(label="type")
>> abstract class NamedElement {
>> attr String type;
>> }
>>
>> type : type1, type2, type3
>
>
> Hi Sami,
>
> Apologies for the late reply; Dimitrios is on vacation, and I've been
> unwell this week.
>
> To specify an enumeration type, use the following Emfatic syntax:
>
> gmf.node(label="type")
> abstract class File {
> attr YourEnumType type;
> }
>
> enum YourEnumType {
> type1 = 0;
> type2 = 1;
> type2 = 2;
> }
>
> Full reference documentation for Emfatic can be found at:
> http://www.alphaworks.ibm.com/tech/emfatic/download
>
> Many thanks,
> Louis.
Slight typo above, of course the annotation should begin with an @, like
this:
@gmf.node(label="type")
abstract class File {
attr YourEnumType type;
}
Many thanks,
Louis.
|
|
|
Powered by
FUDForum. Page generated in 0.03747 seconds