Package sc2002.FCS1.grp2
Class Applicant
Object
CSVDecodable
User
Applicant
- All Implemented Interfaces:
CSVEncodable
- Direct Known Subclasses:
HDBOfficer
Represents an Applicant user.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static enumApplicant-specific menu options -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) booleanFor checking on whether a user should be allowed to apply for a project, based on eligibility criteria.This method gives the eligible flat types available to the applicantgetMenu()This method will prepare the list of tasks of which a user can perform.(package private) StringUser-readable name for the type of user.Override this to provide which file type the encodable class should be represented as.Methods inherited from class User
checkPassword, encode, equals, getAge, getCommonMenuOptions, getEnquiriesSystem, getListingFilter, getListingSort, getMaritalStatus, getMenuWithScopedOptions, getName, getNric, nameEquals, print, setEnquiriesSystem, setListingFilter, setListingSort, setPassword, toString
-
Constructor Details
-
Applicant
Constructor forCSVParserclass This constructor constructs values based on CSV encoded rows representing this object.- Parameters:
cells-
-
-
Method Details
-
getEligibleFlatTypes
This method gives the eligible flat types available to the applicant- Returns:
- Eligible Flat Types
-
getMenu
Description copied from class:UserThis method will prepare the list of tasks of which a user can perform. It can be expected that the contents of the list will be presented to the user to let them know what they can do. Subclasses must add on to the list by the superclass, rather than creating a new list. -
sourceFileType
Description copied from interface:CSVEncodableOverride this to provide which file type the encodable class should be represented as. This ensures that the right data is written in the right file, depending on the class type.- Returns:
- a CSVFileType, such as
CSVFileType.MANAGER_LIST.
-
getReadableTypeName
String getReadableTypeName()Description copied from class:UserUser-readable name for the type of user.- Specified by:
getReadableTypeNamein classUser- Returns:
- the type of the user, such as "Applicant".
-
canApplyProject
boolean canApplyProject()Description copied from class:UserFor checking on whether a user should be allowed to apply for a project, based on eligibility criteria.- Specified by:
canApplyProjectin classUser- Returns:
- if user's eligibility criteria matches, returns
true, otherwisefalse.
-