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 aNodeTypeQueryNodeinstance.- Specified by:
createNodeTypeQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.nodeType- the name of the node type.- Returns:
- a
NodeTypeQueryNode.
-
createAndQueryNode
public AndQueryNode createAndQueryNode(QueryNode parent)
Creates aAndQueryNodeinstance.- Specified by:
createAndQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
AndQueryNode.
-
createLocationStepQueryNode
public LocationStepQueryNode createLocationStepQueryNode(QueryNode parent)
Creates aLocationStepQueryNodeinstance.- Specified by:
createLocationStepQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
LocationStepQueryNode.
-
createDerefQueryNode
public DerefQueryNode createDerefQueryNode(QueryNode parent, Name nameTest, boolean descendants)
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
public NotQueryNode createNotQueryNode(QueryNode parent)
Creates aNotQueryNodeinstance.- Specified by:
createNotQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
NotQueryNode.
-
createOrQueryNode
public OrQueryNode createOrQueryNode(QueryNode parent)
Creates aOrQueryNodeinstance.- Specified by:
createOrQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
OrQueryNode.
-
createRelationQueryNode
public RelationQueryNode createRelationQueryNode(QueryNode parent, int operation)
Creates aRelationQueryNodeinstance.- Specified by:
createRelationQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.operation- the operation type.- Returns:
- a
RelationQueryNode.
-
createPathQueryNode
public PathQueryNode createPathQueryNode(QueryNode parent)
Creates aPathQueryNodeinstance.- Specified by:
createPathQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.- Returns:
- a
PathQueryNode.
-
createOrderQueryNode
public OrderQueryNode createOrderQueryNode(QueryNode parent)
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
public QueryRootNode createQueryRootNode()
Creates aQueryRootNodeinstance.- Specified by:
createQueryRootNodein interfaceQueryNodeFactory- Returns:
- a
QueryRootNode.
-
createTextsearchQueryNode
public TextsearchQueryNode createTextsearchQueryNode(QueryNode parent, String query)
Creates aTextsearchQueryNodeinstance.- Specified by:
createTextsearchQueryNodein interfaceQueryNodeFactory- Parameters:
parent- the parent node.query- the textsearch statement.- Returns:
- a
TextsearchQueryNode.
-
-