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

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

public class ChildNodeJoinCondition
extends JoinCondition

A join condition that evaluates to true only when the named child node is indeed a child of the named parent node.

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

Constructor Summary
ChildNodeJoinCondition(SelectorName parentSelectorName, SelectorName childSelectorName)
          Create a join condition that determines whether the node identified by the child selector is a child of the node identified by the parent 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 getChildSelectorName()
          Get the name of the selector that represents the child.
 SelectorName getParentSelectorName()
          Get the name of the selector that represents the parent.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChildNodeJoinCondition

public ChildNodeJoinCondition(SelectorName parentSelectorName,
                              SelectorName childSelectorName)
Create a join condition that determines whether the node identified by the child selector is a child of the node identified by the parent selector.

Parameters:
parentSelectorName - the first selector
childSelectorName - the second 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)

getChildSelectorName

public final SelectorName getChildSelectorName()
Get the name of the selector that represents the child.

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

getParentSelectorName

public final SelectorName getParentSelectorName()
Get the name of the selector that represents the parent.

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

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.