V
- value type@NotThreadSafe public interface DocumentTreeNode<V>
DocumentTree
node.Modifier and Type | Method and Description |
---|---|
DocumentTreeNode<V> |
child(String relativePath)
Returns the child node of this node with the specified relative path name.
|
Iterator<DocumentTreeNode<V>> |
children()
Returns the children of this node.
|
default boolean |
hasChildren()
Returns if this node has one or more children.
|
DocumentPath |
path()
Returns the path to this node in a
DocumentTree . |
Versioned<V> |
value()
Returns the value of this node.
|
DocumentPath path()
DocumentTree
.Iterator<DocumentTreeNode<V>> children()
DocumentTreeNode<V> child(String relativePath)
relativePath
- relative path name for the child node.null
if no such child existsdefault boolean hasChildren()
true
if yes, false
otherwise