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) |
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 void setMembers(List<Resource> members)
Set the list of member resources. Must be either instances of Manifest or Collection. All Collection members must have at least one ViewingHint.
IllegalArgumentException - if at least one member is not a Manifest or Collection or is a Collection and does not have at least one ViewingHintpublic Collection addMember(Resource first, Resource... rest)
Adds one or more member resources. Must be either instances of Manifest or Collection. All Collection members must have at least one ViewingHint.
IllegalArgumentException - if at least one member is not a Manifest or Collection or is a Collection and does not have at least one ViewingHintpublic 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 © 2018. All rights reserved.