Class SearchHit
- java.lang.Object
-
- de.digitalcollections.iiif.model.search.SearchHit
-
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 Summary
Constructors Constructor Description SearchHit()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SearchHitaddAnnotation(Annotation first, Annotation... rest)SearchHitaddSelector(TextQuoteSelector first, TextQuoteSelector... rest)StringgetAfter()List<Annotation>getAnnotations()StringgetBefore()StringgetMatch()List<TextQuoteSelector>getSelectors()voidsetAfter(String after)voidsetAnnotations(List<Annotation> annotations)voidsetBefore(String before)voidsetMatch(String match)voidsetSelectors(List<TextQuoteSelector> selectors)
-
-
-
Field Detail
-
TYPE
public final String TYPE
- See Also:
- Constant Field Values
-
-
Method Detail
-
getAnnotations
public List<Annotation> getAnnotations()
-
setAnnotations
public void setAnnotations(List<Annotation> annotations)
-
addAnnotation
public SearchHit addAnnotation(Annotation first, Annotation... rest)
-
getSelectors
public List<TextQuoteSelector> getSelectors()
-
setSelectors
public void setSelectors(List<TextQuoteSelector> selectors)
-
addSelector
public SearchHit addSelector(TextQuoteSelector first, TextQuoteSelector... rest)
-
getMatch
public String getMatch()
-
setMatch
public void setMatch(String match)
-
getBefore
public String getBefore()
-
setBefore
public void setBefore(String before)
-
getAfter
public String getAfter()
-
setAfter
public void setAfter(String after)
-
-