Package org.gedcomx.conclusion
Class DisplayProperties
- java.lang.Object
-
- org.gedcomx.common.ExtensibleData
-
- org.gedcomx.conclusion.DisplayProperties
-
- All Implemented Interfaces:
HasTransientProperties,SupportsExtensionElements
public class DisplayProperties extends ExtensibleData
A set of display properties for the convenience of quick display, such as for a Web-based application. All display properties are provided in the default locale for the current application context and are NOT considered canonical for the purposes of data exchange.
-
-
Field Summary
-
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties
-
-
Constructor Summary
Constructors Constructor Description DisplayProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFamilyAsChild(FamilyView family)Add a family where this person is a child to the data set.voidaddFamilyAsParent(FamilyView family)Add a family where this person is a parentDisplayPropertiesascendancyNumber(String ascendancynumber)Build up these properties with a ascendancy number.DisplayPropertiesbirthDate(String birthdate)Build up these properties with a birth date.DisplayPropertiesbirthPlace(String birthplace)Build up these properties with a birth place.DisplayPropertiesdeathDate(String deathdate)Build up these properties with a death date.DisplayPropertiesdeathPlace(String deathplace)Build up these properties with a death place.DisplayPropertiesdescendancyNumber(String descendancynumber)Build up these properties with a descendancy number.voidembed(DisplayProperties data)Embed a set of display properties.DisplayPropertiesextensionElement(Object element)DisplayPropertiesgender(String gender)Build up these properties with a gender.StringgetAscendancyNumber()The context-specific ascendancy number for the person in relation to the other persons in the request.StringgetBirthDate()The displayable label for the birth date of the person.StringgetBirthPlace()The displayable label for the birth place of the person.StringgetDeathDate()The displayable label for the death date of the person.StringgetDeathPlace()The displayable label for the death place of the person.StringgetDescendancyNumber()The context-specific descendancy number for the person in relation to the other persons in the request.List<FamilyView>getFamiliesAsChild()The family views where this person is a childList<FamilyView>getFamiliesAsParent()The family views where this person is a parentStringgetGender()The displayable label for the gender of the person.StringgetLifespan()The displayable label for the lifespan of the person.StringgetMarriageDate()The displayable label for the marriage date of the person.StringgetMarriagePlace()The displayable label for the marriage place of the person.StringgetName()The displayable name of the person.StringgetRelationshipDescription()The context-specific relationship description for the person in relation to the root person in the request.StringgetRole()The role of this person in the current display context.DisplayPropertiesid(String id)Build up this object with an id.DisplayPropertieslifespan(String lifespan)Build up these properties with a lifespan.DisplayPropertiesmarriageDate(String marriagedate)Build up these properties with a marriage date.DisplayPropertiesmarriagePlace(String marriageplace)Build up these properties with a marriage place.DisplayPropertiesname(String name)Build up these properties with a name.DisplayPropertiesrelationship(String relationshipDescription)Build up these properties with a relationship description.DisplayPropertiesrole(String role)Set the role.voidsetAscendancyNumber(String ascendancyNumber)The context-specific ascendancy number for the person in relation to the other persons in the request.voidsetBirthDate(String birthDate)The displayable label for the birth date of the person.voidsetBirthPlace(String birthPlace)The displayable label for the birth place of the person.voidsetDeathDate(String deathDate)The displayable label for the death date of the person.voidsetDeathPlace(String deathPlace)The displayable label for the death place of the person.voidsetDescendancyNumber(String descendancyNumber)The context-specific descendancy number for the person in relation to the other persons in the request.voidsetFamiliesAsChild(List<FamilyView> familiesAsChild)The family views where this person is a childvoidsetFamiliesAsParent(List<FamilyView> familiesAsParent)The family views where this person is a parentvoidsetGender(String gender)Displayable form of the gender.voidsetLifespan(String lifespan)The displayable label for the lifespan of the person.voidsetMarriageDate(String marriageDate)The displayable label for the marriage date of the person.voidsetMarriagePlace(String marriagePlace)The displayable label for the marriage place of the person.voidsetName(String name)The displayable name of the person.voidsetRelationshipDescription(String relationshipDescription)The context-specific relationship description for the person in relation to the root person in the request.voidsetRole(String role)The role of this person in the current display context.-
Methods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
-
-
-
Method Detail
-
id
public DisplayProperties id(String id)
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
public DisplayProperties extensionElement(Object element)
- Overrides:
extensionElementin classExtensibleData
-
getName
public String getName()
The displayable name of the person.- Returns:
- The displayable name of the person.
-
setName
public void setName(String name)
The displayable name of the person.- Parameters:
name- The displayable name of the person.
-
name
public DisplayProperties name(String name)
Build up these properties with a name.- Parameters:
name- The name.- Returns:
- this.
-
getGender
public String getGender()
The displayable label for the gender of the person.- Returns:
- The displayable label for the gender of the person.
-
setGender
public void setGender(String gender)
Displayable form of the gender.- Parameters:
gender- Displayable form of the gender.
-
gender
public DisplayProperties gender(String gender)
Build up these properties with a gender.- Parameters:
gender- The gender.- Returns:
- this.
-
getLifespan
public String getLifespan()
The displayable label for the lifespan of the person.- Returns:
- The displayable label for the lifespan of the person.
-
setLifespan
public void setLifespan(String lifespan)
The displayable label for the lifespan of the person.- Parameters:
lifespan- The displayable label for the lifespan of the person.
-
lifespan
public DisplayProperties lifespan(String lifespan)
Build up these properties with a lifespan.- Parameters:
lifespan- The lifespan.- Returns:
- this.
-
getBirthDate
public String getBirthDate()
The displayable label for the birth date of the person.- Returns:
- The displayable label for the birth date of the person.
-
setBirthDate
public void setBirthDate(String birthDate)
The displayable label for the birth date of the person.- Parameters:
birthDate- The displayable label for the birth date of the person.
-
birthDate
public DisplayProperties birthDate(String birthdate)
Build up these properties with a birth date.- Parameters:
birthdate- The birth date.- Returns:
- this.
-
getBirthPlace
public String getBirthPlace()
The displayable label for the birth place of the person.- Returns:
- The displayable label for the birth place of the person.
-
setBirthPlace
public void setBirthPlace(String birthPlace)
The displayable label for the birth place of the person.- Parameters:
birthPlace- The displayable label for the birth place of the person.
-
birthPlace
public DisplayProperties birthPlace(String birthplace)
Build up these properties with a birth place.- Parameters:
birthplace- The birth place.- Returns:
- this.
-
getDeathDate
public String getDeathDate()
The displayable label for the death date of the person.- Returns:
- The displayable label for the death date of the person.
-
setDeathDate
public void setDeathDate(String deathDate)
The displayable label for the death date of the person.- Parameters:
deathDate- The displayable label for the death date of the person.
-
deathDate
public DisplayProperties deathDate(String deathdate)
Build up these properties with a death date.- Parameters:
deathdate- The death date.- Returns:
- this.
-
getDeathPlace
public String getDeathPlace()
The displayable label for the death place of the person.- Returns:
- The displayable label for the death place of the person.
-
setDeathPlace
public void setDeathPlace(String deathPlace)
The displayable label for the death place of the person.- Parameters:
deathPlace- The displayable label for the death place of the person.
-
deathPlace
public DisplayProperties deathPlace(String deathplace)
Build up these properties with a death place.- Parameters:
deathplace- The death place.- Returns:
- this.
-
getMarriageDate
public String getMarriageDate()
The displayable label for the marriage date of the person.- Returns:
- The displayable label for the marriage date of the person.
-
setMarriageDate
public void setMarriageDate(String marriageDate)
The displayable label for the marriage date of the person.- Parameters:
marriageDate- The displayable label for the marriage date of the person.
-
marriageDate
public DisplayProperties marriageDate(String marriagedate)
Build up these properties with a marriage date.- Parameters:
marriagedate- The marriage date.- Returns:
- this.
-
getMarriagePlace
public String getMarriagePlace()
The displayable label for the marriage place of the person.- Returns:
- The displayable label for the marriage place of the person.
-
setMarriagePlace
public void setMarriagePlace(String marriagePlace)
The displayable label for the marriage place of the person.- Parameters:
marriagePlace- The displayable label for the marriage place of the person.
-
marriagePlace
public DisplayProperties marriagePlace(String marriageplace)
Build up these properties with a marriage place.- Parameters:
marriageplace- The marriage place.- Returns:
- this.
-
getAscendancyNumber
public String getAscendancyNumber()
The context-specific ascendancy number for the person in relation to the other persons in the request. The ancestry number is defined using the Ahnentafel numbering system.- Returns:
- The context-specific ascendancy number for the person in relation to the other persons in the request. The ancestry number is defined using the Ahnentafel numbering system.
-
setAscendancyNumber
public void setAscendancyNumber(String ascendancyNumber)
The context-specific ascendancy number for the person in relation to the other persons in the request. The ancestry number is defined using the Ahnentafel numbering system.- Parameters:
ascendancyNumber- The context-specific ascendancy number for the person in relation to the other persons in the request. The ancestry number is defined using the Ahnentafel numbering system.
-
ascendancyNumber
public DisplayProperties ascendancyNumber(String ascendancynumber)
Build up these properties with a ascendancy number.- Parameters:
ascendancynumber- The ascendancy number.- Returns:
- this.
-
getDescendancyNumber
public String getDescendancyNumber()
The context-specific descendancy number for the person in relation to the other persons in the request. The descendancy number is defined using the d'Aboville numbering system.- Returns:
- The context-specific descendancy number for the person in relation to the other persons in the request. The descendancy number is defined using the d'Aboville numbering system.
-
setDescendancyNumber
public void setDescendancyNumber(String descendancyNumber)
The context-specific descendancy number for the person in relation to the other persons in the request. The descendancy number is defined using the d'Aboville numbering system.- Parameters:
descendancyNumber- The context-specific descendancy number for the person in relation to the other persons in the request. The descendancy number is defined using the d'Aboville numbering system.
-
descendancyNumber
public DisplayProperties descendancyNumber(String descendancynumber)
Build up these properties with a descendancy number.- Parameters:
descendancynumber- The descendancy number.- Returns:
- this.
-
getRelationshipDescription
public String getRelationshipDescription()
The context-specific relationship description for the person in relation to the root person in the request.- Returns:
- The context-specific relationship description for the person in relation to the root person in the request.
-
setRelationshipDescription
public void setRelationshipDescription(String relationshipDescription)
The context-specific relationship description for the person in relation to the root person in the request.- Parameters:
relationshipDescription- The context-specific relationship description for the person in relation to the root person in the request.
-
relationship
public DisplayProperties relationship(String relationshipDescription)
Build up these properties with a relationship description.- Parameters:
relationshipDescription- The relationship description.- Returns:
- this.
-
getFamiliesAsParent
public List<FamilyView> getFamiliesAsParent()
The family views where this person is a parent- Returns:
- The family views where this person is a parent.
-
setFamiliesAsParent
public void setFamiliesAsParent(List<FamilyView> familiesAsParent)
The family views where this person is a parent- Parameters:
familiesAsParent- The families where this person is a parent
-
addFamilyAsParent
public void addFamilyAsParent(FamilyView family)
Add a family where this person is a parent- Parameters:
family- The family where this person is a parent
-
getFamiliesAsChild
public List<FamilyView> getFamiliesAsChild()
The family views where this person is a child- Returns:
- The family views where this person is a child
-
setFamiliesAsChild
public void setFamiliesAsChild(List<FamilyView> familiesAsChild)
The family views where this person is a child- Parameters:
familiesAsChild- The families where this person is a child
-
addFamilyAsChild
public void addFamilyAsChild(FamilyView family)
Add a family where this person is a child to the data set.- Parameters:
family- The family to be added.
-
getRole
public String getRole()
The role of this person in the current display context.- Returns:
- The role of this person in the current display context.
-
setRole
public void setRole(String role)
The role of this person in the current display context.- Parameters:
role- The role of this person in the current display context.
-
role
public DisplayProperties role(String role)
Set the role.- Parameters:
role- The role.- Returns:
- this
-
embed
public void embed(DisplayProperties data)
Embed a set of display properties.- Parameters:
data- The data to embed.
-
-