1

私の xsd ファイルの一部は次のようになります。

<xs:complexType name="group">
    <xs:sequence maxOccurs="unbounded" minOccurs="1">
        <xs:element name="title" type="xs:string"/>
        <xs:element name="description" type="xs:string"/>
        <xs:element name="module" type="module" nillable="true" maxOccurs="unbounded"/>
    </xs:sequence>

    <xs:attribute name="name" type="xs:string" />
</xs:complexType>

Eclipse で Jaxb を使用してクラスを生成するとき。「Group」クラスは、次のメソッドを生成します。

public List<JAXBElement<?>> getTitleAndDescriptionAndModule();

各要素のゲッターを取得するように xsd を変更するにはどうすればよいですか?

4

0 に答える 0