package de.digitalcollections.iiif.presentation.model.impl.v2; import de.digitalcollections.iiif.presentation.model.api.v2.PropertyValue; import de.digitalcollections.iiif.presentation.model.api.v2.Range; import de.digitalcollections.iiif.presentation.model.api.v2.Metadata; import de.digitalcollections.iiif.presentation.model.api.v2.Thumbnail; import java.net.URI; import java.util.List; public class RangeImpl extends AbstractIiifResourceImpl implements Range { private PropertyValue description; // optional private PropertyValue label; // required private List<Metadata> metadata; // optional private String startCanvas; // optional private Thumbnail thumbnail; // optional private String viewingDirection; // optional private String viewingHint; // optional private List<String> canvases; private List<String> ranges; public RangeImpl(URI id, PropertyValue label) { assert id != null; assert label != null; this.id = id; this.label = label; type = "sc:Range"; } public RangeImpl() { this.label = null; type = "sc:Range"; } @Override public PropertyValue getDescription() { return description; } @Override public void setDescription(PropertyValue description) { this.description = description; } @Override public PropertyValue getLabel() { return label; } @Override public void setLabel(PropertyValue label) { this.label = label; } @Override public List<Metadata> getMetadata() { return metadata; } @Override public void setMetadata(List<Metadata> metadata) { this.metadata = metadata; } @Override public String getStartCanvas() { return startCanvas; } @Override public void setStartCanvas(String startCanvas) { this.startCanvas = startCanvas; } @Override public Thumbnail getThumbnail() { return thumbnail; } @Override public void setThumbnail(Thumbnail thumbnail) { this.thumbnail = thumbnail; } @Override public String getViewingDirection() { return viewingDirection; } @Override public void setViewingDirection(String viewingDirection) { this.viewingDirection = viewingDirection; } @Override public String getViewingHint() { return viewingHint; } @Override public void setViewingHint(String viewingHint) { this.viewingHint = viewingHint; } @Override public List<String> getCanvases() { return canvases; } @Override public void setCanvases(List<String> canvases) { this.canvases = canvases; } @Override public List<String> getRanges() { return ranges; } @Override public void setRanges(List<String> ranges) { this.ranges = ranges; } }