Package org.gedcomx.records
Class CollectionContent
java.lang.Object
org.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.records.CollectionContent
- All Implemented Interfaces:
HasTransientProperties,SupportsLinks,SupportsExtensionElements
A description of the content of a collection by resource type.
- Author:
- Ryan Heaton
-
Field Summary
Fields inherited from class org.gedcomx.common.ExtensibleData
extensionElements, transientProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompleteness(Float completeness) Build out this content with completeness.Build out this collection content with a count.extensionElement(Object element) A completeness factor for this content; i.e.getCount()The count of the items applicable to this content aspect.The type of resource being covered in this collection.The type of resource being covered in this collection.Build up this object with an id.Build up this data with a link.Build up this data with a link.resourceType(URI resourceType) Build out the content with a resource type.resourceType(ResourceType resourceType) Build out the content with a resource type.voidsetCompleteness(Float completeness) A completeness factor for this content; i.e.voidThe count of the items applicable to this content aspect.voidThe type of resource being covered in this collection.voidsetResourceType(URI resourceType) The type of resource being covered in this collection.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
-
CollectionContent
public CollectionContent() -
CollectionContent
-
-
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:
rel- The rel.href- The href.- Returns:
- this.
-
link
Description copied from class:HypermediaEnabledDataBuild up this data with a link.- Overrides:
linkin classHypermediaEnabledData- Parameters:
link- The link.- Returns:
- this.
-
getResourceType
The type of resource being covered in this collection.- Returns:
- The type of resource being covered in this collection.
-
setResourceType
The type of resource being covered in this collection.- Parameters:
resourceType- The type of resource being covered in this collection.
-
resourceType
Build out the content with a resource type.- Parameters:
resourceType- The resource type.- Returns:
- this.
-
resourceType
Build out the content with a resource type.- Parameters:
resourceType- The resource type.- Returns:
- this.
-
getKnownResourceType
The type of resource being covered in this collection.- Returns:
- The type of resource being covered in this collection.
-
setKnownResourceType
The type of resource being covered in this collection.- Parameters:
type- The type of resource being covered in this collection.
-
getCount
The count of the items applicable to this content aspect.- Returns:
- The count of the items applicable to this content aspect.
-
setCount
The count of the items applicable to this content aspect.- Parameters:
count- The count of the items applicable to this content aspect.
-
count
Build out this collection content with a count.- Parameters:
count- The count.- Returns:
- this.
-
getCompleteness
A completeness factor for this content; i.e. what percentage of the total number of items in the collection is included in this content aspect. The completeness factor is a value between 0 and 1.- Returns:
- A completeness factor for this content aspect, a value between 0 and 1.
-
setCompleteness
A completeness factor for this content; i.e. what percentage of the total number of items in the collection is included in this content aspect. The completeness factor is a value between 0 and 1.- Parameters:
completeness- A completeness factor for this content aspect, a value between 0 and 1.
-
completeness
Build out this content with completeness.- Parameters:
completeness- The completeness.- Returns:
- this.
-