Issue Details (XML | Word | Printable)

Key: XSTR-468
Type: Improvement Improvement
Status: Closed Closed
Resolution: Duplicate
Priority: Major Major
Assignee: Unassigned
Reporter: Paul J. Lucas
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
XStream

Aliasing explicit list type

Created: 21/Jan/08 12:53 PM   Updated: 22/Jan/08 12:43 AM
Component/s: Annotations, Converters
Affects Version/s: 1.2.2
Fix Version/s: None

Issue Links:
Duplicate
 

JDK version and platform: Mac OS X 1.5.0_13


 Description  « Hide
Given:

class C { List<String> list; }

when serializing, one gets:

<C>
<list>
<string>foo</string>
<string>bar</string>
</list>
</C>

One can use an implicit collection to alias the item type, but there is no way to keep the collection explicit yet still alias the item type, i.e.:

<C>
<list>
<name>foo</name>
<name>bar</name>
</list>
</C>

There should be a way to do this (both via code an an annotation).



 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Joerg Schaible added a comment - 22/Jan/08 12:43 AM
Closed as duplicate, see linked issue.