Class Collection
- java.lang.Object
-
- de.digitalcollections.iiif.model.sharedcanvas.Resource<Collection>
-
- de.digitalcollections.iiif.model.sharedcanvas.Collection
-
- All Implemented Interfaces:
Pageable<Collection>,PageContainer<Collection>,Choice<Collection>
public class Collection extends Resource<Collection> 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.
See http://iiif.io/api/presentation/2.1/#collection
-
-
Constructor Summary
Constructors Constructor Description Collection(String identifier)Collection(String identifier, String label)Collection(URI identifier, PropertyValue label)
-
Method Summary
-
Methods inherited from class de.digitalcollections.iiif.model.sharedcanvas.Resource
addAttribution, addDescription, addLabel, addLicense, addLogo, addLogo, addMetadata, addMetadata, addRelated, addRendering, addSeeAlso, addService, addThumbnail, addViewingHint, addWithin, getAlternatives, getAttribution, getAttributionString, getDescription, getDescriptionString, getFirstLicense, getIdentifier, getLabel, getLabelString, getLicenses, getLogos, getLogoUri, getMetadata, getRelated, getRenderings, getSeeAlso, getServices, getThumbnail, getThumbnails, getViewingHints, getWithin, isDefaultChoice, setAlternatives, setAttribution, setDescription, setIdentifier, setIsDefaultChoice, setLabel, setLicenses, setLogos, setRelated, setRenderings, setSeeAlso, setServices, setThumbnails, setViewingHints, setWithin, toString, verifyRendering
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.digitalcollections.iiif.model.openannotation.Choice
addAlternative
-
-
-
-
Field Detail
-
TYPE
public static final String TYPE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Collection
public Collection(String identifier)
-
Collection
public Collection(URI identifier, PropertyValue label)
-
-
Method Detail
-
getType
public String getType()
- Overrides:
getTypein classResource<Collection>
-
getSupportedViewingHintTypes
public Set<ViewingHint.Type> getSupportedViewingHintTypes()
- Overrides:
getSupportedViewingHintTypesin classResource<Collection>
-
getCollections
public List<Collection> getCollections()
-
setCollections
public void setCollections(List<Collection> collections)
-
addCollection
public Collection addCollection(Collection first, Collection... rest)
-
addManifest
public Collection addManifest(Manifest first, Manifest... rest)
-
setMembers
public void setMembers(List<Resource> members)
Set the list of member resources. Must be either instances ofManifestorCollection. AllCollectionmembers must have at least oneViewingHint.- Parameters:
members- member resources- Throws:
IllegalArgumentException- if at least one member is not aManifestorCollectionor is aCollectionand does not have at least oneViewingHint
-
addMember
public Collection addMember(Resource first, Resource... rest)
Adds one or more member resources. Must be either instances ofManifestorCollection. AllCollectionmembers must have at least oneViewingHint.- Parameters:
first- first memberrest- other members- Returns:
- this collection with added members
- Throws:
IllegalArgumentException- if at least one member is not aManifestorCollectionor is aCollectionand does not have at least oneViewingHint
-
getNavDate
public OffsetDateTime getNavDate()
-
setNavDate
public void setNavDate(OffsetDateTime navDate)
-
getFirst
public Collection getFirst()
- Specified by:
getFirstin interfacePageContainer<Collection>
-
setFirst
public void setFirst(Collection first)
- Specified by:
setFirstin interfacePageContainer<Collection>
-
getLast
public Collection getLast()
- Specified by:
getLastin interfacePageContainer<Collection>
-
setLast
public void setLast(Collection last)
- Specified by:
setLastin interfacePageContainer<Collection>
-
getTotal
public Integer getTotal()
- Specified by:
getTotalin interfacePageContainer<Collection>
-
setTotal
public void setTotal(int total)
- Specified by:
setTotalin interfacePageContainer<Collection>
-
getNext
public Collection getNext()
- Specified by:
getNextin interfacePageable<Collection>
-
setNext
public void setNext(Collection next)
- Specified by:
setNextin interfacePageable<Collection>
-
getPrevious
public Collection getPrevious()
- Specified by:
getPreviousin interfacePageable<Collection>
-
setPrevious
public void setPrevious(Collection previous)
- Specified by:
setPreviousin interfacePageable<Collection>
-
getStartIndex
public Integer getStartIndex()
- Specified by:
getStartIndexin interfacePageable<Collection>
-
setStartIndex
public void setStartIndex(int startIndex)
- Specified by:
setStartIndexin interfacePageable<Collection>
-
-