-
Notifications
You must be signed in to change notification settings - Fork 0
ReportContent
Khadisha edited this page Nov 21, 2023
·
2 revisions
The ReportContent class is an integral part of the project responsible for organizing and presenting student feedback in PDF reports. It includes methods for adding feedback, creating tables, and summarizing marks.
Default Constructor
-
public class ReportContent: Responsible for managing the creation of PDF reports based on student feedback.
Methods
-
public static void addFeedback(Feedback f): Appends a new Feedback object passed as a parameter to the list of student feedback. -
public static ArrayList<Feedback> getStudentFeedback(): Returns the current list of student feedback, providing access to the raw data for further analysis if needed. -
public void addTableHeaders(Document document): Includes table headers in the specified Document before populating it with feedback data. -
public void addTables(Document document): Generates tables within the provided Document passed as a parameter, organizing the student feedback data for clear presentation. -
public void addMarks(Document document): Includes information about marks, such as JUnit test results and code cleanliness, in the provided Document. -
public void addContent(Document document): Orchestrates the generation of a complete report within the provided Document. After adding content, it clears the list of student feedback to prepare for the next report.
Fields
-
private static ArrayList<Feedback> studentFeedback: An ArrayList containing instances of the Feedback class, representing the feedback data for students.