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 Details

    • ImageContentGenerator

      public ImageContentGenerator(@NotNull @NotNull String identifier)
  • Method Details

    • 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: IIIFResource
      Creates and returns a resource model.
      Specified by:
      generateResource in interface IIIFResource
      Returns:
      resource model