public class ProductSalesByTimeReport extends Report
Timeline's:
| Constructor | Description |
|---|---|
ProductSalesByTimeReport(com.apptus.util.xml.XmlTree asXml,
TimeInterval interval,
Timeline<Double> discount,
Timeline<Integer> purchasedUnits,
Timeline<Integer> abandonedUnits,
Timeline<Double> revenue,
Timeline<Double> margin,
TimelineType<?> timelineType,
TimeZone tz) |
Creates a
ProductSalesByTimeReport. |
| Modifier and Type | Method | Description |
|---|---|---|
Timeline<Integer> |
abandonedUnits() |
|
Timeline<Double> |
discount() |
|
void |
exportToExcel(File file) |
Writes the report to a file.
|
Timeline<Double> |
margin() |
|
static ProductSalesByTimeReport |
parse(com.apptus.util.xml.XmlScanner scanner,
TimeZone tz) |
Creates a
ProductSalesByTimeReport from an XML document. |
Timeline<Integer> |
purchasedUnits() |
|
Timeline<Double> |
revenue() |
|
TimelineType<?> |
timelineType() |
exportToXml, exportToXml, isoDateTimeFormat, timeIntervalpublic ProductSalesByTimeReport(com.apptus.util.xml.XmlTree asXml,
TimeInterval interval,
Timeline<Double> discount,
Timeline<Integer> purchasedUnits,
Timeline<Integer> abandonedUnits,
Timeline<Double> revenue,
Timeline<Double> margin,
TimelineType<?> timelineType,
TimeZone tz)
ProductSalesByTimeReport. 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.interval - The time range for the data in this report.discount - A Timeline of discount values.purchasedUnits - A Timeline containing the number of purchased units.abandonedUnits - A Timeline containing the number of abandoned units.revenue - A Timeline of revenue values.margin - A Timeline of margin values.timelineType - The timeline type used for this report.tz - Time zone.public static ProductSalesByTimeReport parse(com.apptus.util.xml.XmlScanner scanner, TimeZone tz) throws com.apptus.util.xml.FormatException, com.apptus.util.xml.SourceException
ProductSalesByTimeReport from an XML document.scanner - A scanner for the XML document to parse.tz - Time zone.ProductSalesByTimeReport.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 Timeline<Integer> purchasedUnits()
Timeline of purchased units values.public Timeline<Integer> abandonedUnits()
Timeline of abandoned units values.public TimelineType<?> timelineType()
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.