Record Class demopalautus
- All Implemented Interfaces:
Comparable<VilleSubmissionFields>
,GitLabSubmissionFields
,VilleSubmissionFields
-
Constructor Summary
ConstructorsConstructorDescriptiondemopalautus
(String[] row, ViLLeCsvFile source) Creates an instance of ademopalautus
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the student's disclosure regarding use of AI tools (e.g., ChatGPT, GitHub Copilot).Returns the student's given name.Returns the raw GitLab link field as entered by the student, without any processing.Returns the student's response to the group work question.Returns the student's surname.Returns a timestamp-based folder name to group this submission.getScore()
Returns the score assigned to this submission.Returns the student's official identifier, such as a student number or other ID code.getTime()
Returns the timestamp of the submission as a raw string.getUser()
Returns the full user identifier, typically an email address.final int
hashCode()
Returns a hash code value for this object.String[]
row()
Returns the value of therow
record component.source()
Returns the value of thesource
record component.final String
toString()
Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface studentrepoloader.model.villecsv.mapper.GitLabSubmissionFields
expectedHostPrefix, getRepoUrl
Methods inherited from interface studentrepoloader.model.villecsv.mapper.VilleSubmissionFields
compareTo, getFolderName, getID
-
Constructor Details
-
demopalautus
Creates an instance of ademopalautus
record class.- Parameters:
row
- the value for therow
record componentsource
- the value for thesource
record component
-
-
Method Details
-
getUser
Description copied from interface:VilleSubmissionFields
Returns the full user identifier, typically an email address.This value should be unique across submissions, and is often used to derive internal IDs.
- Specified by:
getUser
in interfaceVilleSubmissionFields
- Returns:
- the user's identifier (e.g., "student@university.fi")
-
getFirstName
Description copied from interface:VilleSubmissionFields
Returns the student's given name.- Specified by:
getFirstName
in interfaceVilleSubmissionFields
- Returns:
- first name
-
getLastName
Description copied from interface:VilleSubmissionFields
Returns the student's surname.- Specified by:
getLastName
in interfaceVilleSubmissionFields
- Returns:
- last name
-
getTime
Description copied from interface:VilleSubmissionFields
Returns the timestamp of the submission as a raw string.No specific format is enforced — it is the implementer's responsibility to parse or sanitize this if needed.
- Specified by:
getTime
in interfaceVilleSubmissionFields
- Returns:
- submission time as string
-
getStudentId
Description copied from interface:VilleSubmissionFields
Returns the student's official identifier, such as a student number or other ID code.- Specified by:
getStudentId
in interfaceVilleSubmissionFields
- Returns:
- student ID
-
getParentFolderName
Returns a timestamp-based folder name to group this submission.Since this test object is not constructed with a
ViLLeCsvFile
and lacks batch-level metadata, the fallback strategy is to return the raw timestamp field from the submission itself.This ensures submissions created from arbitrary test data can still be placed into separate subdirectories like:
clones/ └── 2025-06-14/ ├── ...
where2025-06-14
comes fromgetTime()
.Note: this method assumes the
getTime()
format is already compliant with filesystem-safe and lexicographically sortable naming (e.g.,yyyy-MM-dd
).- Specified by:
getParentFolderName
in interfaceVilleSubmissionFields
- Returns:
- timestamp string from
getTime()
to be used as a folder name
-
getScore
Description copied from interface:GitLabSubmissionFields
Returns the score assigned to this submission.This is typically a numeric string but may also contain comments or feedback, depending on ViLLe configuration.
- Specified by:
getScore
in interfaceGitLabSubmissionFields
- Returns:
- score field as-is from the CSV
-
getGitLabLink
Description copied from interface:GitLabSubmissionFields
Returns the raw GitLab link field as entered by the student, without any processing.This is the unmodified value directly from the CSV, and may include surrounding commentary, invalid protocols (e.g., SSH), UI links, or malformed fragments.
This method is useful for diagnostics and logging.
- Specified by:
getGitLabLink
in interfaceGitLabSubmissionFields
- Returns:
- unprocessed input string from the GitLab link field
-
getAiDisclosure
Description copied from interface:GitLabSubmissionFields
Returns the student's disclosure regarding use of AI tools (e.g., ChatGPT, GitHub Copilot).This field may contain multiline text or be left blank.
- Specified by:
getAiDisclosure
in interfaceGitLabSubmissionFields
- Returns:
- AI tool usage disclosure
-
getGroupWork
Description copied from interface:GitLabSubmissionFields
Returns the student's response to the group work question.This may include the names of collaborators and a description of how the task was divided. This field may be multiline and is optional.
- Specified by:
getGroupWork
in interfaceGitLabSubmissionFields
- Returns:
- group work information
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
row
Returns the value of therow
record component.- Returns:
- the value of the
row
record component
-
source
Returns the value of thesource
record component.- Returns:
- the value of the
source
record component
-