public class CollectionContent extends HypermediaEnabledData
extensionElements, transientProperties| Constructor and Description |
|---|
CollectionContent() |
| Modifier and Type | Method and Description |
|---|---|
CollectionContent |
completeness(Float completeness)
Build out this content with completeness.
|
CollectionContent |
count(Integer count)
Build out this collection content with a count.
|
CollectionContent |
extensionElement(Object element) |
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.
|
addLink, addLink, addTemplatedLink, embed, getLink, getLinks, getLinks, setLinksaddExtensionElement, embed, findExtensionOfType, findExtensionOfType, findExtensionsOfType, findExtensionsOfType, getExtensionElements, getId, getTransientProperties, getTransientProperty, removeExtensionElements, setExtensionElement, setExtensionElements, setId, setTransientProperty, toStringpublic CollectionContent id(String id)
ExtensibleDataid in class ExtensibleDataid - The id.public CollectionContent extensionElement(Object element)
extensionElement in class ExtensibleDatapublic CollectionContent link(String rel, URI href)
HypermediaEnabledDatalink in class HypermediaEnabledDatarel - The rel.href - The href.public CollectionContent link(Link link)
HypermediaEnabledDatalink 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.Copyright © 2016. All rights reserved.