Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 355225 - Enhancement: Support co-located lists
Summary: Enhancement: Support co-located lists
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL: http://stackoverflow.com/questions/71...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-19 10:01 EDT by Blaise Doughan CLA
Modified: 2022-06-09 10:35 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Blaise Doughan CLA 2011-08-19 10:01:48 EDT
This enhancement is to support for marshalling/unmarshalling lists of attributes/text that appear co-located in the XML (see use cases below):

Use Case #1

    @XmlPath("item/@foo")
    private List<String> foo;

    @XmlPath("item/@bar")
    private List<String> bar;

    <root>
        <item foo="1" bar="a"/>
        <item foo="2" bar="b"/>
        <item foo="3" bar="c"/>
    </root>

Use Case #2

    @XmlPath("item/@foo")
    private List<String> foo;

    @XmlPath("item/text()")
    private List<String> bar;

    <root>
        <item foo="1">a</item>
        <item foo="2">b</item>
        <item foo="3">c</item>
    </root>
Comment 1 Eclipse Webmaster CLA 2022-06-09 10:35:00 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink