|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.query.model.SameNodeJoinCondition
@Immutable public class SameNodeJoinCondition
A join condition that tests whether two nodes are the same nodes (that is, have the same identifier or have the same relative path from the nearest ancestor with an identifiers).
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(Visitor visitor)
Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation. |
boolean |
equals(Object obj)
|
int |
hashCode()
|
SelectorName |
selector1Name()
Get the selector name for the first side of the join condition. |
SelectorName |
selector2Name()
Get the selector name for the second side of the join condition. |
String |
selector2Path()
Get the path for the node being used, relative to the second selector. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SameNodeJoinCondition(SelectorName selector1Name, SelectorName selector2Name, String selector2Path)
selector1Name
- the name of the first selectorselector2Name
- the name of the second selectorselector2Path
- the relative path from the second selector locating the node being compared with the first selector
IllegalArgumentException
- if the path or either selector name is nullpublic SameNodeJoinCondition(SelectorName selector1Name, SelectorName selector2Name)
selector1Name
- the name of the first selectorselector2Name
- the name of the second selector
IllegalArgumentException
- if either selector name is nullMethod Detail |
---|
public final SelectorName selector1Name()
public final SelectorName selector2Name()
public final String selector2Path()
public String toString()
toString
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public void accept(Visitor visitor)
accept
in interface Visitable
visitor
- the visitor; never nullVisitable.accept(org.modeshape.graph.query.model.Visitor)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |