Class ImageContentGenerator
java.lang.Object
org.dspace.app.iiif.model.generator.ImageContentGenerator
- All Implemented Interfaces:
IIIFResource
This service generator wraps the image content model.
Presentation API version 2.1.1: The ImageContent entity is contained in the "resource"
field of annotations with motivation "sc:painting". Image resources, and only image resources,
are included in the image's property of the canvas. This changes in API version 3.0.
- Author:
- Michael Spalti mspalti@willamette.edu, Andrea Bollini (andrea.bollini at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddService(ImageServiceGenerator imageService) Adds the IIIF image service annotation.de.digitalcollections.iiif.model.sharedcanvas.Resource<de.digitalcollections.iiif.model.ImageContent>Creates and returns a resource model.Sets the optional mimetype.
-
Constructor Details
-
ImageContentGenerator
-
-
Method Details
-
setFormat
Sets the optional mimetype.- Parameters:
mimetype-
-
addService
Adds the IIIF image service annotation.- Parameters:
imageService-
-
generateResource
public de.digitalcollections.iiif.model.sharedcanvas.Resource<de.digitalcollections.iiif.model.ImageContent> generateResource()Description copied from interface:IIIFResourceCreates and returns a resource model.- Specified by:
generateResourcein interfaceIIIFResource- Returns:
- resource model
-