public class Collection extends Resource implements Pageable<Collection>, PageContainer<Collection>
An ordered list of manifests, and/or further collections.
Collections allow easy advertising and browsing of the manifests in a hierarchical structure, potentially with its own descriptive information. They can also provide clients with a means to locate all of the manifests known to the publishing institution.
| Constructor and Description |
|---|
Collection(String identifier) |
Collection(String identifier,
String label) |
Collection(URI identifier,
PropertyValue label) |
| Modifier and Type | Method and Description |
|---|---|
Collection |
addCollection(Collection first,
Collection... rest) |
Collection |
addManifest(Manifest first,
Manifest... rest) |
Collection |
addMember(Resource first,
Resource... rest) |
List<Collection> |
getCollections() |
Collection |
getFirst() |
Collection |
getLast() |
List<Manifest> |
getManifests() |
List<Resource> |
getMembers() |
OffsetDateTime |
getNavDate() |
Collection |
getNext() |
Collection |
getPrevious() |
Integer |
getStartIndex() |
Set<ViewingHint.Type> |
getSupportedViewingHintTypes() |
Integer |
getTotal() |
String |
getType() |
void |
setCollections(List<Collection> collections) |
void |
setFirst(Collection first) |
void |
setLast(Collection last) |
void |
setManifests(List<Manifest> manifests) |
void |
setMembers(List<Resource> members) |
void |
setNavDate(OffsetDateTime navDate) |
void |
setNext(Collection next) |
void |
setPrevious(Collection previous) |
void |
setStartIndex(int startIndex) |
void |
setTotal(int total) |
addAttribution, addDescription, addLabel, addLicense, addLogo, addLogo, addMetadata, addMetadata, addRelated, addRendering, addSeeAlso, addService, addThumbnail, addViewingHint, addWithin, getAttribution, getAttributionString, getDescription, getDescriptionString, getFirstLicense, getIdentifier, getLabel, getLabelString, getLicenses, getLogos, getLogoUri, getMetadata, getRelated, getRenderings, getSeeAlso, getServices, getThumbnail, getThumbnails, getViewingHints, getWithin, setAttribution, setDescription, setIdentifier, setLabel, setLicenses, setLogos, setRelated, setRenderings, setSeeAlso, setServices, setThumbnails, setViewingHints, setWithin, toString, verifyRenderingpublic static final String TYPE
public Collection(String identifier)
public Collection(URI identifier, PropertyValue label)
public Set<ViewingHint.Type> getSupportedViewingHintTypes()
getSupportedViewingHintTypes in class Resourcepublic List<Collection> getCollections()
public void setCollections(List<Collection> collections)
public Collection addCollection(Collection first, Collection... rest)
public Collection addManifest(Manifest first, Manifest... rest)
public Collection addMember(Resource first, Resource... rest)
public OffsetDateTime getNavDate()
public void setNavDate(OffsetDateTime navDate)
public Collection getFirst()
getFirst in interface PageContainer<Collection>public void setFirst(Collection first)
setFirst in interface PageContainer<Collection>public Collection getLast()
getLast in interface PageContainer<Collection>public void setLast(Collection last)
setLast in interface PageContainer<Collection>public Integer getTotal()
getTotal in interface PageContainer<Collection>public void setTotal(int total)
setTotal in interface PageContainer<Collection>public Collection getNext()
getNext in interface Pageable<Collection>public void setNext(Collection next)
setNext in interface Pageable<Collection>public Collection getPrevious()
getPrevious in interface Pageable<Collection>public void setPrevious(Collection previous)
setPrevious in interface Pageable<Collection>public Integer getStartIndex()
getStartIndex in interface Pageable<Collection>public void setStartIndex(int startIndex)
setStartIndex in interface Pageable<Collection>Copyright © 2017. All rights reserved.