public interface Content extends IiifResource
Content resources such as images or texts that are associated with a canvas.
| Modifier and Type | Method and Description |
|---|---|
PropertyValue |
getDescription() |
String |
getFormat() |
int |
getHeight() |
List<Metadata> |
getMetadata() |
Thumbnail |
getThumbnail() |
String |
getViewingHint() |
int |
getWidth() |
void |
setDescription(PropertyValue description) |
void |
setFormat(String format) |
void |
setHeight(int height) |
void |
setMetadata(List<Metadata> metadata) |
void |
setThumbnail(Thumbnail thumbnail) |
void |
setViewingHint(String viewingHint) |
void |
setWidth(int width) |
addService, getAttribution, getId, getLicense, getLogo, getRelated, getRendering, getSeeAlso, getServices, getType, getWithin, setAttribution, setId, setId, setLicense, setLogo, setRelated, setRendering, setSeeAlso, setServices, setWithinPropertyValue getDescription()
void setDescription(PropertyValue description)
description - A content resource may have a description.String getFormat()
void setFormat(String format)
format - The specific media type (often called a MIME type) of a content resource, for example “image/jpeg”.
This is important for distinguishing text in XML from plain text, for example. A content resource may have a
format, and if so, it must be the value of the Content-Type header returned when the resource is dereferenced. N.B.
This is different to the formats property in the Image API, which gives the extension to use within that API. It
would be inappropriate to use in this case, as format can be used with any content resource, not just images.int getHeight()
void setHeight(int height)
height - The height of a canvas or image resource. For images, this is in pixels. No particular units are
required for canvases, as the dimensions provide an aspect ratio for the resources to be located within rather than
measuring any physical property of the object. Content resources may have a height, given in pixels, if
appropriate.void setMetadata(List<Metadata> metadata)
metadata - A content resource may have metadata pairs associated with it.Thumbnail getThumbnail()
void setThumbnail(Thumbnail thumbnail)
thumbnail - A content resource may have a thumbnail and should have a thumbnail if it is an option in a choice
of resources.String getViewingHint()
void setViewingHint(String viewingHint)
viewingHint - A content resource may have a viewing hint but there are no defined values in this
specification.int getWidth()
void setWidth(int width)
width - The width of a canvas or image resource. For images, this is in pixels. No particular units are
required for canvases. Content resources may have a height, given in pixels, if appropriate.Copyright © 2017. All rights reserved.