Class DerefQueryNode


  • public class DerefQueryNode
    extends LocationStepQueryNode
    Represents query node that dereferences a reference property into a node and does an optional name test on the target node.
    • Method Detail

      • setRefProperty

        public void setRefProperty​(Name propertyName)
        Sets a new name for the reference property.
        Parameters:
        propertyName - the name of the reference property.
      • getRefProperty

        public Name getRefProperty()
        Returns the name of the reference property or null if none is set.
        Returns:
        the name of the reference property or null if none is set.
      • getType

        public int getType()
        Returns the type of this query node.
        Overrides:
        getType in class LocationStepQueryNode
        Returns:
        the type of this query node.
      • accept

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

        public 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 LocationStepQueryNode
        Parameters:
        obj - the reference object with which to compare.
        Returns:
        true if obj is equal to this; false otherwise.
      • needsSystemTree

        public boolean needsSystemTree()
        Returns true if this query node needs items under /jcr:system to be queried.
        Overrides:
        needsSystemTree in class NAryQueryNode<QueryNode>
        Returns:
        true if this query node needs content under /jcr:system to be queried; false otherwise.