Type
- public class TreeWalkerPathCheck extends java.lang.Object implements SortedTreeWalkerCallback<java.lang.String,java.lang.Object>
Modifier and Type | Class and Description |
---|---|
private class |
TreeWalkerPathCheck.CurrDirChildren
Data chained from a first parent to deepness of dir tree for each level.
|
SortedTreeWalkerCallback.Result
Modifier and Type | Field and Description |
---|---|
(package private) PathCheck |
check |
private TreeWalkerPathCheck.CurrDirChildren |
curr |
static java.lang.String |
sVersion
Version, history and license.
|
callbackTemplate
Constructor and Description |
---|
TreeWalkerPathCheck(java.lang.String sPathCheck) |
Modifier and Type | Method and Description |
---|---|
void |
finished(java.lang.String startNode)
Invoked after finishing the walking through.
|
SortedTreeWalkerCallback.Result |
finishedParentNode(java.lang.String parentNode,
java.lang.Object oPath,
java.lang.Object oWalkInfo)
Invoked on end of walking through a parent node.
|
SortedTreeWalkerCallback.Result |
offerLeafNode(java.lang.String sName,
java.lang.Object info)
Invoked for any node which has no children or which is not processed because the depth of walking through the tree is reached.
|
SortedTreeWalkerCallback.Result |
offerParentNode(java.lang.String sName,
java.lang.Object data,
java.lang.Object walkInfo)
Invoked on start on walking through a parent node which have children.
|
boolean |
shouldAborted()
Returns true if the tree walking should be terminated respectively aborted.
|
void |
start(java.lang.String startNode,
java.lang.Object info)
Invoked before start of a walk through the tree.
|
public static final java.lang.String sVersion
final PathCheck check
private TreeWalkerPathCheck.CurrDirChildren curr
public void start(java.lang.String startNode, java.lang.Object info)
SortedTreeWalkerCallback
start
in interface SortedTreeWalkerCallback<java.lang.String,java.lang.Object>
public SortedTreeWalkerCallback.Result offerParentNode(java.lang.String sName, java.lang.Object data, java.lang.Object walkInfo)
SortedTreeWalkerCallback
#offerLeafNode(TypeNode)
is not invoked.offerParentNode
in interface SortedTreeWalkerCallback<java.lang.String,java.lang.Object>
data
- Specific data presentation of the nodewalkInfo
- internal possible information about walking, depending on usage.public SortedTreeWalkerCallback.Result finishedParentNode(java.lang.String parentNode, java.lang.Object oPath, java.lang.Object oWalkInfo)
SortedTreeWalkerCallback
finishedParentNode
in interface SortedTreeWalkerCallback<java.lang.String,java.lang.Object>
parentNode
- the node which was walked throughoPath
- Specific data presentation of the nodeoWalkInfo
- internal possible information about walking, depending on usage.public SortedTreeWalkerCallback.Result offerLeafNode(java.lang.String sName, java.lang.Object info)
SortedTreeWalkerCallback
#offerLeafNode(Object)
, only one of both is called for a node.
For example it is invoked for a sub directory only if the depth is reached and #offerParentNode(TypeNode)
is not called.offerLeafNode
in interface SortedTreeWalkerCallback<java.lang.String,java.lang.Object>
public void finished(java.lang.String startNode)
SortedTreeWalkerCallback
finished
in interface SortedTreeWalkerCallback<java.lang.String,java.lang.Object>
public boolean shouldAborted()
SortedTreeWalkerCallback
shouldAborted
in interface SortedTreeWalkerCallback<java.lang.String,java.lang.Object>