|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mmbase.storage.search.implementation.BasicStep
org.mmbase.storage.search.implementation.BasicRelationStep
public class BasicRelationStep
Basic implementation.
The checkedDirectionality property defaults to false. The directionality property defaults to DIRECTIONS_BOTH.
| Field Summary |
|---|
| Fields inherited from class org.mmbase.storage.search.implementation.BasicStep |
|---|
alias, builder, modifiable, nodes |
| Fields inherited from interface org.mmbase.storage.search.RelationStep |
|---|
DIRECTIONALITY_DESCRIPTIONS, DIRECTIONS_ALL, DIRECTIONS_BOTH, DIRECTIONS_DESTINATION, DIRECTIONS_EITHER, DIRECTIONS_SOURCE |
| Constructor Summary | |
|---|---|
BasicRelationStep(String builder,
Step previous,
Step next)
Creator. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Compares this step to the specified object. |
boolean |
getCheckedDirectionality()
Gets the value of the checkedDirectionality property. |
int |
getDirectionality()
Gets the directionality mode used with this relation. |
String |
getDirectionalityDescription()
Returns a description of the part |
Step |
getNext()
Gets the next step. |
Step |
getPrevious()
Gets the previous step. |
Integer |
getRole()
Gets the role for this relation, if specified. |
String |
getRoleDescription()
|
int |
hashCode()
|
BasicRelationStep |
setCheckedDirectionality(boolean checkedDirectionality)
Sets checkedDirectionality property. |
BasicRelationStep |
setDirectionality(int directionality)
Sets directionality property. |
BasicRelationStep |
setRole(Integer role)
Sets role property. |
String |
toString()
Returns a string representation of this Step. |
| Methods inherited from class org.mmbase.storage.search.implementation.BasicStep |
|---|
addNode, getAlias, getNodes, getTableName, setAlias, setUnmodifiable |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.mmbase.storage.search.Step |
|---|
addNode, getAlias, getNodes, getTableName, setUnmodifiable |
| Constructor Detail |
|---|
BasicRelationStep(String builder,
Step previous,
Step next)
builder - The relation builder.previous - The previous step.next - The next step.
IllegalArgumentException - when an invalid argument is supplied.| Method Detail |
|---|
public BasicRelationStep setCheckedDirectionality(boolean checkedDirectionality)
checkedDirectionality - The checkedDirectionality property.
BasicRelationStep instance.getCheckedDirectionality()public BasicRelationStep setDirectionality(int directionality)
directionality - The directionality.
Must be one of the values defined in
RelationStep.
BasicRelationStep instance.
IllegalArgumentException - when an invalid argument is supplied.public BasicRelationStep setRole(Integer role)
role - The role.
BasicRelationStep instance.public boolean getCheckedDirectionality()
RelationStepRelationStep.DIRECTIONS_SOURCE or RelationStep.DIRECTIONS_BOTH.
When this value is true, only bi-directional relations are followed from destination to source. Otherwise unidirectional relations are followed from destination to source as well.
getCheckedDirectionality in interface RelationSteppublic int getDirectionality()
RelationStep
getDirectionality in interface RelationSteppublic String getDirectionalityDescription()
public Integer getRole()
RelationStepRelDef node, or
null.
getRole in interface RelationSteppublic String getRoleDescription()
public Step getPrevious()
RelationStep
getPrevious in interface RelationSteppublic Step getNext()
RelationStep
getNext in interface RelationSteppublic boolean equals(Object obj)
Steptrue if and only if the argument is a non-null
Step, but not RelationStep, object associated with the same tablename,
using the same alias and including the same nodes.
equals in interface RelationStepequals in interface Stepequals in class BasicStepobj - The object to compare with.
true if the objects are equal,
false otherwise.RelationStep.equals(java.lang.Object)public int hashCode()
hashCode in interface RelationStephashCode in interface StephashCode in class BasicSteppublic String toString()
StepgetTableName()
getAlias()
getNodes()
toString in interface RelationSteptoString in interface SteptoString in class BasicStep
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||