|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.etools.systems.subsystems.impl.RemoteSearchResultConfigurationImpl
This class represents a search result configuration. A configuration consists of a search target and a search string, and belongs to a search result set. Once a search has been started via a subsystem, the results are stored in the configuration itself. The status of the search can also be queried from the configuration.
Field Summary | |
---|---|
protected IRemoteSearchResultSet |
parentResultSet
|
protected Vector |
results
|
protected SystemSearchString |
searchString
|
protected Object |
searchTarget
|
protected int |
status
|
Fields inherited from interface com.ibm.etools.systems.subsystems.IRemoteSearchConstants |
---|
CANCELLED, DISCONNECTED, FINISHED, RUNNING |
Constructor Summary | |
---|---|
RemoteSearchResultConfigurationImpl(IRemoteSearchResultSet resultSet,
Object searchObject,
SystemSearchString string)
Constructor for a result set configuration. |
Method Summary | |
---|---|
void |
addResult(Object result)
Adds a search result. |
void |
cancel()
Does nothing. |
void |
dispose()
Cancels the search and then removes the search results. |
IRemoteSearchResultSet |
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(IRemoteSearchResultSet resultSet)
Sets the parent result set. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected IRemoteSearchResultSet parentResultSet
protected Object searchTarget
protected SystemSearchString searchString
protected Vector results
protected int status
Constructor Detail |
public RemoteSearchResultConfigurationImpl(IRemoteSearchResultSet resultSet, Object searchObject, SystemSearchString string)
RUNNING
.
resultSet
- the parent result set.searchObject
- the target of the search.Method Detail |
public void setParentResultSet(IRemoteSearchResultSet resultSet)
IRemoteSearchResultConfiguration
setParentResultSet
in interface IRemoteSearchResultConfiguration
resultSet
- the parent result set.IRemoteSearchResultConfiguration.setParentResultSet(com.ibm.etools.systems.subsystems.IRemoteSearchResultSet)
public IRemoteSearchResultSet getParentResultSet()
IRemoteSearchResultConfiguration
getParentResultSet
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.getParentResultSet()
public void setSearchTarget(Object searchObject)
IRemoteSearchResultConfiguration
setSearchTarget
in interface IRemoteSearchResultConfiguration
searchObject
- the object to be searched.IRemoteSearchResultConfiguration.setSearchTarget(java.lang.Object)
public Object getSearchTarget()
IRemoteSearchResultConfiguration
getSearchTarget
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.getSearchTarget()
public void setSearchString(SystemSearchString string)
IRemoteSearchResultConfiguration
setSearchString
in interface IRemoteSearchResultConfiguration
string
- the search string.IRemoteSearchResultConfiguration.setSearchString(com.ibm.etools.systems.core.clientserver.SystemSearchString)
public SystemSearchString getSearchString()
IRemoteSearchResultConfiguration
getSearchString
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.getSearchString()
public void addResult(Object result)
IRemoteSearchResultConfiguration
addResult
in interface IRemoteSearchResultConfiguration
result
- a search result.IRemoteSearchResultConfiguration.addResult(java.lang.Object)
public void removeResult(Object result)
IRemoteSearchResultConfiguration
removeResult
in interface IRemoteSearchResultConfiguration
result
- a search result.IRemoteSearchResultConfiguration.removeResult(java.lang.Object)
public void removeAndAddResult(Object oldResult, Object newResult)
IRemoteSearchResultConfiguration
removeAndAddResult
in interface IRemoteSearchResultConfiguration
oldResult
- the old result.newResult
- the new result.IRemoteSearchResultConfiguration.removeAndAddResult(java.lang.Object, java.lang.Object)
public Object[] getResults()
IRemoteSearchResultConfiguration
getResults
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.getResults()
public int getResultsSize()
IRemoteSearchResultConfiguration
getResultsSize
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.getResultsSize()
public void removeResults()
IRemoteSearchResultConfiguration
removeResults
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.removeResults()
public void setStatus(int status)
IRemoteSearchResultConfiguration
RUNNING
, FINISHED
,
CANCELLED
, or DISCONNECTED
.
setStatus
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.setStatus(int)
public int getStatus()
IRemoteSearchResultConfiguration
RUNNING
, FINISHED
,
CANCELLED
, or DISCONNECTED
.
getStatus
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.getStatus()
public void cancel()
cancel
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.cancel()
public void dispose()
IRemoteSearchResultConfiguration
super
first.
dispose
in interface IRemoteSearchResultConfiguration
IRemoteSearchResultConfiguration.dispose()
|
Remote Systems v6.4.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |