org.mydm.search
Interface SearchResListener

All Known Implementing Classes:
SRListenerImpl

public interface SearchResListener

Search Results Listener Interface.


Method Summary
 void addResult(SearchResFoundEvent srfoundevent)
          Adds the SeachResult to the resultset.
 long getCount()
          Gets the count of the results found.
 EDocResSet getResults()
          Gets the EDocuments found.
 EDocResSet getResults(long limit, long offset)
          Get the EDocuments found.
 

Method Detail

getCount

public long getCount()
Gets the count of the results found.

Returns:
number of results found.

getResults

public EDocResSet getResults()
Gets the EDocuments found.

Returns:
resultset EDocResSet

getResults

public EDocResSet getResults(long limit,
                             long offset)
Get the EDocuments found.

Parameters:
limit - return resultset limit.
offset - offset in the complete result set.
Returns:
resultset EDocResSet.

addResult

public void addResult(SearchResFoundEvent srfoundevent)
Adds the SeachResult to the resultset. The Search Classes will call this method whenever a search result is found. So that the searching and displaying the results can go dynamically(synchronously).

Parameters:
srfoundevent - search result found event