## Licensed to the Apache Software Foundation (ASF) under one
## or more contributor license agreements.  See the NOTICE file
## distributed with this work for additional information
## regarding copyright ownership.  The ASF licenses this file
## to you under the Apache License, Version 2.0 (the
## "License"); you may not use this file except in compliance
## with the License.  You may obtain a copy of the License at
##
##   http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing,
## software distributed under the License is distributed on an
## "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
## KIND, either express or implied.  See the License for the
## specific language governing permissions and limitations
## under the License.
<document>
  <properties>
    <title>$name</title>
  </properties>

  <body>

    <section name="$name">

      <table class="summarytable">
        <tr class="summaryhead">
          <th class="summaryheadbackground summaryborder summaryheadtablename">Table Name</th>
          <th class="summaryheadbackground summaryborder summaryheadjavaname">OM Class</th>
          <th class="summaryheadbackground summaryborder summaryheaddescription">Description</th>
        </tr>
  #set ($tableElements = $torqueGen.getChildren("table"))
  #foreach ($tableElement in $tableElements)
    #set ( $tableName = $tableElement.getAttribute("name") )
    #set ( $tableJavaName = $tableElement.getAttribute("javaName") )
    #set ( $tableDescription = $tableElement.getAttribute("description") )
        <tr class="summaryrow">
          <td class="summarybackground summaryborder summarytablename"><a href="#$tableName" class="link summarytablenamelink">$tableName</a></td>
          <td class="summarybackground summaryborder summaryjavaname">$tableJavaName</td>
          <td class="summarybackground summaryborder summarydescription">#if ($tableDescription) $tableDescription#else &nbsp;#end</td>
        </tr>
  #end
      </table>

$torqueGen.mergepoint("tableDocs")
    </section>
  </body>
</document>
