Interface Person
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A Person .
-
Method Summary
Modifier and TypeMethodDescriptionGets the date of birth for this person.Gets the date of death for this person.Gets additional forenames this person is or was known by.Gets the generation qualifier of this person.Gets the given name of this person.Gets the institutional identifier for this person.Gets the middle names of this person.getPersonRecord(Type personRecordType) Gets the record corresponding to the givenPersonrecordType.This method is used to retrieve an object implementing the requested record.Gets the preferred forename or mononym of this person.Gets the qualification suffix of this person (MD, Phd).Gets the title for this person (Mr., Dr., Ms.).Gets the surname of this person.Gets additional surnames this person is or was known by.booleanTests if a birth date is available.booleanTests if this person died.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getSalutation
DisplayText getSalutation()Gets the title for this person (Mr., Dr., Ms.).- Returns:
- the title
- Compliance:
mandatory- This method must be implemented.
-
getGivenName
DisplayText getGivenName()Gets the given name of this person.- Returns:
- the given name
- Compliance:
mandatory- This method must be implemented.
-
getPreferredName
DisplayText getPreferredName()Gets the preferred forename or mononym of this person.- Returns:
- the preferred name
- Compliance:
mandatory- This method must be implemented.
-
getForenameAliases
DisplayText[] getForenameAliases()Gets additional forenames this person is or was known by.- Returns:
- forname aliases
- Compliance:
mandatory- This method must be implemented.
-
getMiddleNames
DisplayText[] getMiddleNames()Gets the middle names of this person.- Returns:
- the middle names
- Compliance:
mandatory- This method must be implemented.
-
getSurname
DisplayText getSurname()Gets the surname of this person.- Returns:
- the surname
- Compliance:
mandatory- This method must be implemented.
-
getSurnameAliases
DisplayText[] getSurnameAliases()Gets additional surnames this person is or was known by.- Returns:
- the surname aliases
- Compliance:
mandatory- This method must be implemented.
-
getGenerationQualifier
DisplayText getGenerationQualifier()Gets the generation qualifier of this person.- Returns:
- the generation qualifier
- Compliance:
mandatory- This method must be implemented.
-
getQualificationSuffix
DisplayText getQualificationSuffix()Gets the qualification suffix of this person (MD, Phd).- Returns:
- the generation qualifier
- Compliance:
mandatory- This method must be implemented.
-
hasBirthDate
boolean hasBirthDate()Tests if a birth date is available.- Returns:
trueif a birth date is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBirthDate
DateTime getBirthDate()Gets the date of birth for this person.- Returns:
- the date of birth
- Throws:
IllegalStateException-hasBirthDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
isDeceased
boolean isDeceased()Tests if this person died.- Returns:
trueif this person is dead,falseif still kicking- Compliance:
mandatory- This method must be implemented.
-
getDeathDate
DateTime getDeathDate()Gets the date of death for this person.- Returns:
- the date of death
- Throws:
IllegalStateException-isDead()isfalse- Compliance:
mandatory- This method must be implemented.
-
getInstitutionalIdentifier
String getInstitutionalIdentifier()Gets the institutional identifier for this person.- Returns:
- the institutional identifier
- Compliance:
mandatory- This method must be implemented.
-
getPersonRecord
Gets the record corresponding to the givenPersonrecordType.This method is used to retrieve an object implementing the requested record. ThepersonRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(personRecordType)istrue.- Parameters:
personRecordType- the type of person record to retrieve- Returns:
- the person record
- Throws:
NullArgumentException-personRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(personRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-