Class Person
- java.lang.Object
-
- de.digitalcollections.model.UniqueObject
-
- de.digitalcollections.model.identifiable.Identifiable
-
- de.digitalcollections.model.identifiable.entity.Entity
-
- de.digitalcollections.model.identifiable.entity.agent.Agent
-
- de.digitalcollections.model.identifiable.entity.agent.Person
-
public class Person extends Agent
Human being that has certain capacities or attributes constituting personhood.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Person.PersonBuilder<C extends Person,B extends Person.PersonBuilder<C,B>>
-
Nested classes/interfaces inherited from class de.digitalcollections.model.identifiable.entity.agent.Agent
Agent.AgentBuilder<C extends Agent,B extends Agent.AgentBuilder<C,B>>
-
Nested classes/interfaces inherited from class de.digitalcollections.model.identifiable.entity.Entity
Entity.EntityBuilder<C extends Entity,B extends Entity.EntityBuilder<C,B>>
-
Nested classes/interfaces inherited from class de.digitalcollections.model.identifiable.Identifiable
Identifiable.IdentifiableBuilder<C extends Identifiable,B extends Identifiable.IdentifiableBuilder<C,B>>
-
Nested classes/interfaces inherited from class de.digitalcollections.model.UniqueObject
UniqueObject.UniqueObjectBuilder<C extends UniqueObject,B extends UniqueObject.UniqueObjectBuilder<C,B>>
-
-
Field Summary
-
Fields inherited from class de.digitalcollections.model.identifiable.entity.Entity
customAttributes, navDate, notes, refId
-
Fields inherited from class de.digitalcollections.model.identifiable.Identifiable
description, identifiableObjectType, identifiers, label, localizedUrlAliases, previewImage, previewImageRenderingHints, type
-
Fields inherited from class de.digitalcollections.model.UniqueObject
created, lastModified, uuid
-
-
Constructor Summary
Constructors Constructor Description Person()
Person(LocalizedText label, Set<Identifier> identifiers)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LocalDate
getDateOfBirth()
LocalDate
getDateOfDeath()
List<FamilyName>
getFamilyNames()
Gender
getGender()
List<GivenName>
getGivenNames()
GeoLocation
getPlaceOfBirth()
GeoLocation
getPlaceOfDeath()
org.wikidata.wdtk.datamodel.interfaces.TimeValue
getTimeValueOfBirth()
org.wikidata.wdtk.datamodel.interfaces.TimeValue
getTimeValueOfDeath()
protected void
init()
Use to initialize member variables, used by default constructor and buildervoid
setDateOfBirth(LocalDate dateOfBirth)
void
setDateOfDeath(LocalDate dateOfDeath)
void
setFamilyNames(List<FamilyName> familyNames)
void
setGender(Gender gender)
void
setGivenNames(List<GivenName> givenNames)
void
setPlaceOfBirth(GeoLocation placeOfBirth)
void
setPlaceOfDeath(GeoLocation placeOfDeath)
void
setTimeValueOfBirth(org.wikidata.wdtk.datamodel.interfaces.TimeValue timeValueOfBirth)
void
setTimeValueOfDeath(org.wikidata.wdtk.datamodel.interfaces.TimeValue timeValueOfDeath)
-
Methods inherited from class de.digitalcollections.model.identifiable.entity.Entity
addNotes, equals, getCustomAttribute, getCustomAttributes, getEntityType, getNavDate, getNotes, getRefId, hashCode, setCustomAttribute, setCustomAttributes, setNavDate, setNotes, setRefId
-
Methods inherited from class de.digitalcollections.model.identifiable.Identifiable
addIdentifier, getDescription, getIdentifiableObjectType, getIdentifierByNamespace, getIdentifiers, getLabel, getLocalizedUrlAliases, getPreviewImage, getPreviewImageRenderingHints, getPrimaryUrlAlias, getType, removeIdentifier, setDescription, setIdentifiableObjectType, setIdentifiers, setLabel, setLabel, setLocalizedUrlAliases, setPreviewImage, setPreviewImageRenderingHints, setType
-
Methods inherited from class de.digitalcollections.model.UniqueObject
getCreated, getLastModified, getUuid, setCreated, setLastModified, setUuid
-
-
-
-
Constructor Detail
-
Person
public Person()
-
Person
public Person(LocalizedText label, Set<Identifier> identifiers)
-
-
Method Detail
-
getDateOfBirth
public LocalDate getDateOfBirth()
-
getDateOfDeath
public LocalDate getDateOfDeath()
-
getFamilyNames
public List<FamilyName> getFamilyNames()
- Returns:
- family names (more than one when change during life, e.g. at marriage; first one is name at birth)
-
getGender
public Gender getGender()
-
getPlaceOfBirth
public GeoLocation getPlaceOfBirth()
-
getPlaceOfDeath
public GeoLocation getPlaceOfDeath()
-
getTimeValueOfBirth
public org.wikidata.wdtk.datamodel.interfaces.TimeValue getTimeValueOfBirth()
-
getTimeValueOfDeath
public org.wikidata.wdtk.datamodel.interfaces.TimeValue getTimeValueOfDeath()
-
init
protected void init()
Description copied from class:UniqueObject
Use to initialize member variables, used by default constructor and builder
-
setDateOfBirth
public void setDateOfBirth(LocalDate dateOfBirth)
-
setDateOfDeath
public void setDateOfDeath(LocalDate dateOfDeath)
-
setFamilyNames
public void setFamilyNames(List<FamilyName> familyNames)
-
setGender
public void setGender(Gender gender)
-
setPlaceOfBirth
public void setPlaceOfBirth(GeoLocation placeOfBirth)
-
setPlaceOfDeath
public void setPlaceOfDeath(GeoLocation placeOfDeath)
-
setTimeValueOfBirth
public void setTimeValueOfBirth(org.wikidata.wdtk.datamodel.interfaces.TimeValue timeValueOfBirth)
-
setTimeValueOfDeath
public void setTimeValueOfDeath(org.wikidata.wdtk.datamodel.interfaces.TimeValue timeValueOfDeath)
-
-