Class RecordDescriptor

All Implemented Interfaces:
HasTransientProperties, SupportsLinks, SupportsExtensionElements

public class RecordDescriptor extends HypermediaEnabledData
A descriptor for a common set of records.
Author:
Ryan Heaton
  • Constructor Details

    • RecordDescriptor

      public RecordDescriptor()
    • RecordDescriptor

      public RecordDescriptor(RecordDescriptor copy)
  • Method Details

    • getLang

      public String getLang()
      The language of this record description. See http://www.w3.org/International/articles/language-tags/
      Returns:
      The language of this record description.
    • setLang

      public void setLang(String lang)
      The language of this record description. See http://www.w3.org/International/articles/language-tags/
      Parameters:
      lang - The language of this record description.
    • fields

      public Stream<FieldDescriptor> fields()
      Create a stream for the fields.
      Returns:
      a stream for the fields.
    • getFields

      public List<FieldDescriptor> getFields()
      Descriptors of the fields that are applicable to this record.
      Returns:
      Descriptors of the fields that are applicable to this record.
    • setFields

      public void setFields(List<FieldDescriptor> fields)
      Descriptors of the fields that are applicable to this record.
      Parameters:
      fields - Descriptors of the fields that are applicable to this record.
    • accept

      public void accept(GedcomxModelVisitor visitor)
      Accept a visitor.
      Parameters:
      visitor - The visitor.
    • embed

      public void embed(RecordDescriptor recordDescriptor)
      Embed another record descriptor.
      Parameters:
      recordDescriptor - The descriptor to embed.