org.mydm.search
Class SRListenerImpl

java.lang.Object
  extended byorg.mydm.search.SRListenerImpl
All Implemented Interfaces:
SearchResListener

public class SRListenerImpl
extends java.lang.Object
implements SearchResListener

Simple Search Results Listener.


Constructor Summary
SRListenerImpl()
          Constructor
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SRListenerImpl

public SRListenerImpl()
Constructor

Method Detail

getCount

public long getCount()
Description copied from interface: SearchResListener
Gets the count of the results found.

Specified by:
getCount in interface SearchResListener
Returns:
number of results found.

getResults

public EDocResSet getResults()
Description copied from interface: SearchResListener
Gets the EDocuments found.

Specified by:
getResults in interface SearchResListener
Returns:
resultset EDocResSet

getResults

public EDocResSet getResults(long limit,
                             long offset)
Description copied from interface: SearchResListener
Get the EDocuments found.

Specified by:
getResults in interface SearchResListener
Parameters:
limit - return resultset limit.
offset - offset in the complete result set.
Returns:
resultset EDocResSet.

addResult

public void addResult(SearchResFoundEvent srfoundevent)
Description copied from interface: SearchResListener
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).

Specified by:
addResult in interface SearchResListener
Parameters:
srfoundevent - search result found event