|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.search.api.helper.HighlightInfo
public class HighlightInfo
wrapper for highlight information annotations.
| Constructor Summary | |
|---|---|
HighlightInfo(java.lang.String attributeName,
Annotation annotation)
create instance from data. |
|
| Method Summary | |
|---|---|
java.lang.String |
getAttributeName()
|
java.lang.Integer |
getEndPos(int index)
get end character position property of n'th highlight position. |
java.lang.String |
getMethod(int index)
get method property of n'th highlight position. |
java.lang.String |
getProperty(int index,
java.lang.String name)
get named property of n'th highlight position. |
java.lang.String |
getProperty(java.lang.String name)
access named value of highlight annotation. |
java.lang.Double |
getQuality(int index)
get quality property of n'th highlight position. |
java.lang.Integer |
getQueryGroup(int index)
get group property of n'th highlight position. |
Annotation |
getSource()
access to original object. |
java.lang.Integer |
getStartPos(int index)
get start character position property of n'th highlight position. |
java.lang.String |
getText()
access text property of highlight annotation. |
boolean |
isHighlighted()
check if the text property contains already highlighted text, or the plain text to be highlighted by the client using the info from the position list. |
int |
positionLength()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public HighlightInfo(java.lang.String attributeName,
Annotation annotation)
attributeName - annotated attribute (can be null for record annotations).annotation - the highlight annotations.| Method Detail |
|---|
public java.lang.String getAttributeName()
public java.lang.String getProperty(java.lang.String name)
name - name of property
public java.lang.String getText()
public boolean isHighlighted()
public int positionLength()
public java.lang.Integer getStartPos(int index)
index - position in term list.
public java.lang.Integer getEndPos(int index)
index - position in term list.
public java.lang.Double getQuality(int index)
index - position in term list.
public java.lang.Integer getQueryGroup(int index)
index - position in term list.
public java.lang.String getMethod(int index)
index - position in term list.
public java.lang.String getProperty(int index,
java.lang.String name)
index - position in term list.name - name of property.
public Annotation getSource()
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||