Class ExternalLinksGenerator

java.lang.Object
org.dspace.app.iiif.model.generator.ExternalLinksGenerator
All Implemented Interfaces:
IIIFResource

public class ExternalLinksGenerator extends Object implements IIIFResource
This generator wraps the other content domain model. This is the type for related content resources. Used in the "related", "renderings" and "seeAlso" fields of IIIF resources.
  • Constructor Details

    • ExternalLinksGenerator

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

    • setFormat

      public ExternalLinksGenerator setFormat(String format)
      Sets the optional format value.
      Parameters:
      format - the mimetype
    • setLabel

      public ExternalLinksGenerator setLabel(String label)
      Sets the optional label.
      Parameters:
      label - annotation label
    • setType

      public ExternalLinksGenerator setType(String type)
      Sets the optional type.
      Parameters:
      type - the annotation type
    • generateResource

      public de.digitalcollections.iiif.model.sharedcanvas.Resource<de.digitalcollections.iiif.model.OtherContent> generateResource()
      Description copied from interface: IIIFResource
      Creates and returns a resource model.
      Specified by:
      generateResource in interface IIIFResource
      Returns:
      resource model