}
private void writeParameterDeclaration()
throws IOException
{
final SubReport report = (SubReport) getReport();
final ParameterMapping[] exportMappings = report.getExportMappings();
for (int i = 0; i < exportMappings.length; i++)
{
final ParameterMapping mapping = exportMappings[i];
final AttributeList attList = new AttributeList();
attList.setAttribute(ExtParserModule.NAMESPACE, "name", mapping.getName());
if (mapping.getAlias().equals(mapping.getName()) == false)
{
attList.setAttribute(ExtParserModule.NAMESPACE, "alias", mapping.getAlias());
}
getXmlWriter().writeTag(ExtParserModule.NAMESPACE,
"export-parameter", attList, XmlWriterSupport.CLOSE);
}
final ParameterMapping[] importMappings = report.getInputMappings();
for (int i = 0; i < importMappings.length; i++)
{
final ParameterMapping mapping = importMappings[i];
final AttributeList attList = new AttributeList();
attList.setAttribute(ExtParserModule.NAMESPACE, "name", mapping.getName());