Tests whether the {@link #getSelectorName selector} node is a descendantof a node reachable by absolute path {@link #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 {@link #getSelectorName selectorNode} is the node for the specifiedselector. The query is invalid if:
{@link #getSelectorName selector} is not the name of a selector in thequery, or
{@link #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.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.