Community
Participate
Working Groups
XmlList model support was added in bug 326718. 1 validation error that we need is that the attribute must map to a simple type. Examples from the JAXB spec: // Examples: Legal usage of @XmlList @XmlList List<Integer> foo; // int maps to xs:int @XmlList String[] foo; // String maps to xs:string @XmlList List<Bar> foo; // only if Bar maps to a simple type // Example: Illegal usage of @XmlList public class Foo { // @XmlValue maps List to a XML Schema list simple type @XmlValue List<Integer> a; } class Bar { // Use of @XmlList is illegal since Foo itself mapped // to a XML Schema list simple type; XML Schema list simple // type can't derive from another XML Schema list simple type @XmlList List<Foo> y; }
Added for 3.1 M3.