Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMT (Generative Modeling Technologies) » [Epsilon] [Eugenia] EnumType Attributes
[Epsilon] [Eugenia] EnumType Attributes [message #384898] Fri, 22 August 2008 11:34 Go to next message
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 #385197 is a reply to message #384898] Wed, 27 August 2008 06:25 Go to previous messageGo to next message
Louis Rose is currently offline Louis Rose
Messages: 439
Registered: July 2009
Location: York, United Kingdom
Senior Member
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 #385198 is a reply to message #385197] Wed, 27 August 2008 06:26 Go to previous message
Louis Rose is currently offline Louis Rose
Messages: 439
Registered: July 2009
Location: York, United Kingdom
Senior Member
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 Go to previous message
Louis Rose is currently offline Louis Rose
Messages: 439
Registered: July 2009
Location: York, United Kingdom
Senior Member
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 Go to previous message
Louis Rose is currently offline Louis Rose
Messages: 439
Registered: July 2009
Location: York, United Kingdom
Senior Member
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.
Previous Topic:Eclipse (Graphical) Modeling Framework Training
Next Topic:[Eugenie].emf file association gone weird
Goto Forum:
  


Current Time: Fri Aug 01 20:32:26 EDT 2014

Powered by FUDForum. Page generated in 0.02213 seconds