| Tests whether the
DescendantNode.getSelectorName selector node is a descendant
of a node reachable by absolute path
DescendantNode.getPath 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
DescendantNode.getSelectorName selectorNode is the node for the specified
selector.
The query is invalid if:
-
DescendantNode.getSelectorName selector is not the name of a selector in the
query, or
-
DescendantNode.getPath path is not a syntactically valid absolute path. Note,
however, that if the path is syntactically valid but does not identify a
node in the repository (or the node is not visible to this session,
because of access control constraints), the query is valid but the
constraint is not satisfied.
since: JCR 2.0 |