public class SearchHit extends Object
Describes a search hit on a single annotation or across multiple annotations.
See http://iiif.io/api/search/1.0/#search-api-specific-responses
| Constructor and Description |
|---|
SearchHit() |
| Modifier and Type | Method and Description |
|---|---|
SearchHit |
addAnnotation(Annotation first,
Annotation... rest) |
SearchHit |
addSelector(TextQuoteSelector first,
TextQuoteSelector... rest) |
String |
getAfter() |
List<Annotation> |
getAnnotations() |
String |
getBefore() |
String |
getMatch() |
List<TextQuoteSelector> |
getSelectors() |
void |
setAfter(String after) |
void |
setAnnotations(List<Annotation> annotations) |
void |
setBefore(String before) |
void |
setMatch(String match) |
void |
setSelectors(List<TextQuoteSelector> selectors) |
public final String TYPE
public List<Annotation> getAnnotations()
public void setAnnotations(List<Annotation> annotations)
public SearchHit addAnnotation(Annotation first, Annotation... rest)
public List<TextQuoteSelector> getSelectors()
public void setSelectors(List<TextQuoteSelector> selectors)
public SearchHit addSelector(TextQuoteSelector first, TextQuoteSelector... rest)
public String getMatch()
public void setMatch(String match)
public String getBefore()
public void setBefore(String before)
public String getAfter()
public void setAfter(String after)
Copyright © 2018. All rights reserved.