Class StudentDetails

java.lang.Object
com.gophers.structures.domain.StudentDetails

public class StudentDetails extends Object
Represents details of a student derived from a submission file name.
  • Constructor Details

    • StudentDetails

      public StudentDetails(String submission)
      Constructor to parse student details from the submission file name.
      Parameters:
      submission - File path or name of the student's submission.
      Throws:
      IllegalArgumentException - if the submission name does not match the required format.
  • Method Details

    • toPDFData

      public Map<String,String> toPDFData()
      Converts the student details into a map format suitable for PDF generation.
      Returns:
      A map containing the PDF data for the student's details.
    • toString

      public String toString()
      Provides a string representation of the student details.
      Overrides:
      toString in class Object
      Returns:
      A string containing the student's ID, first name, and last name.