Class AnnotationList
- java.lang.Object
-
- de.digitalcollections.iiif.model.sharedcanvas.Resource<Annotation>
-
- de.digitalcollections.iiif.model.sharedcanvas.AnnotationList
-
- All Implemented Interfaces:
Pageable<AnnotationList>,Choice<Annotation>
- Direct Known Subclasses:
SearchResult
public class AnnotationList extends Resource<Annotation> implements Pageable<AnnotationList>
An ordered list of annotation lists.Layers allow higher level groupings of annotations to be recorded. For example, all of the English translation annotations of a medieval French document could be kept separate from the transcription or an edition in modern French.
May be paged, see http://iiif.io/api/presentation/2.1/#paging
See http://iiif.io/api/presentation/2.1/#annotation-list
-
-
Constructor Summary
Constructors Constructor Description AnnotationList(String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AnnotationListaddResource(Annotation first, Annotation... rest)AnnotationListgetNext()AnnotationListgetPrevious()List<Annotation>getResources()IntegergetStartIndex()StringgetType()voidsetNext(AnnotationList next)voidsetPrevious(AnnotationList previous)voidsetResources(List<Annotation> resources)voidsetStartIndex(int startIndex)-
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, getSupportedViewingHintTypes, 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
-
AnnotationList
public AnnotationList(String identifier)
-
-
Method Detail
-
getType
public String getType()
- Overrides:
getTypein classResource<Annotation>
-
getResources
public List<Annotation> getResources()
-
setResources
public void setResources(List<Annotation> resources)
-
addResource
public AnnotationList addResource(Annotation first, Annotation... rest)
-
getNext
public AnnotationList getNext()
- Specified by:
getNextin interfacePageable<AnnotationList>
-
setNext
public void setNext(AnnotationList next)
- Specified by:
setNextin interfacePageable<AnnotationList>
-
getPrevious
public AnnotationList getPrevious()
- Specified by:
getPreviousin interfacePageable<AnnotationList>
-
setPrevious
public void setPrevious(AnnotationList previous)
- Specified by:
setPreviousin interfacePageable<AnnotationList>
-
getStartIndex
public Integer getStartIndex()
- Specified by:
getStartIndexin interfacePageable<AnnotationList>
-
setStartIndex
public void setStartIndex(int startIndex)
- Specified by:
setStartIndexin interfacePageable<AnnotationList>
-
-