net.sf.zekr.engine.search
Class SearchResultItem

java.lang.Object
  extended by net.sf.zekr.engine.search.SearchResultItem

public class SearchResultItem
extends java.lang.Object


Field Summary
 IQuranLocation location
           
 java.util.List matchedParts
          null matchedParts means that this item was matched because of an exclude term in the search query.
 double score
           
 java.lang.String text
           
 
Constructor Summary
SearchResultItem(java.lang.String ayaText, IQuranLocation location)
           
 
Method Summary
 IQuranLocation getLocation()
          Method needed for Velocity
 java.lang.String getText()
          Method needed for Velocity
 java.lang.String toMeaningfulString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

text

public java.lang.String text

location

public IQuranLocation location

score

public double score

matchedParts

public java.util.List matchedParts
null matchedParts means that this item was matched because of an exclude term in the search query.

Constructor Detail

SearchResultItem

public SearchResultItem(java.lang.String ayaText,
                        IQuranLocation location)
Parameters:
ayaText -
location -
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toMeaningfulString

public java.lang.String toMeaningfulString()

getLocation

public IQuranLocation getLocation()
Method needed for Velocity

Returns:
location

getText

public java.lang.String getText()
Method needed for Velocity

Returns:
text