Interface DescendantNodeJoinCondition

  • All Superinterfaces:
    JoinCondition

    public interface DescendantNodeJoinCondition
    extends JoinCondition
    Tests whether the descendantSelector node is a descendant of the ancestorSelector node. A node-tuple satisfies the constraint only if:
      descendantSelectorNode.getAncestor(n).isSame(ancestorSelectorNode) &&
         descendantSelectorNode.getDepth() > n
    would return true some some non-negative integer n, where descendantSelectorNode is the node for descendantSelector and ancestorSelectorNode is the node for ancestorSelector.
    Since:
    JCR 2.0
    • Method Detail

      • getDescendantSelectorName

        String getDescendantSelectorName()
        Gets the name of the descendant selector.
        Returns:
        the selector name; non-null
      • getAncestorSelectorName

        String getAncestorSelectorName()
        Gets the name of the ancestor selector.
        Returns:
        the selector name; non-null