Class DefaultQueryNodeFactory
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.query.DefaultQueryNodeFactory
-
- All Implemented Interfaces:
QueryNodeFactory
public class DefaultQueryNodeFactory extends Object implements QueryNodeFactory
Default implementation of aQueryNodeFactory
.
-
-
Constructor Summary
Constructors Constructor Description DefaultQueryNodeFactory(Collection<Name> validJcrSystemNodeTypeNames)
Creates a DefaultQueryNodeFactory with the given node types under /jcr:system .
-
Method Summary
-
-
-
Constructor Detail
-
DefaultQueryNodeFactory
public DefaultQueryNodeFactory(Collection<Name> validJcrSystemNodeTypeNames)
Creates a DefaultQueryNodeFactory with the given node types under /jcr:system .
-
-
Method Detail
-
createNodeTypeQueryNode
public NodeTypeQueryNode createNodeTypeQueryNode(QueryNode parent, Name nodeType)
Creates aNodeTypeQueryNode
instance.- Specified by:
createNodeTypeQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.nodeType
- the name of the node type.- Returns:
- a
NodeTypeQueryNode
.
-
createAndQueryNode
public AndQueryNode createAndQueryNode(QueryNode parent)
Creates aAndQueryNode
instance.- Specified by:
createAndQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.- Returns:
- a
AndQueryNode
.
-
createLocationStepQueryNode
public LocationStepQueryNode createLocationStepQueryNode(QueryNode parent)
Creates aLocationStepQueryNode
instance.- Specified by:
createLocationStepQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.- Returns:
- a
LocationStepQueryNode
.
-
createDerefQueryNode
public DerefQueryNode createDerefQueryNode(QueryNode parent, Name nameTest, boolean descendants)
Creates aDerefQueryNode
instance.- Specified by:
createDerefQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.nameTest
- the name test on the referenced target node.descendants
- if the axis is //- Returns:
- a
DerefQueryNode
.
-
createNotQueryNode
public NotQueryNode createNotQueryNode(QueryNode parent)
Creates aNotQueryNode
instance.- Specified by:
createNotQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.- Returns:
- a
NotQueryNode
.
-
createOrQueryNode
public OrQueryNode createOrQueryNode(QueryNode parent)
Creates aOrQueryNode
instance.- Specified by:
createOrQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.- Returns:
- a
OrQueryNode
.
-
createRelationQueryNode
public RelationQueryNode createRelationQueryNode(QueryNode parent, int operation)
Creates aRelationQueryNode
instance.- Specified by:
createRelationQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.operation
- the operation type.- Returns:
- a
RelationQueryNode
.
-
createPathQueryNode
public PathQueryNode createPathQueryNode(QueryNode parent)
Creates aPathQueryNode
instance.- Specified by:
createPathQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.- Returns:
- a
PathQueryNode
.
-
createOrderQueryNode
public OrderQueryNode createOrderQueryNode(QueryNode parent)
Creates aOrderQueryNode
instance.- Specified by:
createOrderQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.- Returns:
- a
OrderQueryNode
.
-
createPropertyFunctionQueryNode
public PropertyFunctionQueryNode createPropertyFunctionQueryNode(QueryNode parent, String functionName)
Creates aPropertyFunctionQueryNode
instance.- Specified by:
createPropertyFunctionQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.functionName
- the name of the function.- Returns:
- a
PropertyFunctionQueryNode
.
-
createQueryRootNode
public QueryRootNode createQueryRootNode()
Creates aQueryRootNode
instance.- Specified by:
createQueryRootNode
in interfaceQueryNodeFactory
- Returns:
- a
QueryRootNode
.
-
createTextsearchQueryNode
public TextsearchQueryNode createTextsearchQueryNode(QueryNode parent, String query)
Creates aTextsearchQueryNode
instance.- Specified by:
createTextsearchQueryNode
in interfaceQueryNodeFactory
- Parameters:
parent
- the parent node.query
- the textsearch statement.- Returns:
- a
TextsearchQueryNode
.
-
-