to wrap some generated classes, I use the classImpl binding, but the collections in the generated classes return the generated type instead of the type in classImpl, and I want, of course, a list of classImpl ...
my xsd:
<complexType name="A">
<xs:sequence>
<element name="listB" type="sbs:B" minOccurs="0" maxOccurs="unbounded"></element>
<element name="singleB" type="sbs:B" minOccurs="1" maxOccurs="1"></element>
</xs:sequence>
</complexType>
<complexType name="B">
<xs:annotation><xs:appinfo>
<jxb:class implClass="BWrapper" />
</xs:appinfo></xs:annotation>
</complexType>
generated classes:
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "A", propOrder = {
"listB",
"singleB"
})
public class A {
@XmlElement(type = BWrapper.class)
protected List<B> listB;
@XmlElement(required = true, type = BWrapper.class)
protected BWrapper singleB;
as expected, singleB is typed by BWrapper, so why is listB a list of B instead of a list of BWrapper ???
in advance for your help!
source
share