class PathResolverImpl.PathTree
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private java.util.Map<java.lang.String,PathResolverImpl.PathTree> |
children
The children nodes
|
private java.lang.String |
id
The node id
|
private PathResolverImpl.PathTree |
parent
The parent node
|
Constructor and Description |
---|
PathTree()
Defines the root node constructor.
|
PathTree(java.lang.String component)
The directory node constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(PathResolverImpl.PathTree pathTree)
Add a path node.
|
PathResolverImpl.PathTree |
findChild(java.lang.String component)
Find the child node by its path component.
|
private java.lang.String id
private java.util.Map<java.lang.String,PathResolverImpl.PathTree> children
private PathResolverImpl.PathTree parent
public PathTree()
public PathTree(java.lang.String component)
component
- The path component (folder name)public PathResolverImpl.PathTree findChild(java.lang.String component)
component
- The target componentpublic void addChild(PathResolverImpl.PathTree pathTree)
pathTree
- The target node to add.