Class QueryNode

    • Constructor Detail

      • QueryNode

        public QueryNode​(QueryNode parent)
        Constructs a new QueryNode with a reference to it's parent.
        Parameters:
        parent - the parent node, or null if this is the root node of a query tree.
    • Method Detail

      • getParent

        public QueryNode getParent()
        Returns the parent QueryNode or null if this is the root node of a query tree.
        Returns:
        the parent QueryNode or null if this is the root node of a query tree.
      • accept

        public abstract java.lang.Object accept​(QueryNodeVisitor visitor,
                                                java.lang.Object data)
                                         throws RepositoryException
        Accepts a QueryNodeVisitor and calls the appropriate visit method on the visitor depending on the concrete implementation of this QueryNode.
        Parameters:
        visitor - the visitor to call back.
        data - arbitrary data for the visitor.
        Returns:
        the return value of the visitor.visit() call.
        Throws:
        RepositoryException
      • getType

        public abstract int getType()
        Returns the type of this query node.
        Returns:
        the type of this query node.
      • equals

        public abstract boolean equals​(java.lang.Object obj)
        Returns true if obj is the same type of QueryNode as this node and is equal to this node.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the reference object with which to compare.
        Returns:
        true if obj is equal to this; false otherwise.
      • needsSystemTree

        public abstract boolean needsSystemTree()
        Returns true if this query node needs items under /jcr:system to be queried.
        Returns:
        true if this query node needs content under /jcr:system to be queried; false otherwise.