|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.compass.core.impl.DefaultCompassHit
public class DefaultCompassHit
| Constructor Summary | |
|---|---|
DefaultCompassHit(CompassHitsOperations compassHits,
int hitNumber)
|
|
| Method Summary | |
|---|---|
String |
alias()
Same as CompassHit.getAlias(). |
Object |
data()
Same as CompassHit.getData() just shorter. |
String |
getAlias()
Returns the alias value of the hit. |
Object |
getData()
Returns the object for this hit. |
CompassHighlightedText |
getHighlightedText()
Returns a cached highlighted text the maps to the hit. |
Resource |
getResource()
Returns the Resource for this hit. |
float |
getScore()
Returns the score for this hit. |
CompassHighlightedText |
highlightedText()
Same as CompassHit.getHighlightedText(). |
Resource |
resource()
Same as CompassHit.getResource(). |
float |
score()
Same as CompassHit.getScore(). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
DefaultCompassHit(CompassHitsOperations compassHits,
int hitNumber)
| Method Detail |
|---|
public Object getData()
CompassHit
getData in interface CompassHitCompassHitsOperations.data(int)
public Object data()
throws CompassException
CompassHitCompassHit.getData() just shorter.
data in interface CompassHitCompassException
public Resource getResource()
throws CompassException
CompassHitResource for this hit.
getResource in interface CompassHitResource of the hit.
CompassExceptionCompassHitsOperations.resource(int)
public Resource resource()
throws CompassException
CompassHitCompassHit.getResource().
resource in interface CompassHitCompassException
public float getScore()
throws CompassException
CompassHit
getScore in interface CompassHitCompassExceptionCompassHitsOperations.score(int)
public float score()
throws CompassException
CompassHitCompassHit.getScore().
score in interface CompassHitCompassException
public CompassHighlightedText getHighlightedText()
throws CompassException
CompassHitCompassHighlighter
using CompassHits.highlighter(int).
getHighlightedText in interface CompassHitCompassException
public CompassHighlightedText highlightedText()
throws CompassException
CompassHitCompassHit.getHighlightedText().
highlightedText in interface CompassHitCompassException
public String getAlias()
throws CompassException
CompassHit
getAlias in interface CompassHitCompassException
public String alias()
throws CompassException
CompassHitCompassHit.getAlias().
alias in interface CompassHitCompassException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||