public class AdList extends Report
Modifier and Type | Class | Description |
---|---|---|
static class |
AdList.Section |
Sub class for AdList report.
|
Constructor | Description |
---|---|
AdList(com.apptus.util.xml.XmlTree asXml,
List<AdList.Section> sections,
TimeInterval interval,
TimeZone tz) |
Creates an AdList.
|
Modifier and Type | Method | Description |
---|---|---|
void |
exportToExcel(File file) |
Writes the report to a file.
|
static AdList |
parse(com.apptus.util.xml.XmlScanner scanner,
TimeZone tz) |
Creates an AdList from an XML document.
|
List<AdList.Section> |
sections() |
exportToXml, exportToXml, isoDateTimeFormat, timeInterval
public AdList(com.apptus.util.xml.XmlTree asXml, List<AdList.Section> sections, TimeInterval interval, TimeZone tz)
asXml
- An XmlTree to be used if the Report.exportToXml(java.io.File)
method is called.sections
- A list of AdList.Section
elements. One for each ad in the
report.interval
- The time interval for the data in this report.tz
- The time zone to use when presenting this report.public static AdList parse(com.apptus.util.xml.XmlScanner scanner, TimeZone tz) throws com.apptus.util.xml.FormatException, com.apptus.util.xml.SourceException
scanner
- A scanner for the XML document to parse.tz
- The time zone to use when presenting this report.AdList
.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<AdList.Section> sections()
public void exportToExcel(File file) throws FileNotFoundException
Report
exportToExcel
in class Report
file
- The file to write the report to.FileNotFoundException
- if the file does not exists or if the file is inaccessible.Copyright © 2020 Apptus Technologies AB. All rights reserved.