Class AvailabilityReport


  • public class AvailabilityReport
    extends Object
    AvailabilityReport generates the Availability report in PDF format
    Author:
    Jacinta Remedios
    • Field Detail

      • months

        public static String[] months
        String of Months
    • Constructor Detail

      • AvailabilityReport

        public AvailabilityReport​(String author,
                                  String startMonth,
                                  String startDate,
                                  String startYear)
        Default constructor
        Parameters:
        author - a String object.
        startMonth - a String object.
        startDate - a String object.
        startYear - a String object.
    • Method Detail

      • getReportData

        public void getReportData​(String logourl,
                                  String categoryName,
                                  String reportFormat,
                                  String monthFormat,
                                  String startMonth,
                                  String startDate,
                                  String startYear)
        This when invoked generates the data into report classes.
        Parameters:
        logourl - location of the logo to be displayed on the report
        categoryName - of the logo to be displayed on the report
        reportFormat - Report Format ("SVG" / all)
        monthFormat - Format for month data ("classic"/"calendar")
        startMonth - a String object.
        startDate - a String object.
        startYear - a String object.
      • populateReport

        public void populateReport​(String logourl,
                                   String categoryName,
                                   String reportFormat,
                                   String monthFormat,
                                   String startMonth,
                                   String startDate,
                                   String startYear)
        This when invoked populates the classes.
        Parameters:
        logourl - location of the logo to be displayed on the report
        categoryName - of the logo to be displayed on the report
        reportFormat - Report Format ("SVG" / all)
        monthFormat - Format for month data ("classic"/"calendar")
        startMonth - a String object.
        startDate - a String object.
        startYear - a String object.
      • main

        public static void main​(String[] args)
        Main method
        Parameters:
        args - an array of String objects.