01: package javax.jcr.query.qom;
02:
03: /**
04: * Tests whether the {@link #getChildSelectorName childSelector} node is a child
05: * of the {@link #getParentSelectorName parentSelector} node. A node-tuple
06: * satisfies the constraint only if:
07: * <pre> childSelectorNode.getParent().isSame(parentSelectorNode)</pre>
08: * would return true, where <code>childSelectorNode</code> is the node for
09: * {@link #getChildSelectorName childSelector} and <code>parentSelectorNode</code>
10: * is the node for {@link #getParentSelectorName parentSelector}.
11: * <p>
12: * The query is invalid if:
13: * <ul>
14: * <li>{@link #getChildSelectorName childSelector} is not the name of a
15: * selector in the query, or</li>
16: * <li>{@link #getParentSelectorName parentSelector} is not the name of a
17: * selector in the query, or</li>
18: * <li>{@link #getChildSelectorName childSelector} is the same as
19: * {@link #getParentSelectorName parentSelector}.
20: * </ul>
21: */
22: public interface ChildNodeJoin extends JoinCondition {
23: /**
24: * Gets the name of the child selector.
25: *
26: * @return the selector name; non-null
27: */
28: public String getChildSelectorName();
29:
30: /**
31: * Gets the name of the parent selector.
32: *
33: * @return the selector name; non-null
34: */
35: public String getParentSelectorName();
36: }
37:
38: // EOF
|