|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.common.ExtensibleData
org.gedcomx.links.HypermediaEnabledData
org.gedcomx.records.CollectionContent
public class CollectionContent
A description of the content of a collection by resource type.
| Field Summary |
|---|
| Fields inherited from class org.gedcomx.common.ExtensibleData |
|---|
extensionElements, transientProperties |
| Constructor Summary | |
|---|---|
CollectionContent()
|
|
| Method Summary | |
|---|---|
CollectionContent |
completeness(Float completeness)
Build out this content with completeness. |
CollectionContent |
count(Integer count)
Build out this collection content with a count. |
Float |
getCompleteness()
A completeness factor for this content; i.e. |
Integer |
getCount()
The count of the items applicable to this content aspect. |
ResourceType |
getKnownResourceType()
The type of resource being covered in this collection. |
URI |
getResourceType()
The type of resource being covered in this collection. |
CollectionContent |
id(String id)
Build up this object with an id. |
CollectionContent |
link(Link link)
Build up this data with a link. |
CollectionContent |
link(String rel,
URI href)
Build up this data with a link. |
CollectionContent |
resourceType(ResourceType resourceType)
Build out the content with a resource type. |
CollectionContent |
resourceType(URI resourceType)
Build out the content with a resource type. |
void |
setCompleteness(Float completeness)
A completeness factor for this content; i.e. |
void |
setCount(Integer count)
The count of the items applicable to this content aspect. |
void |
setKnownResourceType(ResourceType type)
The type of resource being covered in this collection. |
void |
setResourceType(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, setLinks |
| Methods inherited from class org.gedcomx.common.ExtensibleData |
|---|
addExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CollectionContent()
| Method Detail |
|---|
public CollectionContent id(String id)
ExtensibleData
id in class ExtensibleDataid - The id.
public CollectionContent link(String rel,
URI href)
HypermediaEnabledData
link in class HypermediaEnabledDatarel - The rel.href - The href.
public CollectionContent link(Link link)
HypermediaEnabledData
link in class HypermediaEnabledDatalink - The link.
public URI getResourceType()
public void setResourceType(URI resourceType)
resourceType - The type of resource being covered in this collection.public CollectionContent resourceType(URI resourceType)
resourceType - The resource type.
public CollectionContent resourceType(ResourceType resourceType)
resourceType - The resource type.
public ResourceType getKnownResourceType()
public void setKnownResourceType(ResourceType type)
type - The type of resource being covered in this collection.public Integer getCount()
public void setCount(Integer count)
count - The count of the items applicable to this content aspect.public CollectionContent count(Integer count)
count - The count.
public Float getCompleteness()
public void setCompleteness(Float completeness)
completeness - A completeness factor for this content aspect, a value between 0 and 1.public CollectionContent completeness(Float completeness)
completeness - The completeness.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||