[OpenAjaxIDE] Multiple returns question when not using paramName and paramValue

Lori Hylan-Cho lorihc at aptana.com
Wed Sep 10 12:22:59 PDT 2008


Yes, my assumption was that multiple return values would be allowed for non-factory methods as well, though it's more likely that the return types would be different (e.g., "String" and "null").

From: ide-bounces at openajax.org [mailto:ide-bounces at openajax.org] On Behalf Of Jon Ferraiolo
Sent: Wednesday, September 10, 2008 2:14 PM
To: ide at openajax.org
Subject: [OpenAjaxIDE] Multiple returns question when not using paramName and paramValue


Is the following allowed:

<method name="foo"...>
...
<return* datatype="Object">
<description>Returns a JavaScript object with these properties...</description>
</return*>
<return* datatype="Object">
<description>Returns a JavaScript object with these other properties...</description>
</return*>
</method>

(where return* is a placeholder for whatever tagname we decide on)

My question is whether it is allowed to have multiple return element without using paramName and paramValue. My guess is yes, that is indeed allowed, and the IDE just needs to deal with it somehow, where one option would be to display all of the possible return types in some sort of concatenated manner (e.g., first return at top, last return at bottom).

Jon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://openajax.org/pipermail/ide/attachments/20080910/b03eb3b0/attachment.html 


More information about the IDE mailing list