Interface DescendantNode

  • All Superinterfaces:
    Constraint
    All Known Implementing Classes:
    DescendantNodeImpl

    public interface DescendantNode
    extends Constraint
    Tests whether the selector node is a descendant of a node reachable by absolute path path.

    A node-tuple satisfies the constraint only if:

      selectorNode.getAncestor(n).isSame(session.getNode(path)) &&
         selectorNode.getDepth() > n
    would return true for some non-negative integer n, where selectorNode is the node for the specified selector.
    Since:
    JCR 2.0
    • Method Detail

      • getSelectorName

        java.lang.String getSelectorName()
        Gets the name of the selector against which to apply this constraint.
        Returns:
        the selector name; non-null
      • getAncestorPath

        java.lang.String getAncestorPath()
        Gets the absolute path.
        Returns:
        the path; non-null