bindings.xjb 1.22 KB
<jxb:bindings version="1.0" xmlns:jxb="http://java.sun.com/xml/ns/jaxb" xmlns:xs="http://www.w3.org/2001/XMLSchema"
              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
              xsi:schemaLocation="http://java.sun.com/xml/ns/jaxb http://java.sun.com/xml/ns/jaxb/bindingschema_2_0.xsd">


    <jxb:bindings schemaLocation="../xsd/issuesByProject.xsd" node="/xs:schema">
        <jxb:bindings node=".//xs:element[@name='issues']//xs:sequence[@id='issues']">
            <jxb:property name="issues"/>
        </jxb:bindings>
    </jxb:bindings>

    <jxb:bindings schemaLocation="../xsd/types.xsd" node="/xs:schema">

        <jxb:globalBindings localScoping="nested"/>

        <jxb:bindings node=".//xs:complexType[@name='fieldType']">
            <jxb:bindings node="./xs:sequence[@id='value']">
                <jxb:property name="values"/>
            </jxb:bindings>
            <jxb:class name="Field"/>
        </jxb:bindings>

        <jxb:bindings node=".//xs:complexType[@name='issueType']">
            <jxb:class name="Issue"/>
        </jxb:bindings>

        <jxb:bindings node=".//xs:complexType[@name='commentType']">
            <jxb:class name="Comment"/>
        </jxb:bindings>

    </jxb:bindings>

</jxb:bindings>