public class SearchResult extends AnnotationList
An AnnotationList that contains hits for a given search query.
| Modifier and Type | Field and Description |
|---|---|
static String |
CONTEXT |
TYPE| Constructor and Description |
|---|
SearchResult(String identifier) |
| Modifier and Type | Method and Description |
|---|---|
SearchResult |
addHit(SearchHit first,
SearchHit... rest) |
Resource |
addWithin(Resource first,
Resource... rest)
Add a new containing resource.
|
List<String> |
getContext() |
List<SearchHit> |
getHits() |
SearchResult |
getNext() |
SearchResult |
getPrevious() |
void |
setHits(List<SearchHit> hits) |
void |
setNext(SearchResult next) |
void |
setPrevious(SearchResult previous) |
void |
setWithin(List<Resource> within)
Set the list of containing resources.
|
addResource, getResources, getStartIndex, getType, setNext, setPrevious, setResources, setStartIndexaddAttribution, addDescription, addLabel, addLicense, addLogo, addLogo, addMetadata, addMetadata, addRelated, addRendering, addSeeAlso, addService, addThumbnail, addViewingHint, getAttribution, getAttributionString, getDescription, getDescriptionString, getFirstLicense, getIdentifier, getLabel, getLabelString, getLicenses, getLogos, getLogoUri, getMetadata, getRelated, getRenderings, getSeeAlso, getServices, getSupportedViewingHintTypes, getThumbnail, getThumbnails, getViewingHints, getWithin, setAttribution, setDescription, setIdentifier, setLabel, setLicenses, setLogos, setRelated, setRenderings, setSeeAlso, setServices, setThumbnails, setViewingHints, toString, verifyRenderingpublic static final String CONTEXT
public SearchResult(String identifier)
public SearchResult addHit(SearchHit first, SearchHit... rest)
public void setWithin(List<Resource> within) throws IllegalArgumentException
Set the list of containing resources. Must all be instances of SearchLayer
setWithin in class ResourceIllegalArgumentException - if at least one of the resources is not a SearchLayerpublic Resource addWithin(Resource first, Resource... rest) throws IllegalArgumentException
Add a new containing resource. Must be an instance of SearchLayer
addWithin in class ResourceIllegalArgumentException - if the resource is not a SearchLayerpublic SearchResult getNext()
getNext in interface Pageable<AnnotationList>getNext in class AnnotationListpublic void setNext(SearchResult next)
public SearchResult getPrevious()
getPrevious in interface Pageable<AnnotationList>getPrevious in class AnnotationListpublic void setPrevious(SearchResult previous)
Copyright © 2018. All rights reserved.