public abstract class AbstractHit<T> extends Object implements Hit<T>
| Modifier and Type | Field and Description |
|---|---|
protected RenderContext |
context |
protected T |
resource |
| Constructor and Description |
|---|
AbstractHit(T resource,
RenderContext context)
Initializes an instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
RenderContext |
getContext() |
String |
getLinkTemplateType() |
String |
getQueryParameter() |
T |
getRawHit()
Returns the raw hit object.
|
float |
getScore()
Returns the hit score.
|
int |
hashCode() |
void |
setLinkTemplateType(String linkTemplateType) |
void |
setQueryParameter(String queryParameter) |
void |
setScore(float score) |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitgetContentType, getCreated, getCreatedBy, getExcerpt, getLastModified, getLastModifiedBy, getLink, getTitle, getType, getUsagesprotected T resource
protected RenderContext context
public AbstractHit(T resource, RenderContext context)
resource - search result item to be wrappedcontext - public float getScore()
Hitpublic RenderContext getContext()
public void setScore(float score)
public String getQueryParameter()
public void setQueryParameter(String queryParameter)
public String getLinkTemplateType()
public void setLinkTemplateType(String linkTemplateType)
Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.