RSE
Release 1.0

org.eclipse.rse.services.search
Interface IHostSearchResultConfiguration

All Superinterfaces:
IHostSearchConstants
All Known Implementing Classes:
AbstractSearchResultConfiguration, RemoteSearchResultConfiguration

public interface IHostSearchResultConfiguration
extends IHostSearchConstants

An interface representing a search result configuration.


Field Summary
 
Fields inherited from interface org.eclipse.rse.services.search.IHostSearchConstants
CANCELLED, DISCONNECTED, FINISHED, RUNNING
 
Method Summary
 void addResult(Object result)
          Adds a search result.
 void addResults(Object container, IHostSearchResult[] results)
          Adds a set of search results along their associated container
 void cancel()
          Cancels the search if it is running.
 void dispose()
          Cancels the search and then removes the search results.
 IHostSearchResult[] getContainedResults(Object resultContainer)
          Gets the results contained within the resultContainer
 IHostSearchResultSet getParentResultSet()
          Gets the parent result set.
 Object[] getResults()
          Gets search results.
 int getResultsSize()
          Gets the size of the results.
 SystemSearchString getSearchString()
          Gets the search string.
 Object getSearchTarget()
          Gets the object to be searched.
 int getStatus()
          Gets the status of the search.
 void removeAndAddResult(Object oldResult, Object newResult)
          Removes the old result and adds a new result.
 void removeResult(Object result)
          Removes a search result.
 void removeResults()
          Removes all search results.
 void setParentResultSet(IHostSearchResultSet resultSet)
          Sets the parent result set.
 void setSearchHandler(ISearchHandler handler)
          Sets the search handler
 void setSearchString(SystemSearchString string)
          Sets the search string.
 void setSearchTarget(Object searchObject)
          Sets the object to be searched.
 void setStatus(int status)
          Sets the status of the search.
 

Method Detail

setParentResultSet

public void setParentResultSet(IHostSearchResultSet resultSet)
Sets the parent result set.

Parameters:
resultSet - the parent result set.

getParentResultSet

public IHostSearchResultSet getParentResultSet()
Gets the parent result set.

Returns:
the parent result set.

getContainedResults

public IHostSearchResult[] getContainedResults(Object resultContainer)
Gets the results contained within the resultContainer

Parameters:
resultContainer -
Returns:

setSearchTarget

public void setSearchTarget(Object searchObject)
Sets the object to be searched.

Parameters:
searchObject - the object to be searched.

getSearchTarget

public Object getSearchTarget()
Gets the object to be searched.

Returns:
the object to be searched.

setSearchString

public void setSearchString(SystemSearchString string)
Sets the search string.

Parameters:
string - the search string.

getSearchString

public SystemSearchString getSearchString()
Gets the search string.

Returns:
string the search string.

addResult

public void addResult(Object result)
Adds a search result.

Parameters:
result - a search result.

addResults

public void addResults(Object container,
                       IHostSearchResult[] results)
Adds a set of search results along their associated container

Parameters:
container -
results -

removeResult

public void removeResult(Object result)
Removes a search result.

Parameters:
result - a search result.

removeAndAddResult

public void removeAndAddResult(Object oldResult,
                               Object newResult)
Removes the old result and adds a new result.

Parameters:
oldResult - the old result.
newResult - the new result.

getResults

public Object[] getResults()
Gets search results.

Returns:
search results.

getResultsSize

public int getResultsSize()
Gets the size of the results.

Returns:
the size of the results.

removeResults

public void removeResults()
Removes all search results.


setStatus

public void setStatus(int status)
Sets the status of the search. One of RUNNING, FINISHED, CANCELLED, or DISCONNECTED.


getStatus

public int getStatus()
Gets the status of the search. One of RUNNING, FINISHED, CANCELLED, or DISCONNECTED.

Returns:
the status of the search.

cancel

public void cancel()
Cancels the search if it is running.


dispose

public void dispose()
Cancels the search and then removes the search results. Implementors should call super first.


setSearchHandler

public void setSearchHandler(ISearchHandler handler)
Sets the search handler

Parameters:
handler -

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.