Class DefaultQueryNodeFactory
java.lang.Object
org.apache.jackrabbit.spi.commons.query.DefaultQueryNodeFactory
- All Implemented Interfaces:
QueryNodeFactory
Default implementation of a
QueryNodeFactory.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultQueryNodeFactory(Collection<Name> validJcrSystemNodeTypeNames) Creates a DefaultQueryNodeFactory with the given node types under /jcr:system . -
Method Summary
Modifier and TypeMethodDescriptioncreateAndQueryNode(QueryNode parent) Creates aAndQueryNodeinstance.createDerefQueryNode(QueryNode parent, Name nameTest, boolean descendants) Creates aDerefQueryNodeinstance.createLocationStepQueryNode(QueryNode parent) Creates aLocationStepQueryNodeinstance.createNodeTypeQueryNode(QueryNode parent, Name nodeType) Creates aNodeTypeQueryNodeinstance.createNotQueryNode(QueryNode parent) Creates aNotQueryNodeinstance.createOrderQueryNode(QueryNode parent) Creates aOrderQueryNodeinstance.createOrQueryNode(QueryNode parent) Creates aOrQueryNodeinstance.createPathQueryNode(QueryNode parent) Creates aPathQueryNodeinstance.createPropertyFunctionQueryNode(QueryNode parent, String functionName) Creates aPropertyFunctionQueryNodeinstance.Creates aQueryRootNodeinstance.createRelationQueryNode(QueryNode parent, int operation) Creates aRelationQueryNodeinstance.createTextsearchQueryNode(QueryNode parent, String query) Creates aTextsearchQueryNodeinstance.
-
Constructor Details
-
DefaultQueryNodeFactory
Creates a DefaultQueryNodeFactory with the given node types under /jcr:system .
-
-
Method Details
-
createNodeTypeQueryNode
Creates aNodeTypeQueryNodeinstance.- Specified by:
createNodeTypeQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.nodeType- the name of the node type.- Returns:
- a
NodeTypeQueryNode.
-
createAndQueryNode
Creates aAndQueryNodeinstance.- Specified by:
createAndQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
AndQueryNode.
-
createLocationStepQueryNode
Creates aLocationStepQueryNodeinstance.- Specified by:
createLocationStepQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
LocationStepQueryNode.
-
createDerefQueryNode
Creates aDerefQueryNodeinstance.- Specified by:
createDerefQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.nameTest- the name test on the referenced target node.descendants- if the axis is //- Returns:
- a
DerefQueryNode.
-
createNotQueryNode
Creates aNotQueryNodeinstance.- Specified by:
createNotQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
NotQueryNode.
-
createOrQueryNode
Creates aOrQueryNodeinstance.- Specified by:
createOrQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
OrQueryNode.
-
createRelationQueryNode
Creates aRelationQueryNodeinstance.- Specified by:
createRelationQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.operation- the operation type.- Returns:
- a
RelationQueryNode.
-
createPathQueryNode
Creates aPathQueryNodeinstance.- Specified by:
createPathQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
PathQueryNode.
-
createOrderQueryNode
Creates aOrderQueryNodeinstance.- Specified by:
createOrderQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
OrderQueryNode.
-
createPropertyFunctionQueryNode
public PropertyFunctionQueryNode createPropertyFunctionQueryNode(QueryNode parent, String functionName) Creates aPropertyFunctionQueryNodeinstance.- Specified by:
createPropertyFunctionQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.functionName- the name of the function.- Returns:
- a
PropertyFunctionQueryNode.
-
createQueryRootNode
Creates aQueryRootNodeinstance.- Specified by:
createQueryRootNodein interfaceQueryNodeFactory- Returns:
- a
QueryRootNode.
-
createTextsearchQueryNode
Creates aTextsearchQueryNodeinstance.- Specified by:
createTextsearchQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.query- the textsearch statement.- Returns:
- a
TextsearchQueryNode.
-