Hi!

Talking to myself...sorry...but new problems arise...

-------- Original-Nachricht --------
> Datum: Tue, 23 Mar 2010 13:53:40 +0100
> Von: Andreas Rueckert <[email protected]>
> An: [email protected]
> Betreff: Re: [argouml-dev] Type of an operation

--<snip>--

> Just commited a setKind implementation. 
> 
> It's good enough here to set a return parameter manually.
> 
> Just added a parameter with the name 'return' and the kind 'return'.
> 
> After a diagram repaint (via show 'hidePath') the operation has
> actually a return type.
> 
> Don't know yet, if the return type is correctly set in the model,
> but I'll see, when I generate code for the testmodel.

Ok, the return type is set and it also appears correctly in the
generated code so far.

New problem:
Some code from the code generator:
========
        operation.setReturnParameters( getDataForParameters( new ArrayList( 
Model.getCoreHelper().getReturnParameters( o))));
        operation.setOperationName( Model.getFacade().getName(o));
        operation.setParameters( getDataForParameters( new ArrayList( 
Model.getFacade().getParameters( o))));
========

The core helper returns the 'return' parameter as a return parameter.

But the facade also returns the 'return' parameter as a parameter!

=========
/**
 * Method testMethod does...
 *
 * @param testParam1
 * @param return
 */
public Integer testMethod(  Integer testParam1,  Integer return) {
}
=========

So I wonder, if the facade should filter parameters with kind 'return'
from the result? The MDR facade doesn't seem to do so, but maybe
the model already does so?

Ciao,
Andreas

-- 
GMX DSL: Internet, Telefon und Entertainment für nur 19,99 EUR/mtl.!
http://portal.gmx.net/de/go/dsl02

------------------------------------------------------
http://argouml.tigris.org/ds/viewMessage.do?dsForumId=450&dsMessageId=2463812

To unsubscribe from this discussion, e-mail: 
[[email protected]].
To be allowed to post to the list contact the mailing list moderator, email: 
[[email protected]]

Reply via email to