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 Summary
Constructors Constructor Description ExternalLinksGenerator(@NotNull String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description de.digitalcollections.iiif.model.sharedcanvas.Resource<de.digitalcollections.iiif.model.OtherContent>generateResource()Creates and returns a resource model.ExternalLinksGeneratorsetFormat(String format)Sets the optional format value.ExternalLinksGeneratorsetLabel(String label)Sets the optional label.ExternalLinksGeneratorsetType(String type)Sets the optional type.
-
-
-
Constructor Detail
-
ExternalLinksGenerator
public ExternalLinksGenerator(@NotNull @NotNull String identifier)
-
-
Method Detail
-
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:IIIFResourceCreates and returns a resource model.- Specified by:
generateResourcein interfaceIIIFResource- Returns:
- resource model
-
-