org.modeshape.graph.query.model
Class DescendantNodeJoinCondition

java.lang.Object
  extended by org.modeshape.graph.query.model.JoinCondition
      extended by org.modeshape.graph.query.model.DescendantNodeJoinCondition
All Implemented Interfaces:
Serializable, LanguageObject, Visitable

@Immutable
public class DescendantNodeJoinCondition
extends JoinCondition

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

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(Visitor visitor)
          Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
 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
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

getDescendantSelectorName

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

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

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

toString

public String toString()

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

hashCode

public int hashCode()

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

equals

public boolean equals(Object obj)

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

accept

public void accept(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.

Parameters:
visitor - the visitor; never null
See Also:
Visitable.accept(org.modeshape.graph.query.model.Visitor)


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.