Interface DocumentTreeNode<V>

  • Type Parameters:
    V - value type

    @NotThreadSafe
    public interface DocumentTreeNode<V>
    A DocumentTree node.
    • Method Detail

      • path

        DocumentPath path()
        Returns the path to this node in a DocumentTree.
        Returns:
        absolute path
      • value

        Versioned<V> value()
        Returns the value of this node.
        Returns:
        node value (and version)
      • children

        Iterator<DocumentTreeNode<V>> children()
        Returns the children of this node.
        Returns:
        iterator for this node's children
      • child

        DocumentTreeNode<V> child​(String relativePath)
        Returns the child node of this node with the specified relative path name.
        Parameters:
        relativePath - relative path name for the child node.
        Returns:
        child node; this method returns null if no such child exists
      • hasChildren

        default boolean hasChildren()
        Returns if this node has one or more children.
        Returns:
        true if yes, false otherwise