Class 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
  • Constructor Details

    • RecordSet

      public RecordSet()
    • RecordSet

      public RecordSet(RecordSet copy)
  • Method Details

    • id

      public RecordSet id(String id)
      Description copied from class: ExtensibleData
      Build up this object with an id.
      Overrides:
      id in class ExtensibleData
      Parameters:
      id - The id.
      Returns:
      this.
    • extensionElement

      public RecordSet extensionElement(Object element)
      Overrides:
      extensionElement in class ExtensibleData
    • link

      public RecordSet link(String rel, URI href)
      Description copied from class: HypermediaEnabledData
      Build up this data with a link.
      Overrides:
      link in class HypermediaEnabledData
      Parameters:
      rel - The rel.
      href - The href.
      Returns:
      this.
    • link

      public RecordSet link(Link link)
      Description copied from class: HypermediaEnabledData
      Build up this data with a link.
      Overrides:
      link in class HypermediaEnabledData
      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.
    • record

      public RecordSet record(Gedcomx record)
      Build out this record set with a record.
      Parameters:
      record - The record.
      Returns:
      this.