Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsMethod parameters contain return type
https://www.eclipse.org/forums/index.php/mv/msg/151849/478027/#msg_478027
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 ^ ^]]>Alexander Weickmann2008-11-26T10:02:00-00:00Re: Method parameters contain return type
https://www.eclipse.org/forums/index.php/mv/msg/151849/627246/#msg_627246
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 ^ ^
>]]>2008-11-26T14:13:36-00:00Re: Method parameters contain return type
https://www.eclipse.org/forums/index.php/mv/msg/151849/478029/#msg_478029
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 ^ ^
>]]>2008-11-26T14:13:36-00:00