org.dbunit.util.search
Class DepthFirstSearch
java.lang.Object
org.dbunit.util.search.DepthFirstSearch
- All Implemented Interfaces:
- ISearchAlgorithm
public class DepthFirstSearch
- extends java.lang.Object
- implements ISearchAlgorithm
Search using depth-first algorithm.
An instance of this class must be used only once, as it maintains the
internal state of the search.
- Since:
- Aug 25, 2005
- Version:
- $Revision: 554 $
- Author:
- Felipe Leme
Field Summary |
protected org.slf4j.Logger |
logger
|
Method Summary |
java.util.Set |
search(java.lang.Object[] nodesFrom,
ISearchCallback callback)
Alternative option to search() that takes an array of nodes as input (instead of a Set) |
java.util.Set |
search(java.util.Set nodesFrom,
ISearchCallback callback)
Search all nodes that originates from a set of nodes. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
logger
protected final org.slf4j.Logger logger
DepthFirstSearch
public DepthFirstSearch()
search
public java.util.Set search(java.lang.Object[] nodesFrom,
ISearchCallback callback)
throws SearchException
- Alternative option to search() that takes an array of nodes as input (instead of a Set)
- Throws:
SearchException
search
public java.util.Set search(java.util.Set nodesFrom,
ISearchCallback callback)
throws SearchException
- Description copied from interface:
ISearchAlgorithm
- Search all nodes that originates from a set of nodes.
- Specified by:
search
in interface ISearchAlgorithm
- Parameters:
nodesFrom
- input nodescallback
- helper callback
- Returns:
- all nodes, in the right dependent order (like a LinkedHashSet)
- Throws:
SearchException
- See Also:
ISearchAlgorithm
Copyright © 2002-2010. All Rights Reserved.