parametersReadHandler = new SubReportParametersReadHandler();
return parametersReadHandler;
}
if ("reportConfiguration".equals(tagName))
{
return new IgnoreAnyChildReadHandler();
}
if ("padding".equals(tagName))
{
return new IgnoreAnyChildReadHandler();
}
if ("horizontalLinealModel".equals(tagName))
{
horizontalLinealReadHandler = new LinealModelReadHandler();
return horizontalLinealReadHandler;
}
if ("pageDefinition".equals(tagName))
{
return new IgnoreAnyChildReadHandler();
}
if ("child".equals(tagName))
{
final String type = atts.getValue(uri, "type");
if ("org.pentaho.reportdesigner.crm.report.model.dataset.DataSetsReportElement".equals(type))
{
dataSetReadHandler = new DataSetsReadHandler();
return dataSetReadHandler;
}
if ("org.pentaho.reportdesigner.crm.report.model.ReportFunctionsElement".equals(type))
{
return new ReportFunctionsReadHandler();
}
if ("org.pentaho.reportdesigner.crm.report.model.BandToplevelPageReportElement".equals(type) ||
"org.pentaho.reportdesigner.crm.report.model.BandToplevelReportElement".equals(type) ||
"org.pentaho.reportdesigner.crm.report.model.BandToplevelItemReportElement".equals(type))
{
final String bandtype = atts.getValue(uri, "bandToplevelType");
if ("PAGE_HEADER".equals(bandtype))
{
pageHeaderHandler = new BandTopLevelElementReadHandler(new PageHeader(), bandtype);
return pageHeaderHandler;
}
if ("PAGE_FOOTER".equals(bandtype))
{
pageFooterHandler = new BandTopLevelElementReadHandler(new PageFooter(), bandtype);
return pageFooterHandler;
}
if ("WATERMARK".equals(bandtype))
{
watermarkHandler = new BandTopLevelElementReadHandler(new Watermark(), bandtype);
return watermarkHandler;
}
if ("NO_DATA_BAND".equals(bandtype))
{
noDataBandHandler = new BandTopLevelElementReadHandler(new NoDataBand(), bandtype);
return noDataBandHandler;
}
if ("ITEM_BAND".equals(bandtype))
{
itemBandHandler = new BandTopLevelElementReadHandler(new ItemBand(), bandtype);
return itemBandHandler;
}
if ("REPORT_FOOTER".equals(bandtype))
{
reportFooterHandler = new BandTopLevelElementReadHandler(new ReportFooter(), bandtype);
return reportFooterHandler;
}
if ("REPORT_HEADER".equals(bandtype))
{
reportHeaderHandler = new BandTopLevelElementReadHandler(new ReportHeader(), bandtype);
return reportHeaderHandler;
}
}
if ("org.pentaho.reportdesigner.crm.report.model.ReportGroups".equals(type))
{
return new ReportGroupsReadHandler();
}
else if ("org.pentaho.reportdesigner.crm.report.model.SubReportDataElement".equals(type))
{
return new IgnoreAnyChildReadHandler();
}
}
return super.getHandlerForChild(uri, tagName, atts);
}