【发布时间】:2017-05-19 10:03:54
【问题描述】:
我正在尝试使用 apache cxf 生成 List<List<Double>>。
下面的xsd生成一个List<Double>:
<xsd:complexType name="Geometry">
<xsd:sequence>
<xsd:element name="type" minOccurs="1" type="xsd:string"/>
<xsd:element name="coordinates" minOccurs="1">
<xsd:simpleType>
<xsd:list>
<xsd:simpleType>
<xsd:list itemType="xsd:double"/>
</xsd:simpleType>
</xsd:list>
</xsd:simpleType>
</xsd:element>
</xsd:sequence>
</xsd:complexType>
如果我将maxOccurs="unbounded" 添加到元素坐标,我会得到一个List<JAXBElement<List<Double>>> coordinates
如何生成List<List<Double>>?
【问题讨论】: