Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Papyrus » Setting default value of enumeration
Setting default value of enumeration [message #1181547] Mon, 11 November 2013 17:23 Go to next message
Tomas Sandkvist is currently offline Tomas SandkvistFriend
Messages: 149
Registered: October 2013
Senior Member
I don't understand what type of valueSpecification to use for an enumeration type. It appears as if I can choose any type and write any value, even such a value not being a literal of the enumeration.

The only choice I have found that allows me to actually pick one of the literals is the InstanceValue valueSpec, but am I doing this right? Or is there another way I haven't understood?

Regards,
Tomas Sandkvist
Re: Setting default value of enumeration [message #1181566 is a reply to message #1181547] Mon, 11 November 2013 17:35 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7670
Registered: July 2009
Senior Member
Hi

InstanceValue is correct.

Regards

Ed Willink

On 11/11/2013 17:23, Tomas Sandkvist wrote:
> I don't understand what type of valueSpecification to use for an
> enumeration type. It appears as if I can choose any type and write any
> value, even such a value not being a literal of the enumeration.
>
> The only choice I have found that allows me to actually pick one of
> the literals is the InstanceValue valueSpec, but am I doing this
> right? Or is there another way I haven't understood?
>
> Regards,
> Tomas Sandkvist
Previous Topic:Best route to submodels
Next Topic:Notation file blank after failed search
Goto Forum:
  


Current Time: Thu Sep 19 01:36:36 GMT 2024

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

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

Back to the top