Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Method parameters contain return type
Method parameters contain return type [message #478027] Wed, 26 November 2008 10:02 Go to next message
Alexander Weickmann is currently offline Alexander WeickmannFriend
Messages: 33
Registered: July 2009
Member
Hi

Is there a bug in the method Operation.getOwnedParameters() ?
This method returns an EList with all the parameters but in this list is
also the return type of the operation included with name set to null ...
this thing really made me crazy quite a lot ^ ^
Re: Method parameters contain return type [message #478029 is a reply to message #478027] Wed, 26 November 2008 14:13 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Alex,

UML models the operation return result as a "parameter" of
direction-kind "return." You will have to skip ower it when iterating
the owned parameters list. The getReturnResult() method gives you the
return parameter for that purpose, if the operation has one.

HTH,

Christian

Alex wrote:
> Hi
>
> Is there a bug in the method Operation.getOwnedParameters() ?
> This method returns an EList with all the parameters but in this list is
> also the return type of the operation included with name set to null ...
> this thing really made me crazy quite a lot ^ ^
>
Re: Method parameters contain return type [message #627246 is a reply to message #478027] Wed, 26 November 2008 14:13 Go to previous message
Eclipse UserFriend
Originally posted by: cdamus.zeligsoft.com

Hi, Alex,

UML models the operation return result as a "parameter" of
direction-kind "return." You will have to skip ower it when iterating
the owned parameters list. The getReturnResult() method gives you the
return parameter for that purpose, if the operation has one.

HTH,

Christian

Alex wrote:
> Hi
>
> Is there a bug in the method Operation.getOwnedParameters() ?
> This method returns an EList with all the parameters but in this list is
> also the return type of the operation included with name set to null ...
> this thing really made me crazy quite a lot ^ ^
>
Previous Topic:Re: Getting the source code for eclipse uml2
Next Topic:[Announce] MDT UML2 3.0.0 I200811260933 is available
Goto Forum:
  


Current Time: Wed Apr 01 18:22:06 GMT 2020

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

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

Back to the top