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

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

public class SameNodeJoinCondition
extends JoinCondition

Created by The eXo Platform SAS.

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

Constructor Summary
SameNodeJoinCondition(SelectorName selector1Name, SelectorName selector2Name)
          Create a join condition that determines whether the node identified by the first selector is the same as the node identified by the second selector.
SameNodeJoinCondition(SelectorName selector1Name, SelectorName selector2Name, String selector2Path)
          Create a join condition that determines whether the node identified by the first selector is the same as the node at the given path relative to the node identified by the second 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 getSelector1Name()
          Get the selector name for the first side of the join condition.
 SelectorName getSelector2Name()
          Get the selector name for the second side of the join condition.
 String getSelector2Path()
          Get the path for the node being used, relative to the second selector.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SameNodeJoinCondition

public SameNodeJoinCondition(SelectorName selector1Name,
                             SelectorName selector2Name)
Create a join condition that determines whether the node identified by the first selector is the same as the node identified by the second selector.

Parameters:
selector1Name - the name of the first selector
selector2Name - the name of the second selector

SameNodeJoinCondition

public SameNodeJoinCondition(SelectorName selector1Name,
                             SelectorName selector2Name,
                             String selector2Path)
Create a join condition that determines whether the node identified by the first selector is the same as the node at the given path relative to the node identified by the second selector.

Parameters:
selector1Name - the name of the first selector
selector2Name - the name of the second selector
selector2Path - the relative path from the second selector locating the node being compared with the first 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)

getSelector1Name

public final SelectorName getSelector1Name()
Get the selector name for the first side of the join condition.

Returns:
the name of the first selector; never null

getSelector2Name

public final SelectorName getSelector2Name()
Get the selector name for the second side of the join condition.

Returns:
the name of the second selector; never null

getSelector2Path

public final String getSelector2Path()
Get the path for the node being used, relative to the second selector.

Returns:
the relative path to the node; may be null if the second selector is the node being used

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.