public class QueryObjectModelTree extends AbstractQOMNode
QueryObjectModelTree
implements the root node of an object
query model tree.resolver
Constructor and Description |
---|
QueryObjectModelTree(NamePathResolver resolver,
SourceImpl source,
ConstraintImpl constraint,
OrderingImpl[] orderings,
ColumnImpl[] columns) |
Modifier and Type | Method and Description |
---|---|
Object |
accept(QOMTreeVisitor visitor,
Object data)
Accepts a
visitor and calls the appropriate visit method
depending on the type of this QOM node. |
ColumnImpl[] |
getColumns()
Gets the columns for this query.
|
ConstraintImpl |
getConstraint()
Gets the constraint for this query.
|
OrderingImpl[] |
getOrderings()
Gets the orderings for this query.
|
SelectorImpl |
getSelector(Name name)
Returns the selector with the given
name or
null if there is no selector with this name. |
SourceImpl |
getSource()
Gets the node-tuple source for this query.
|
String |
toString() |
getJCRName, getJCRPath, protect, quote, quote
public QueryObjectModelTree(NamePathResolver resolver, SourceImpl source, ConstraintImpl constraint, OrderingImpl[] orderings, ColumnImpl[] columns) throws InvalidQueryException
InvalidQueryException
public SourceImpl getSource()
public ConstraintImpl getConstraint()
public OrderingImpl[] getOrderings()
public ColumnImpl[] getColumns()
public SelectorImpl getSelector(Name name)
name
or
null
if there is no selector with this name.name
- the name of a selector.null
if there is no such selector.public Object accept(QOMTreeVisitor visitor, Object data) throws Exception
visitor
and calls the appropriate visit method
depending on the type of this QOM node.accept
in class AbstractQOMNode
visitor
- the visitor.data
- user defined data, which is passed to the visit method.Exception
Copyright © 2004–2021 The Apache Software Foundation. All rights reserved.