Interface HasParentNode<T>

    • Method Detail

      • getParentNode

        Optional<Node> getParentNode()
        Return the parent node or null, if no parent is set.
      • setParentNode

        T setParentNode​(Node parentNode)
        Set the parent node.
        Parameters:
        parentNode - the parent node or null, to set no parent
        Returns:
        return this
      • getParentNodeForChildren

        Node getParentNodeForChildren()
        this for everything except NodeLists. NodeLists use their parent as their children parent.
      • getAncestorOfType

        default <N> Optional<N> getAncestorOfType​(Class<N> classType)
        Get the ancestor of the node having the given type, or null if no ancestor of the given type is found.