commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From robert burrell donkin <robertburrelldon...@blueyonder.co.uk>
Subject Re: [betwixt] Writing Map entries issue
Date Wed, 02 Jun 2004 21:54:10 GMT
On 2 Jun 2004, at 21:35, Inger, Matthew wrote:

> Why wouldn't the element name be determined at runtime?
>
> <entry>
>    <key>6</key>
>    <value>
>      <RealElementType></RealElementType>
>    </value>
> </entry>
>
> It would make sense when generating the XML for the value
> element to pull the Element Descriptor for the actual value
> object (this all applies to the key as well).
>
> Creation on the fly:
>
> 	1. Create <value> element descriptor
>       2. Get value from the Map.Entry
>       3. Get ElementDescriptor for the value
>       4. Add that to the <value> element descriptor as a subelement

i think that this is generally how the map writing should occur. (if 
there's a matching adder then the property name is used rather than the 
bean name.) the reading should use the type of the adder.

- robert


---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message