Class ImageContentGenerator
- java.lang.Object
-
- org.dspace.app.iiif.model.generator.ImageContentGenerator
-
- All Implemented Interfaces:
IIIFResource
public class ImageContentGenerator extends Object implements 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 Constructor Description ImageContentGenerator(@NotNull String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageContentGeneratoraddService(ImageServiceGenerator imageService)Adds the IIIF image service annotation.de.digitalcollections.iiif.model.sharedcanvas.Resource<de.digitalcollections.iiif.model.ImageContent>generateResource()Creates and returns a resource model.ImageContentGeneratorsetFormat(String mimetype)Sets the optional mimetype.
-
-
-
Constructor Detail
-
ImageContentGenerator
public ImageContentGenerator(@NotNull @NotNull String identifier)
-
-
Method Detail
-
setFormat
public ImageContentGenerator setFormat(String mimetype)
Sets the optional mimetype.- Parameters:
mimetype-
-
addService
public ImageContentGenerator addService(ImageServiceGenerator imageService)
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
-
-