如何使用xsd将java.awt.image.BufferedImage作为参数创建Java模型

时间:2018-04-25 10:37:38

标签: java maven-jaxb2-plugin

我想创建一个包含java.awt.image.BufferedImage类型属性的模型,我尝试创建它但收到错误如下

src-resolve: Cannot resolve the name 'java.awt.image.BufferedImage' to a(n) 'type definition' component.

我的XSD代码:=

<xsd:complexType name="MyFrame">
    <xsd:sequence>
        <xsd:element name="frameNo" type="xsd:int" minOccurs="1" />
        <xsd:element name="frame" type="xsd:base64Binary" minOccurs="1" />
        <xsd:element name="bufferedImage" type="java.awt.image.BufferedImage" minOccurs="1" /> //here is the error
    </xsd:sequence>
</xsd:complexType>

0 个答案:

没有答案