Package edu.suffolk.litlab.efspserver
Class Person
java.lang.Object
edu.suffolk.litlab.efspserver.Person
Values for each individual legal person (a business or individual) involved in a case
- Author:
- brycew
-
Method Summary
Modifier and TypeMethodDescriptionstatic Person
FromEfm
(Name name, ContactInformation contactInfo, Optional<String> gender, Optional<String> language, Optional<LocalDate> birthdate, boolean isOrg, String role, UUID efmId) static Person
FromInput
(Name name, ContactInformation contactInfo, Optional<String> gender, Optional<String> language, Optional<LocalDate> birthdate, boolean isOrg, boolean isFormFiller, String role, Optional<String> efmIdIfAlreadyIn) Default constructor.getId()
In order to be an XML referfence ID, it needs to start with a letter, not a number.getName()
getRole()
boolean
boolean
isOrg()
void
setLanguage
(String language) void
static Person
TestPerson
(Name name, String email, boolean isOrg) Minimal constructor, empty lists and empty optionals.
-
Method Details
-
TestPerson
Minimal constructor, empty lists and empty optionals. Should only be used in tests. -
FromEfm
-
FromInput
public static Person FromInput(Name name, ContactInformation contactInfo, Optional<String> gender, Optional<String> language, Optional<LocalDate> birthdate, boolean isOrg, boolean isFormFiller, String role, Optional<String> efmIdIfAlreadyIn) Default constructor. -
getName
-
isOrg
public boolean isOrg() -
isFormFiller
public boolean isFormFiller() -
getId
-
getBirthdate
-
getGender
-
getRole
-
getContactInfo
-
getLanguage
-
setLanguage
-
setRole
-
getPartyId
-
getIdString
In order to be an XML referfence ID, it needs to start with a letter, not a number.
-