Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » GMT (Generative Modeling Technologies) » [Epsilon] [Eugenia] EnumType Attributes
[Epsilon] [Eugenia] EnumType Attributes [message #384898] Fri, 22 August 2008 15:34 Go to next message
Eclipse UserFriend
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 10:25 Go to previous messageGo to next message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
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 10:26 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
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 10:25 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
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 10:26 Go to previous message
Louis Rose is currently offline Louis RoseFriend
Messages: 440
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 Apr 19 05:54:12 GMT 2024

Powered by FUDForum. Page generated in 0.02192 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top