[jira] Created: (XDP-220) Allow for typed arrays using optional ArrayElementType metadata tag

"Arron Hocking (JIRA)" <jira-yCVjj/[email protected]> Thu, 21 Jun 2007 10:44:57 -0500 (CDT)
Newsgroups gmane.comp.java.xdoclet-plugins
Message-ID <5592470.1182440697063.JavaMail.haus-jira@codehaus01.managed.contegix.com>
Allow for typed arrays using optional ArrayElementType metadata tag
-------------------------------------------------------------------

                 Key: XDP-220
                 URL: http://jira.codehaus.org/browse/XDP-220
             Project: XDoclet 2 Plugins
          Issue Type: Improvement
          Components: actionscript
    Affects Versions: 1.0.4
            Reporter: Arron Hocking
            Priority: Minor
             Fix For: 1.0.4
         Attachments: plugin-actionscript-ArrayElementType-patch.txt

Actionscript allows the use of the [ArrayElementType("...")] metadata tag to specify the type of objects contained in an array.  This is useful when dealing with web service serialization/deserialization of RPC methods that return typed arrays.  Often, on deserializtion, the array just contains Object elements on the actionscript side, where the java side may have a typed array (i.e. SomeClass[]);

For instance:
Java:
public SomeClass[] getSomeClasses() { return .... }

Actionscript
[ArrayElementType("org.whatever.SomeClass")]
public var someClasses:Array;

This tells the serializer/deserializer which type of object to instantiate for the array elements.

I've submitted a patch that adds an xdoclet actionscript parameter "typed-array" that is an optional boolean property to specify that the source generation should add the ArrayElementType metadata tag to a given member field.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/