Class SearchResult
- java.lang.Object
-
- de.digitalcollections.iiif.model.sharedcanvas.Resource<Annotation>
-
- de.digitalcollections.iiif.model.sharedcanvas.AnnotationList
-
- de.digitalcollections.iiif.model.search.SearchResult
-
- All Implemented Interfaces:
Pageable<AnnotationList>,Choice<Annotation>
public class SearchResult extends AnnotationList
An AnnotationList that contains hits for a given search query.See http://iiif.io/api/search/1.0/#simple-lists
-
-
Constructor Summary
Constructors Constructor Description SearchResult(String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchResultaddHit(SearchHit first, SearchHit... rest)SearchResultaddWithin(Resource first, Resource... rest)Add a new containing resource.List<String>getContext()List<SearchHit>getHits()SearchResultgetNext()SearchResultgetPrevious()voidsetHits(List<SearchHit> hits)voidsetNext(SearchResult next)voidsetPrevious(SearchResult previous)voidsetWithin(List<Resource> within)Set the list of containing resources.-
Methods inherited from class de.digitalcollections.iiif.model.sharedcanvas.AnnotationList
addResource, getResources, getStartIndex, getType, setNext, setPrevious, setResources, setStartIndex
-
Methods inherited from class de.digitalcollections.iiif.model.sharedcanvas.Resource
addAttribution, addDescription, addLabel, addLicense, addLogo, addLogo, addMetadata, addMetadata, addRelated, addRendering, addSeeAlso, addService, addThumbnail, addViewingHint, getAlternatives, getAttribution, getAttributionString, getDescription, getDescriptionString, getFirstLicense, getIdentifier, getLabel, getLabelString, getLicenses, getLogos, getLogoUri, getMetadata, getRelated, getRenderings, getSeeAlso, getServices, getSupportedViewingHintTypes, getThumbnail, getThumbnails, getViewingHints, getWithin, isDefaultChoice, setAlternatives, setAttribution, setDescription, setIdentifier, setIsDefaultChoice, setLabel, setLicenses, setLogos, setRelated, setRenderings, setSeeAlso, setServices, setThumbnails, setViewingHints, toString, verifyRendering
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.digitalcollections.iiif.model.openannotation.Choice
addAlternative
-
-
-
-
Field Detail
-
CONTEXT
public static final String CONTEXT
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SearchResult
public SearchResult(String identifier)
-
-
Method Detail
-
addHit
public SearchResult addHit(SearchHit first, SearchHit... rest)
-
setWithin
public void setWithin(List<Resource> within) throws IllegalArgumentException
Set the list of containing resources. Must all be instances ofSearchLayer- Overrides:
setWithinin classResource<Annotation>- Throws:
IllegalArgumentException- if at least one of the resources is not aSearchLayer
-
addWithin
public SearchResult addWithin(Resource first, Resource... rest) throws IllegalArgumentException
Add a new containing resource. Must be an instance ofSearchLayer- Overrides:
addWithinin classResource<Annotation>- Throws:
IllegalArgumentException- if the resource is not aSearchLayer
-
getNext
public SearchResult getNext()
- Specified by:
getNextin interfacePageable<AnnotationList>- Overrides:
getNextin classAnnotationList
-
setNext
public void setNext(SearchResult next)
-
getPrevious
public SearchResult getPrevious()
- Specified by:
getPreviousin interfacePageable<AnnotationList>- Overrides:
getPreviousin classAnnotationList
-
setPrevious
public void setPrevious(SearchResult previous)
-
-