| [news.eclipse.modeling.gmt] Re: [Epsilon] [Eugenia] EnumType Attributes |
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,
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;
}Many thanks, Louis.