org.apache.jackrabbit.core.query.jsr283.qom
Interface Selector

All Superinterfaces:
Source
All Known Implementing Classes:
SelectorImpl

public interface Selector
extends Source

Selects a subset of the nodes in the repository based on node type.

A selector selects every node in the repository, subject to access control constraints, that satisfies at least one of the following conditions:

The query is invalid if nodeType or selectorName is not a syntactically valid JCR name.

The query is invalid if selectorName is identical to the selectorName of another selector in the query.

If nodeType is a valid JCR name but not the name of a node type available in the repository, the query is valid but the selector selects no nodes.

Since:
JCR 2.0

Method Summary
 String getNodeTypeName()
          Gets the name of the required node type.
 String getSelectorName()
          Gets the selector name.
 

Method Detail

getNodeTypeName

String getNodeTypeName()
Gets the name of the required node type.

Returns:
the node type name; non-null

getSelectorName

String getSelectorName()
Gets the selector name.

A selector's name can be used elsewhere in the query to identify the selector.

Returns:
the selector name; non-null


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