Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » setting MultiplicityElement upper-value to infinite
setting MultiplicityElement upper-value to infinite [message #478584] Fri, 03 July 2009 17:46 Go to next message
No real name is currently offline No real nameFriend
Messages: 61
Registered: July 2009
Member
Hi,

how do I set the upper-value of a MultiplicityElement to infinite
(programmaticly)?

thank you
Re: setting MultiplicityElement upper-value to infinite [message #478585 is a reply to message #478584] Fri, 03 July 2009 20:21 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1618
Registered: July 2009
Senior Member
Usul,

Use LiteralUnlimitedNatural.UNLIMITED like this:

multiplicityElement.setUpper(LiteralUnlimitedNatural.UNLIMIT ED);

Kenn

Usul wrote:
> Hi,
>
> how do I set the upper-value of a MultiplicityElement to infinite
> (programmaticly)?
>
> thank you
>
Re: setting MultiplicityElement upper-value to infinite [message #627766 is a reply to message #478584] Fri, 03 July 2009 20:21 Go to previous message
Kenn Hussey is currently offline Kenn HusseyFriend
Messages: 1618
Registered: July 2009
Senior Member
Usul,

Use LiteralUnlimitedNatural.UNLIMITED like this:

multiplicityElement.setUpper(LiteralUnlimitedNatural.UNLIMIT ED);

Kenn

Usul wrote:
> Hi,
>
> how do I set the upper-value of a MultiplicityElement to infinite
> (programmaticly)?
>
> thank you
>
Previous Topic:setting MultiplicityElement upper-value to infinite
Next Topic:No notification from classifier when package changes
Goto Forum:
  


Current Time: Sun Nov 23 20:04:04 GMT 2014

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

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