users@jaxb.java.net

Binding Language equivalent of _at_XmlElementWrapper

From: Mark Hansen <mark_at_javector.com>
Date: Wed, 18 Jan 2006 15:32:40 -0500

Is there a binding language construct for getting to the
@XmlElementWrapper annotation? The idea would be to "unwrap" an XML
schema wrapper element like this ...

<element name="items">
  <complexType>
    <sequence>
      <element name="item" type="ItemType" maxOccurs="unbounded"/>
    </sequence>
  </complexType>
</element>

to map to this ....

  @XmlElementWrapper(name="items")
  List<ItemType> item;


instead of this .....

  Items items;

  public class Items {

     List<ItemType> item;

  }