Package org.gedcomx.conclusion
Class Gender
- java.lang.Object
-
- org.gedcomx.common.ExtensibleData
-
- org.gedcomx.links.HypermediaEnabledData
-
- org.gedcomx.conclusion.Conclusion
-
- org.gedcomx.conclusion.Gender
-
- All Implemented Interfaces:
Attributable,HasNotes,HasTransientProperties,SupportsLinks,HasFields,SupportsExtensionElements,ReferencesSources
public class Gender extends Conclusion implements HasFields
A gender conclusion.- Author:
- Ryan Heaton
-
-
Field Summary
-
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties
-
-
Constructor Summary
Constructors Constructor Description Gender()Default constructor.Gender(GenderType type)Constructs a new gender object with the passed in type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(GedcomxModelVisitor visitor)Accept a visitor.voidaddField(Field field)Add a record field being used as evidence.Genderanalysis(ResourceReference analysis)Add a reference to the analysis for this conclusion.Genderanalysis(URI analysis)Add a reference to the analysis for this conclusion.Genderanalysis(Document analysis)Add a reference to the analysis for this conclusion.Genderattribution(Attribution attribution)Build up this conclusion with attribution.Genderconfidence(URI confidence)Build up this conclusion with a confidence level.Genderconfidence(ConfidenceLevel confidence)Build up this conclusion with a confidence level.GenderextensionElement(Object element)Genderfield(Field field)Build up this gender with a field.List<Field>getFields()Get the fields being used as evidence.GenderTypegetKnownType()The known type of the gender.URIgetType()The type of the gender.Genderid(String id)Build up this object with an id.Genderlang(String lang)Build up this conclusion with a lang.Genderlink(String rel, URI href)Build up this data with a link.Genderlink(Link link)Build up this data with a link.Gendernote(Note note)Build up this conclusion with a note.voidsetFields(List<Field> fields)Set the list of fields being used as evidence.voidsetKnownType(GenderType type)The type of the gender.voidsetType(URI type)The type of the gender.GendersortKey(String sortKey)Build up this fact with a sort key.Gendersource(SourceDescription source)Build up this conclusion with a source reference.Gendersource(SourceReference sourceReference)Build up this conclusion with a source reference.StringtoString()Provide a simple toString() method.Gendertype(URI type)Build up this gender with a type.Gendertype(GenderType type)Build up this gender with a type.-
Methods inherited from class org.gedcomx.conclusion.Conclusion
addNote, addSource, embed, getAnalysis, getAttribution, getConfidence, getKnownConfidenceLevel, getLang, getNotes, getSortKey, getSources, notes, setAnalysis, setAttribution, setConfidence, setKnownConfidenceLevel, setLang, setNotes, setSortKey, setSources, sources
-
Methods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinks
-
Methods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty
-
-
-
-
Constructor Detail
-
Gender
public Gender()
Default constructor.
-
Gender
public Gender(GenderType type)
Constructs a new gender object with the passed in type.- Parameters:
type- The type of the gender.
-
-
Method Detail
-
id
public Gender id(String id)
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classConclusion- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
public Gender extensionElement(Object element)
- Overrides:
extensionElementin classConclusion
-
link
public Gender link(String rel, URI href)
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
link
public Gender link(Link link)
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classConclusion- Parameters:
link- The link.- Returns:
- this.
-
lang
public Gender lang(String lang)
Description copied from class:ConclusionBuild up this conclusion with a lang.- Overrides:
langin classConclusion- Parameters:
lang- The lang.- Returns:
- this.
-
confidence
public Gender confidence(URI confidence)
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
confidence
public Gender confidence(ConfidenceLevel confidence)
Description copied from class:ConclusionBuild up this conclusion with a confidence level.- Overrides:
confidencein classConclusion- Parameters:
confidence- The confidence level.- Returns:
- this.
-
source
public Gender source(SourceReference sourceReference)
Description copied from class:ConclusionBuild up this conclusion with a source reference.- Overrides:
sourcein classConclusion- Parameters:
sourceReference- The source reference.- Returns:
- this.
-
source
public Gender source(SourceDescription source)
Description copied from class:ConclusionBuild up this conclusion with a source reference.- Overrides:
sourcein classConclusion- Parameters:
source- The source description being referenced.- Returns:
- this.
-
note
public Gender note(Note note)
Description copied from class:ConclusionBuild up this conclusion with a note.- Overrides:
notein classConclusion- Parameters:
note- The note.- Returns:
- this.
-
attribution
public Gender attribution(Attribution attribution)
Description copied from class:ConclusionBuild up this conclusion with attribution.- Overrides:
attributionin classConclusion- Parameters:
attribution- The attribution.- Returns:
- this.
-
analysis
public Gender analysis(ResourceReference analysis)
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
public Gender analysis(Document analysis)
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
analysis
public Gender analysis(URI analysis)
Description copied from class:ConclusionAdd a reference to the analysis for this conclusion.- Overrides:
analysisin classConclusion- Parameters:
analysis- The analysis.- Returns:
- this.
-
sortKey
public Gender sortKey(String sortKey)
Description copied from class:ConclusionBuild up this fact with a sort key.- Overrides:
sortKeyin classConclusion- Parameters:
sortKey- The sort key.- Returns:
- this.
-
getType
public URI getType()
The type of the gender.- Returns:
- The type of the gender.
-
setType
public void setType(URI type)
The type of the gender.- Parameters:
type- The type of the gender.
-
type
public Gender type(URI type)
Build up this gender with a type.- Parameters:
type- The type.- Returns:
- this.
-
type
public Gender type(GenderType type)
Build up this gender with a type.- Parameters:
type- The type.- Returns:
- this.
-
getKnownType
public GenderType getKnownType()
The known type of the gender.- Returns:
- The type of the gender.
-
setKnownType
public void setKnownType(GenderType type)
The type of the gender.- Parameters:
type- The type of the gender.
-
field
public Gender field(Field field)
Build up this gender with a field.- Parameters:
field- The field.- Returns:
- this.
-
addField
public void addField(Field field)
Add a record field being used as evidence.- Parameters:
field- The evidence to be added.
-
toString
public String toString()
Description copied from class:ConclusionProvide a simple toString() method.- Overrides:
toStringin classConclusion
-
accept
public void accept(GedcomxModelVisitor visitor)
Accept a visitor.- Parameters:
visitor- The visitor.
-
-