org.xcmis.search.model.source.join
Class DescendantNodeJoinCondition

java.lang.Object
  extended by org.xcmis.search.model.source.join.JoinCondition
      extended by org.xcmis.search.model.source.join.DescendantNodeJoinCondition
All Implemented Interfaces:
Serializable, QueryElement

public class DescendantNodeJoinCondition
extends JoinCondition

A join condition that evaluates to true only when the named node is a descendant of another named node.

Version:
$Id: DescendantNodeJoinConditionImpl.java 2 2010-02-04 17:21:49Z andrew00x $
Author:
Sergey Kabashnyuk
See Also:
Serialized Form

Constructor Summary
DescendantNodeJoinCondition(SelectorName ancestorSelectorName, SelectorName descendantSelectorName)
          Create a join condition that determines whether the node identified by the descendant selector is indeed a descendant of the node identified by the ancestor selector.
 
Method Summary
 void accept(QueryObjectModelVisitor visitor)
          Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
 boolean equals(Object obj)
          
 SelectorName getAncestorSelectorName()
          Get the name of the selector for the ancestor node.
 SelectorName getDescendantSelectorName()
          Get the name of the selector for the descedant node.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescendantNodeJoinCondition

public DescendantNodeJoinCondition(SelectorName ancestorSelectorName,
                                   SelectorName descendantSelectorName)
Create a join condition that determines whether the node identified by the descendant selector is indeed a descendant of the node identified by the ancestor selector.

Parameters:
ancestorSelectorName - the name of the ancestor selector
descendantSelectorName - the name of the descendant selector
Method Detail

accept

public void accept(QueryObjectModelVisitor visitor)
            throws VisitException
Description copied from interface: QueryElement
Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.

Parameters:
visitor - the visitor.
Throws:
VisitException
See Also:
QueryElement.accept(org.xcmis.search.QueryObjectModelVisitor)

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

getAncestorSelectorName

public final SelectorName getAncestorSelectorName()
Get the name of the selector for the ancestor node.

Returns:
the selector name of the ancestor node; never null

getDescendantSelectorName

public final SelectorName getDescendantSelectorName()
Get the name of the selector for the descedant node.


hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2010 eXo Platform SAS. All Rights Reserved.