java.lang.Object | |
↳ | com.microstrategy.utils.FlattenedEnumerationBase |
![]() |
This is the base class for a set of classes that produce an enumeration (or "flattening") of a Tree.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | LOCATION_BASE_INDEX | This is the starting (or base) index of a node in a tree. | |||||||||
String | LOCATION_SEPARATOR | This is the separator between indices of children in the larger "location string". |
Fields | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
protected Stack | locationStack | ||||||||||
protected Stack | nodeStack |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
FlattenedEnumerationBase(GenericTreeNode treeNode)
Creates a new FlattenedEnumerationBase object.
| |||||||||||
FlattenedEnumerationBase(Vector forest)
Creates a new FlattenedEnumerationBase object.
|
Protected Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Enumeration |
getLocationEnum(String startLocation, int numLocs)
Gets an enumeration of location strings (starting a specific location).
| ||||||||||
boolean |
isRootNode(GenericTreeNode node)
Returns whether the specified node is a "root node" for this specific
traversal.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
This is the starting (or base) index of a node in a tree. This number
is used in "location strings" returned by getLocation()
.
This is the separator between indices of children in the larger "location string".
Creates a new FlattenedEnumerationBase object.
treeNode | A single tree to traverse. |
---|
Creates a new FlattenedEnumerationBase object.
forest | A Vector of root nodes to traverse. |
---|
Gets an enumeration of location strings (starting a specific location).
startLocation | The starting location of a parent node. |
---|---|
numLocs | The number of location strings to create. |
Returns whether the specified node is a "root node" for this specific traversal.
node | The GenericTreeNode to consider. |
---|