Class Collection

    • Constructor Detail

      • Collection

        public Collection()
    • Method Detail

      • lang

        public Collection lang​(String lang)
        Build out this collection with a lang.
        Parameters:
        lang - The lang.
        Returns:
        this.
      • getTitle

        public String getTitle()
        A title for the collection.
        Returns:
        A title for the collection.
      • setTitle

        public void setTitle​(String title)
        A title for the collection.
        Parameters:
        title - A title for the collection.
      • title

        public Collection title​(String title)
        Build out this collection with a title.
        Parameters:
        title - the title.
        Returns:
        this.
      • identifiers

        public Stream<Identifier> identifiers()
        Create a stream for the identifiers.
        Returns:
        a stream for the identifiers.
      • getIdentifiers

        public List<Identifier> getIdentifiers()
        The list of identifiers for the source.
        Returns:
        The list of identifiers for the source.
      • setIdentifiers

        public void setIdentifiers​(List<Identifier> identifiers)
        The list of identifiers of the source.
        Parameters:
        identifiers - The list of identifiers of the source.
      • identifier

        public Collection identifier​(Identifier identifier)
        Build out this collection with an identifier.
        Parameters:
        identifier - the identifier.
        Returns:
        this.
      • getContent

        public List<CollectionContent> getContent()
        Descriptions of the content of this collection.
        Returns:
        Descriptions of the content of this collection.
      • setContent

        public void setContent​(List<CollectionContent> content)
        Descriptions of the content of this collection.
        Parameters:
        content - Descriptions of the content of this collection.
      • content

        public Collection content​(CollectionContent content)
        Build out this collection with content.
        Parameters:
        content - The content.
        Returns:
        this.
      • addContent

        public void addContent​(CollectionContent content)
        Add a reference to the record content values being used as evidence.
        Parameters:
        content - The content to be added.
      • getAttribution

        public Attribution getAttribution()
        Attribution metadata for this collection.
        Specified by:
        getAttribution in interface Attributable
        Returns:
        Attribution metadata for this collection.
      • setAttribution

        public void setAttribution​(Attribution attribution)
        Attribution metadata for this collection.
        Specified by:
        setAttribution in interface Attributable
        Parameters:
        attribution - Attribution metadata for this collection.
      • attribution

        public Collection attribution​(Attribution attribution)
        Build out this collection with attribution.
        Parameters:
        attribution - The attribution.
        Returns:
        this.
      • getSize

        public Integer getSize()
        The size of the collection, in terms of the number of items in this collection.
        Returns:
        The size of the collection, in terms of the number of items in this collection.
      • setSize

        public void setSize​(Integer size)
        The size of the collection, in terms of the number of items in this collection.
        Parameters:
        size - The size of the collection, in terms of the number of items in this collection.
      • size

        public Collection size​(Integer size)
        Build out this collection with size.
        Parameters:
        size - the size.
        Returns:
        this.
      • accept

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

        public void embed​(Collection collection)
        Embed another collection.
        Parameters:
        collection - The collection to embed.