|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<ChildNodeDirection> net.sf.basedb.util.overview.node.ChildNodeDirection
public enum ChildNodeDirection
Represents the direction to use for loading child nodes in a tree. We need to keep track of this since we need to support rooting a tree at any type of item (eg. at an experiment, hybridization, biosource, etc).
For every tree there is a natural For example, if we root the tree at a Hybridization we will load children in the forward-loading direction down to experiment and in the revers-loading direction up to biosource and array design. For each node that is added to a tree we need to keep track if we should continue up or down the natural order. Otherwise we will end up in an infinite loop.
In a tree there can also be side-nodes that in most cases are end-point or leaf nodes. This is for example nodes containing information about protocol, software, annotations, etc. We call such nodes property nodes and they are usually loaded in both the forward- and reverse-loading directions.
Node.getChildNodeDirection()
Enum Constant Summary | |
---|---|
ALL
|
|
FORWARD
Child nodes should be loaded in the forward-loading direction. |
|
NONE
Represents an end-point node. |
|
PROPERTY
Only property child nodes should be loaded. |
|
REVERSE
Child nodes should be loaded in the reverse-loading direction. |
Field Summary | |
---|---|
private boolean |
loadForward
|
private boolean |
loadProperty
|
private boolean |
loadReverse
|
Method Summary | |
---|---|
boolean |
loadForward()
|
boolean |
loadProperty()
|
boolean |
loadReverse()
|
static ChildNodeDirection |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static ChildNodeDirection[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final ChildNodeDirection NONE
public static final ChildNodeDirection PROPERTY
public static final ChildNodeDirection FORWARD
public static final ChildNodeDirection REVERSE
public static final ChildNodeDirection ALL
Field Detail |
---|
private final boolean loadForward
private final boolean loadReverse
private final boolean loadProperty
Method Detail |
---|
public static ChildNodeDirection[] values()
for (ChildNodeDirection c : ChildNodeDirection.values()) System.out.println(c);
public static ChildNodeDirection valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic boolean loadReverse()
public boolean loadForward()
public boolean loadProperty()
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |