Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
<?xml version="1.0" encoding="UTF-8" ?>

<!DOCTYPE mapping PUBLIC "-//EXOLAB/Castor Mapping DTD Version 1.0//EN"
                         "http://castor.org/mapping.dtd">

<!-- /////////////////////////////////////////////////////////// -->
<!-- // Project SIX: core                                     // -->
<!-- //                                                       // -->
<!-- // Castor XML Mapping Specification                      // -->
<!-- /////////////////////////////////////////////////////////// -->

<!-- @author    Akihito Nakamura, AIST -->
<!-- @version   $Id: castor-xml_oval-six-core.xml 3051 2013-02-22 07:44:28Z nakamura5akihito@gmail.com $ -->

<mapping>

    <class name="jp.go.aist.six.util.query.QueryResults">
        <map-to xml="query_results"
            ns-uri="http://aist.go.jp/six/oval/"/>
        <field name="timestamp" type="date">
            <bind-xml name="timestamp" node="element"/>
        </field>
        <field name="totalResults" type="long">
            <bind-xml name="totalResults" node="element"
                xmlns="http://a9.com/-/spec/opensearch/1.1/"/>
        </field>
        <field name="startIndex" type="long">
            <bind-xml name="startIndex" node="element"
                xmlns="http://a9.com/-/spec/opensearch/1.1/"/>
        </field>
        <field name="itemsPerPage" type="long">
            <bind-xml name="itemsPerPage" node="element"
                xmlns="http://a9.com/-/spec/opensearch/1.1/"/>
        </field>
        <field name="resultsElements" 
            type="jp.go.aist.six.util.query.QueryResultsElements"
            container="false">
            <bind-xml name="result_elements" node="element"/>
        </field>
    </class>

    <class name="jp.go.aist.six.util.query.QueryResultsElements">
        <map-to xml="result_elements"
            />
        <field name="elements" 
            type="jp.go.aist.six.oval.model.OvalObject"
            collection="collection">
            <bind-xml auto-naming="deriveByClass" node="element"/>
        </field>
    </class>


<!--
    <class name="jp.go.aist.six.oval.core.web.AtomLink">
        <map-to xml="link"
            ns-uri="http://www.w3.org/2005/Atom"
            ns-prefix="atom"/>
        <field name="href" type="string">
            <bind-xml name="href" node="attribute"/>
        </field>
        <field name="rel" type="string">
            <bind-xml name="rel" node="attribute"/>
        </field>
        <field name="type" type="string">
            <bind-xml name="type" node="attribute"/>
        </field>
        <field name="title" type="string">
            <bind-xml name="title" node="attribute"/>
        </field>
    </class>
-->

</mapping>

New to GrepCode? Check out our FAQ X