org.openidex.search
Class DataObjectSearchGroup
java.lang.Object
org.openidex.search.SearchGroup
org.openidex.search.DataObjectSearchGroup
public class DataObjectSearchGroup
- extends SearchGroup
Search group which perform search on data objects. It is a
convenience and the default implementation of SearchGroup
abstract class.
- See Also:
SearchGroup
| Methods inherited from class org.openidex.search.SearchGroup |
addPropertyChangeListener, createSearchGroups, firePropertyChange, getResultObjects, getSearchRoots, getSearchTypes, onStopSearch, prepareSearch, processSearchObject, removePropertyChangeListener, search, setSearchRootNodes, stopSearch |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataObjectSearchGroup
public DataObjectSearchGroup()
add
protected void add(SearchType searchType)
- Adds a search type to this search group.
If the group already contains the search type, the group is left
unmodified. If the specified search type does not support searching
in
DataObjects, the group is left unmodified, too.
- Overrides:
add in class SearchGroup
- Parameters:
searchType - search type to be added- See Also:
SearchType.getSearchTypeClasses()
doSearch
public void doSearch()
- Actual search implementation. Fires PROP_FOUND notifications.
Implements superclass abstract method.
- Specified by:
doSearch in class SearchGroup
- Throws:
RuntimeException - annotated at USER level by reason (on low memory condition)
getNodeForFoundObject
public Node getNodeForFoundObject(Object object)
- Gets node for found object. Implements superclass method.
- Specified by:
getNodeForFoundObject in class SearchGroup
- Returns:
- node delegate for found data object or
null
if the object is not of DataObjectType