|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dbunit.util.search.DepthFirstSearch
public class DepthFirstSearch
Search using depth-first algorithm.
An instance of this class must be used only once, as it maintains the
internal state of the search.
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
DepthFirstSearch()
Creates a new depth-first algorithm using the maximum search depth for recursing over the nodes. |
|
DepthFirstSearch(int searchDepth)
Creates a new depth-first algorithm |
|
| Method Summary | |
|---|---|
org.apache.commons.collections.set.ListOrderedSet |
search(java.lang.Object[] nodesFrom,
ISearchCallback callback)
Alternative option to search() that takes an array of nodes as input (instead of a Set) |
org.apache.commons.collections.set.ListOrderedSet |
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 |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public DepthFirstSearch()
public DepthFirstSearch(int searchDepth)
searchDepth - The search depth to be used when traversing the nodes recursively. Must be > 0.| Method Detail |
|---|
public org.apache.commons.collections.set.ListOrderedSet search(java.lang.Object[] nodesFrom,
ISearchCallback callback)
throws SearchException
SearchExceptionISearchAlgorithm
public org.apache.commons.collections.set.ListOrderedSet search(java.util.Set nodesFrom,
ISearchCallback callback)
throws SearchException
ISearchAlgorithm
search in interface ISearchAlgorithmnodesFrom - input nodescallback - helper callback
SearchExceptionISearchAlgorithm
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||