final Section section) throws ReportProcessingException
{
final int count = section.getElementCount();
for (int i = 0; i < count; i++)
{
final ReportElement element = section.getElement(i);
if (element instanceof SubReport == false)
{
if (element instanceof Section)
{
processSection(schema, definition, (Section) element);
continue;
}
continue;
}
if ("toc".equals(element.getMetaData().getName()))
{
activateTableOfContents(schema, definition, element);
}
else if ("index".equals(element.getMetaData().getName()))
{
activateIndex(schema, definition, element);
}
}