org.apache.jackrabbit.spi.commons.query.jsr283.qom
Interface SameNode

All Superinterfaces:
Constraint
All Known Implementing Classes:
SameNodeImpl

public interface SameNode
extends Constraint

Tests whether the selector node is reachable by absolute path path.

A node-tuple satisfies the constraint only if:

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

The query is invalid if:

Since:
JCR 2.0

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

Method Detail

getSelectorName

String getSelectorName()
Gets the name of the selector against which to apply this constraint.

Returns:
the selector name; non-null

getPath

String getPath()
Gets the absolute path.

Returns:
the path; non-null


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.