public class AvailabilityReport extends Object
Modifier and Type | Field and Description |
---|---|
static String[] |
months
String of Months
|
Constructor and Description |
---|
AvailabilityReport(String author,
String startMonth,
String startDate,
String startYear)
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
generatePDF(String xsltFileName,
OutputStream out,
String format)
Generate PDF from castor classes.
|
static void |
generateReport(String logourl,
String categoryName,
String format,
String monthFormat,
String startMonth,
String startDate,
String startYear)
generateReport
|
void |
getReportData(String logourl,
String categoryName,
String reportFormat,
String monthFormat,
String startMonth,
String startDate,
String startYear)
This when invoked generates the data into report castor classes.
|
static void |
main(String[] args)
Main method
|
void |
marshalReport()
This when invoked marshals the report XML from the castor classes.
|
void |
populateReport(String logourl,
String categoryName,
String reportFormat,
String monthFormat,
String startMonth,
String startDate,
String startYear)
This when invoked populates the castor classes.
|
public static String[] months
public void getReportData(String logourl, String categoryName, String reportFormat, String monthFormat, String startMonth, String startDate, String startYear)
logourl
- location of the logo to be displayed on the reportcategoryName
- of the logo to be displayed on the reportreportFormat
- Report Format ("SVG" / all)monthFormat
- Format for month data ("classic"/"calendar")startMonth
- a String
object.startDate
- a String
object.startYear
- a String
object.public void populateReport(String logourl, String categoryName, String reportFormat, String monthFormat, String startMonth, String startDate, String startYear)
logourl
- location of the logo to be displayed on the reportcategoryName
- of the logo to be displayed on the reportreportFormat
- Report Format ("SVG" / all)monthFormat
- Format for month data ("classic"/"calendar")startMonth
- a String
object.startDate
- a String
object.startYear
- a String
object.public void marshalReport() throws org.exolab.castor.xml.ValidationException, org.exolab.castor.xml.MarshalException, IOException, Exception
org.exolab.castor.xml.ValidationException
- if any.org.exolab.castor.xml.MarshalException
- if any.IOException
- if any.Exception
- if any.public void generatePDF(String xsltFileName, OutputStream out, String format) throws Exception
xsltFileName
- a String
object.out
- a OutputStream
object.format
- a String
object.Exception
- if any.public static void main(String[] args)
args
- an array of String
objects.Copyright © 2017. All rights reserved.