Skip to main content



      Home
Home » Modeling » UML2 » Method parameters contain return type
Method parameters contain return type [message #478027] Wed, 26 November 2008 05:02 Go to next message
Eclipse UserFriend
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 09: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 09: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 Jul 23 03:47:24 EDT 2025

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

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

Back to the top