Class QueryObjectModelTree
java.lang.Object
org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
org.apache.jackrabbit.spi.commons.query.qom.QueryObjectModelTree
QueryObjectModelTree implements the root node of an object
query model tree.-
Constructor Summary
ConstructorsConstructorDescriptionQueryObjectModelTree(NamePathResolver resolver, SourceImpl source, ConstraintImpl constraint, OrderingImpl[] orderings, ColumnImpl[] columns) -
Method Summary
Modifier and TypeMethodDescriptionaccept(QOMTreeVisitor visitor, Object data) Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.Gets the columns for this query.Gets the constraint for this query.Gets the orderings for this query.getSelector(Name name) Returns the selector with the givennameornullif there is no selector with this name.Gets the node-tuple source for this query.toString()
-
Constructor Details
-
QueryObjectModelTree
public QueryObjectModelTree(NamePathResolver resolver, SourceImpl source, ConstraintImpl constraint, OrderingImpl[] orderings, ColumnImpl[] columns) throws InvalidQueryException - Throws:
InvalidQueryException
-
-
Method Details
-
getSource
Gets the node-tuple source for this query.- Returns:
- the node-tuple source; non-null
-
getConstraint
Gets the constraint for this query.- Returns:
- the constraint, or null if none
-
getOrderings
Gets the orderings for this query.- Returns:
- an array of zero or more orderings; non-null
-
getColumns
Gets the columns for this query.- Returns:
- an array of zero or more columns; non-null
-
getSelector
Returns the selector with the givennameornullif there is no selector with this name.- Parameters:
name- the name of a selector.- Returns:
- the selector or
nullif there is no such selector.
-
accept
Accepts avisitorand calls the appropriate visit method depending on the type of this QOM node.- Specified by:
acceptin classAbstractQOMNode- Parameters:
visitor- the visitor.data- user defined data, which is passed to the visit method.- Throws:
Exception
-
toString
-