writer.writeTag(BundleNamespaces.DATADEFINITION, "parameter-mapping", XmlWriterSupport.OPEN);// NON-NLS
final SubReport subReport = (SubReport) report;
final ParameterMapping[] inputMappings = subReport.getInputMappings();
for (int i = 0; i < inputMappings.length; i++)
{
final ParameterMapping mapping = inputMappings[i];
final AttributeList attList = new AttributeList();
attList.setAttribute(BundleNamespaces.DATADEFINITION, "name", mapping.getName());// NON-NLS
attList.setAttribute(BundleNamespaces.DATADEFINITION, "alias", mapping.getAlias());// NON-NLS
writer.writeTag(BundleNamespaces.DATADEFINITION, "input-parameter", attList, XmlWriterSupport.CLOSE);// NON-NLS
}
final ParameterMapping[] exportMappings = subReport.getExportMappings();
for (int i = 0; i < exportMappings.length; i++)
{
final ParameterMapping mapping = exportMappings[i];
final AttributeList attList = new AttributeList();
attList.setAttribute(BundleNamespaces.DATADEFINITION, "name", mapping.getName());// NON-NLS
attList.setAttribute(BundleNamespaces.DATADEFINITION, "alias", mapping.getAlias());// NON-NLS
writer.writeTag(BundleNamespaces.DATADEFINITION, "export-parameter", attList, XmlWriterSupport.CLOSE);// NON-NLS
}
writer.writeCloseTag();
return;
}