public final class RootNode extends PathNode
RootNodeis the root node of the tree PathNode tree. The root node has no parent and its xpath is an empty
string| Constructor | Description |
|---|---|
RootNode() |
| Modifier and Type | Method | Description |
|---|---|---|
PathNode |
getParent() |
Always throws
UnsupportedOperationException. |
String |
getPath() |
addChild, getNodeNamepublic PathNode getParent()
UnsupportedOperationException. This method should not be called when the node is the
root node. The root has not parent and this operation is not supported.getParent in class PathNodeUnsupportedOperationException - in case of exceptionCopyright © 2025. All rights reserved.