Class Layer
- java.lang.Object
-
- de.digitalcollections.iiif.model.sharedcanvas.Resource<Layer>
-
- de.digitalcollections.iiif.model.sharedcanvas.Layer
-
- All Implemented Interfaces:
PageContainer<AnnotationList>,Choice<Layer>
- Direct Known Subclasses:
SearchLayer
public class Layer extends Resource<Layer> implements PageContainer<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.
See http://iiif.io/api/presentation/2.1/#layer
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LayeraddOtherContent(AnnotationList first, AnnotationList... rest)LayeraddOtherContent(String first, String... rest)AnnotationListgetFirst()AnnotationListgetLast()List<AnnotationList>getOtherContent()IntegergetTotal()StringgetType()ViewingDirectiongetViewingDirection()voidsetFirst(AnnotationList first)voidsetLast(AnnotationList last)voidsetOtherContent(List<AnnotationList> otherContent)voidsetTotal(int total)voidsetViewingDirection(ViewingDirection viewingDirection)-
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
-
-
Method Detail
-
getViewingDirection
public ViewingDirection getViewingDirection()
-
setViewingDirection
public void setViewingDirection(ViewingDirection viewingDirection)
-
getOtherContent
public List<AnnotationList> getOtherContent()
-
setOtherContent
public void setOtherContent(List<AnnotationList> otherContent)
-
addOtherContent
public Layer addOtherContent(AnnotationList first, AnnotationList... rest)
-
getFirst
public AnnotationList getFirst()
- Specified by:
getFirstin interfacePageContainer<AnnotationList>
-
setFirst
public void setFirst(AnnotationList first)
- Specified by:
setFirstin interfacePageContainer<AnnotationList>
-
getLast
public AnnotationList getLast()
- Specified by:
getLastin interfacePageContainer<AnnotationList>
-
setLast
public void setLast(AnnotationList last)
- Specified by:
setLastin interfacePageContainer<AnnotationList>
-
getTotal
public Integer getTotal()
- Specified by:
getTotalin interfacePageContainer<AnnotationList>
-
setTotal
public void setTotal(int total)
- Specified by:
setTotalin interfacePageContainer<AnnotationList>
-
-