Package org.gedcomx.records
Class Collection
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.records.Collection
- All Implemented Interfaces:
Attributable,HasTransientProperties,SupportsLinks,SupportsExtensionElements
A collection of genealogical resources.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(GedcomxModelVisitor visitor) Accept a visitor.voidaddContent(CollectionContent content) Add a reference to the record content values being used as evidence.attribution(Attribution attribution) Build out this collection with attribution.content(CollectionContent content) Build out this collection with content.voidembed(Collection collection) Embed another collection.extensionElement(Object element) Attribution metadata for this collection.Descriptions of the content of this collection.The list of identifiers for the source.getLang()The language of this description of the collection.getSize()The size of the collection, in terms of the number of items in this collection.getTitle()A title for the collection.Build up this object with an id.identifier(Identifier identifier) Build out this collection with an identifier.Create a stream for the identifiers.Build out this collection with a lang.Build up this data with a link.Build up this data with a link.voidsetAttribution(Attribution attribution) Attribution metadata for this collection.voidsetContent(List<CollectionContent> content) Descriptions of the content of this collection.voidsetIdentifiers(List<Identifier> identifiers) The list of identifiers of the source.voidThe language of this description of the collection.voidThe size of the collection, in terms of the number of items in this collection.voidA title for the collection.Build out this collection with size.Build out this collection with a title.Methods inherited from class org.gedcomx.links.HypermediaEnabledData
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksMethods inherited from class org.gedcomx.common.ExtensibleData
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString
-
Constructor Details
-
Collection
public Collection() -
Collection
-
-
Method Details
-
id
Description copied from class:ExtensibleDataBuild up this object with an id.- Overrides:
idin classExtensibleData- Parameters:
id- The id.- Returns:
- this.
-
extensionElement
- Overrides:
extensionElementin classExtensibleData
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
rel- The rel.href- The href.- Returns:
- this.
-
getLang
The language of this description of the collection. See http://www.w3.org/International/articles/language-tags/- Returns:
- The language of this description of the collection
-
setLang
The language of this description of the collection. See http://www.w3.org/International/articles/language-tags/- Parameters:
lang- The language of this description of the collection.
-
lang
Build out this collection with a lang.- Parameters:
lang- The lang.- Returns:
- this.
-
getTitle
A title for the collection.- Returns:
- A title for the collection.
-
setTitle
A title for the collection.- Parameters:
title- A title for the collection.
-
title
Build out this collection with a title.- Parameters:
title- the title.- Returns:
- this.
-
identifiers
Create a stream for the identifiers.- Returns:
- a stream for the identifiers.
-
getIdentifiers
The list of identifiers for the source.- Returns:
- The list of identifiers for the source.
-
setIdentifiers
The list of identifiers of the source.- Parameters:
identifiers- The list of identifiers of the source.
-
identifier
Build out this collection with an identifier.- Parameters:
identifier- the identifier.- Returns:
- this.
-
getContent
Descriptions of the content of this collection.- Returns:
- Descriptions of the content of this collection.
-
setContent
Descriptions of the content of this collection.- Parameters:
content- Descriptions of the content of this collection.
-
content
Build out this collection with content.- Parameters:
content- The content.- Returns:
- this.
-
addContent
Add a reference to the record content values being used as evidence.- Parameters:
content- The content to be added.
-
getAttribution
Attribution metadata for this collection.- Specified by:
getAttributionin interfaceAttributable- Returns:
- Attribution metadata for this collection.
-
setAttribution
Attribution metadata for this collection.- Specified by:
setAttributionin interfaceAttributable- Parameters:
attribution- Attribution metadata for this collection.
-
attribution
Build out this collection with attribution.- Parameters:
attribution- The attribution.- Returns:
- this.
-
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
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
Build out this collection with size.- Parameters:
size- the size.- Returns:
- this.
-
accept
Accept a visitor.- Parameters:
visitor- The visitor.
-
embed
Embed another collection.- Parameters:
collection- The collection to embed.
-