Package org.gedcomx.records
Class RecordSet
- java.lang.Object
-
- org.gedcomx.common.ExtensibleData
-
- org.gedcomx.links.HypermediaEnabledData
-
- org.gedcomx.records.RecordSet
-
- All Implemented Interfaces:
HasTransientProperties,SupportsLinks,SupportsExtensionElements
public class RecordSet extends HypermediaEnabledData
The GEDCOM X bulk record data formats are used to exchange bulk genealogical data sets, grouped into records.- Author:
- Ryan Heaton
-
-
Field Summary
-
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties
-
-
Constructor Summary
Constructors Constructor Description RecordSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RecordSetextensionElement(Object element)StringgetLang()The language of this genealogical data set.GedcomxgetMetadata()Metadata about this record set; shared among all records in the set.List<Gedcomx>getRecords()The records included in this genealogical data set.RecordSetid(String id)Build up this object with an id.RecordSetlang(String lang)Build out this record set with a lang.RecordSetlink(String rel, URI href)Build up this data with a link.RecordSetlink(Link link)Build up this data with a link.RecordSetmetadata(Gedcomx metadata)Build out this record set with metadata.RecordSetrecord(Gedcomx record)Build out this record set with a record.Stream<Gedcomx>records()Create a stream for the records.voidsetLang(String lang)The language of this genealogical data set.voidsetMetadata(Gedcomx metadata)Metadata about this record set; shared among all records in the set.voidsetRecords(List<Gedcomx> records)The records included in this genealogical data set.-
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, toString
-
-
-
-
Method Detail
-
id
public RecordSet 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 RecordSet extensionElement(Object element)
- Overrides:
extensionElementin classExtensibleData
-
link
public RecordSet link(String rel, URI href)
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
link
public RecordSet link(Link link)
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
getLang
public String getLang()
The language of this genealogical data set. See http://www.w3.org/International/articles/language-tags/. Note that some language-enabled elements MAY override the language.- Returns:
- The language of the genealogical data.
-
setLang
public void setLang(String lang)
The language of this genealogical data set. See http://www.w3.org/International/articles/language-tags/. Note that some language-enabled elements MAY override the language.- Parameters:
lang- The language of this genealogical data.
-
lang
public RecordSet lang(String lang)
Build out this record set with a lang.- Parameters:
lang- The lang.- Returns:
- this.
-
getMetadata
public Gedcomx getMetadata()
Metadata about this record set; shared among all records in the set.- Returns:
- Metadata about this record set; shared among all records in the set.
-
setMetadata
public void setMetadata(Gedcomx metadata)
Metadata about this record set; shared among all records in the set.- Parameters:
metadata- Metadata about this record set; shared among all records in the set.
-
metadata
public RecordSet metadata(Gedcomx metadata)
Build out this record set with metadata.- Parameters:
metadata- The metadata.- Returns:
- this.
-
records
public Stream<Gedcomx> records()
Create a stream for the records.- Returns:
- a stream for the records.
-
getRecords
public List<Gedcomx> getRecords()
The records included in this genealogical data set.- Returns:
- The records included in this genealogical data set.
-
setRecords
public void setRecords(List<Gedcomx> records)
The records included in this genealogical data set.- Parameters:
records- The records included in this genealogical data set.
-
-