Interface QueryNodeFactory
- All Known Implementing Classes:
DefaultQueryNodeFactory
public interface QueryNodeFactory
A factory for
QueryNodes.-
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.
-
Method Details
-
createNodeTypeQueryNode
Creates aNodeTypeQueryNodeinstance.- Parameters:
parent- the parent node.nodeType- the name of the node type.- Returns:
- a
NodeTypeQueryNode.
-
createAndQueryNode
Creates aAndQueryNodeinstance.- Parameters:
parent- the parent node.- Returns:
- a
AndQueryNode.
-
createLocationStepQueryNode
Creates aLocationStepQueryNodeinstance.- Parameters:
parent- the parent node.- Returns:
- a
LocationStepQueryNode.
-
createDerefQueryNode
Creates aDerefQueryNodeinstance.- 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.- Parameters:
parent- the parent node.- Returns:
- a
NotQueryNode.
-
createOrQueryNode
Creates aOrQueryNodeinstance.- Parameters:
parent- the parent node.- Returns:
- a
OrQueryNode.
-
createRelationQueryNode
Creates aRelationQueryNodeinstance.- Parameters:
parent- the parent node.operation- the operation type.- Returns:
- a
RelationQueryNode.
-
createPathQueryNode
Creates aPathQueryNodeinstance.- Parameters:
parent- the parent node.- Returns:
- a
PathQueryNode.
-
createOrderQueryNode
Creates aOrderQueryNodeinstance.- Parameters:
parent- the parent node.- Returns:
- a
OrderQueryNode.
-
createPropertyFunctionQueryNode
Creates aPropertyFunctionQueryNodeinstance.- Parameters:
parent- the parent node.functionName- the name of the function.- Returns:
- a
PropertyFunctionQueryNode.
-
createQueryRootNode
QueryRootNode createQueryRootNode()Creates aQueryRootNodeinstance.- Returns:
- a
QueryRootNode.
-
createTextsearchQueryNode
Creates aTextsearchQueryNodeinstance.- Parameters:
parent- the parent node.query- the textsearch statement.- Returns:
- a
TextsearchQueryNode.
-