org.apache.jackrabbit.spi.commons.query.qom
Class DescendantNodeJoinConditionImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
      extended by org.apache.jackrabbit.spi.commons.query.qom.JoinConditionImpl
          extended by org.apache.jackrabbit.spi.commons.query.qom.DescendantNodeJoinConditionImpl
All Implemented Interfaces:
DescendantNodeJoinCondition, JoinCondition

public class DescendantNodeJoinConditionImpl
extends JoinConditionImpl
implements DescendantNodeJoinCondition

DescendantNodeJoinConditionImpl...


Field Summary
 
Fields inherited from class org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
resolver
 
Method Summary
 Object accept(QOMTreeVisitor visitor, Object data)
          Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
 String getAncestorSelectorName()
          Gets the name of the ancestor selector.
 Name getAncestorSelectorQName()
          Gets the name of the ancestor selector.
 String getDescendantSelectorName()
          Gets the name of the descendant selector.
 Name getDescendantSelectorQName()
          Gets the name of the descendant selector.
 String toString()
           
 
Methods inherited from class org.apache.jackrabbit.spi.commons.query.qom.AbstractQOMNode
getJCRName, getJCRPath, protect, quote, quote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getDescendantSelectorName

public String getDescendantSelectorName()
Gets the name of the descendant selector.

Specified by:
getDescendantSelectorName in interface DescendantNodeJoinCondition
Returns:
the selector name; non-null

getAncestorSelectorName

public String getAncestorSelectorName()
Gets the name of the ancestor selector.

Specified by:
getAncestorSelectorName in interface DescendantNodeJoinCondition
Returns:
the selector name; non-null

getDescendantSelectorQName

public Name getDescendantSelectorQName()
Gets the name of the descendant selector.

Returns:
the selector name; non-null

getAncestorSelectorQName

public Name getAncestorSelectorQName()
Gets the name of the ancestor selector.

Returns:
the selector name; non-null

accept

public Object accept(QOMTreeVisitor visitor,
                     Object data)
              throws Exception
Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.

Specified by:
accept in class AbstractQOMNode
Parameters:
visitor - the visitor.
data - user defined data, which is passed to the visit method.
Throws:
Exception

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.