public class ProductSalesByAttributeReport extends Report
| Modifier and Type | Class | Description |
|---|---|---|
static class |
ProductSalesByAttributeReport.Section |
Sub class for
ProductSalesByAttributeReport Contains sales data for a group of products with a common facet value. |
| Constructor | Description |
|---|---|
ProductSalesByAttributeReport(com.apptus.util.xml.XmlTree asXml,
List<ProductSalesByAttributeReport.Section> sections,
TimeInterval interval,
TimeZone tz) |
Creates a
ProductSalesByAttributeReport. |
| Modifier and Type | Method | Description |
|---|---|---|
void |
exportToExcel(File file) |
Writes the report to a file.
|
static ProductSalesByAttributeReport |
parse(com.apptus.util.xml.XmlScanner scanner,
TimeZone tz) |
Creates a
ProductSalesByAttributeReport from an XML document. |
List<ProductSalesByAttributeReport.Section> |
sections() |
exportToXml, exportToXml, isoDateTimeFormat, timeIntervalpublic ProductSalesByAttributeReport(com.apptus.util.xml.XmlTree asXml,
List<ProductSalesByAttributeReport.Section> sections,
TimeInterval interval,
TimeZone tz)
ProductSalesByAttributeReport. Note that null is illegal for all input parameters.asXml - A XmlTree to be used if the Report.exportToXml(java.io.File) method is called.sections - A list of ProductSalesByAttributeReport.Section elements. One
for each attribute value in the report.interval - The time range for the data in this report.tz - Time zone.public static ProductSalesByAttributeReport parse(com.apptus.util.xml.XmlScanner scanner, TimeZone tz) throws com.apptus.util.xml.FormatException, com.apptus.util.xml.SourceException
ProductSalesByAttributeReport from an XML document.tz - Time zone.scanner - A scanner for the XML document to parse.ProductSalesByAttributeReport.com.apptus.util.xml.FormatException - if the XML document does not match the expected format.com.apptus.util.xml.SourceException - if the XML document contains errors like invalid XML or if the source is unreadable.public List<ProductSalesByAttributeReport.Section> sections()
public void exportToExcel(File file) throws FileNotFoundException
ReportexportToExcel in class Reportfile - The file to write the report to.FileNotFoundException - if the file does not exists or if the file is inaccessible.Copyright © 2021 Apptus Technologies AB. All rights reserved.