javax.jcr.query.qom
Interface ChildNode

All Superinterfaces:
Constraint

public interface ChildNode
extends Constraint

Tests whether the selector node is a child of a node reachable by absolute path path.

A node-tuple satisfies the constraint only if:

  selectorNode.getParent().isSame(session.getNode(path))
would return true, where selectorNode is the node for the specified selector.

Since:
JCR 2.0

Method Summary
 java.lang.String getParentPath()
          Gets the absolute path.
 java.lang.String getSelectorName()
          Gets the name of the selector against which to apply this constraint.
 

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

getParentPath

java.lang.String getParentPath()
Gets the absolute path.

Returns:
the path; non-null


Copyright © 2009 Day Software. All Rights Reserved.