public class DefaultQueryNodeFactory extends Object implements QueryNodeFactory
QueryNodeFactory
.Constructor and Description |
---|
DefaultQueryNodeFactory(Collection<Name> validJcrSystemNodeTypeNames)
Creates a DefaultQueryNodeFactory with the given node types under
/jcr:system .
|
public DefaultQueryNodeFactory(Collection<Name> validJcrSystemNodeTypeNames)
public NodeTypeQueryNode createNodeTypeQueryNode(QueryNode parent, Name nodeType)
NodeTypeQueryNode
instance.createNodeTypeQueryNode
in interface QueryNodeFactory
parent
- the parent node.nodeType
- the name of the node type.NodeTypeQueryNode
.public AndQueryNode createAndQueryNode(QueryNode parent)
AndQueryNode
instance.createAndQueryNode
in interface QueryNodeFactory
parent
- the parent node.AndQueryNode
.public LocationStepQueryNode createLocationStepQueryNode(QueryNode parent)
LocationStepQueryNode
instance.createLocationStepQueryNode
in interface QueryNodeFactory
parent
- the parent node.LocationStepQueryNode
.public DerefQueryNode createDerefQueryNode(QueryNode parent, Name nameTest, boolean descendants)
DerefQueryNode
instance.createDerefQueryNode
in interface QueryNodeFactory
parent
- the parent node.nameTest
- the name test on the referenced target node.descendants
- if the axis is //DerefQueryNode
.public NotQueryNode createNotQueryNode(QueryNode parent)
NotQueryNode
instance.createNotQueryNode
in interface QueryNodeFactory
parent
- the parent node.NotQueryNode
.public OrQueryNode createOrQueryNode(QueryNode parent)
OrQueryNode
instance.createOrQueryNode
in interface QueryNodeFactory
parent
- the parent node.OrQueryNode
.public RelationQueryNode createRelationQueryNode(QueryNode parent, int operation)
RelationQueryNode
instance.createRelationQueryNode
in interface QueryNodeFactory
parent
- the parent node.operation
- the operation type.RelationQueryNode
.public PathQueryNode createPathQueryNode(QueryNode parent)
PathQueryNode
instance.createPathQueryNode
in interface QueryNodeFactory
parent
- the parent node.PathQueryNode
.public OrderQueryNode createOrderQueryNode(QueryNode parent)
OrderQueryNode
instance.createOrderQueryNode
in interface QueryNodeFactory
parent
- the parent node.OrderQueryNode
.public PropertyFunctionQueryNode createPropertyFunctionQueryNode(QueryNode parent, String functionName)
PropertyFunctionQueryNode
instance.createPropertyFunctionQueryNode
in interface QueryNodeFactory
parent
- the parent node.functionName
- the name of the function.PropertyFunctionQueryNode
.public QueryRootNode createQueryRootNode()
QueryRootNode
instance.createQueryRootNode
in interface QueryNodeFactory
QueryRootNode
.public TextsearchQueryNode createTextsearchQueryNode(QueryNode parent, String query)
TextsearchQueryNode
instance.createTextsearchQueryNode
in interface QueryNodeFactory
parent
- the parent node.query
- the textsearch statement.TextsearchQueryNode
.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.