public class TreeUtilities extends Object
Modifier and Type | Class and Description |
---|---|
static class |
TreeUtilities.BreadthFirstModelEnumeration
Implementation of a breadthFirst traversal of a subtree in a TreeModel.
|
static class |
TreeUtilities.BreadthFirstNodeEnumeration<M extends TreeNode>
Implementation of a breadthFirst traversal of a subtree with nodes of type TreeNode.
|
static class |
TreeUtilities.PostorderModelEnumeration
Implementation of a postorder traversal of a subtree in a TreeModel.
|
static class |
TreeUtilities.PostorderNodeEnumeration<M extends TreeNode>
Implementation of a postorder traversal of a subtree with nodes of type TreeNode.
|
static class |
TreeUtilities.PreorderModelEnumeration
Implementation of a preorder traversal of a TreeModel.
|
static class |
TreeUtilities.PreorderNodeEnumeration<M extends TreeNode>
Implementation of a preorder traversal of a subtree with nodes of type TreeNode.
|
Modifier and Type | Field and Description |
---|---|
static Enumeration |
EMPTY_ENUMERATION
An enumeration that is always empty.
|
private static Logger |
LOG |
Modifier | Constructor and Description |
---|---|
private |
TreeUtilities() |
Modifier and Type | Method and Description |
---|---|
static Enumeration |
children(TreeModel model)
Creates and returns an Enumeration across the direct children of the
rootNode in the given TreeModel.
|
static Enumeration |
children(TreeModel model,
Object parent)
Creates and returns an Enumeration across the direct children of parentNode
in the given TreeModel.
|
public static final Enumeration EMPTY_ENUMERATION
private TreeUtilities()
public static Enumeration children(TreeModel model)
model
- the TreeModel which contains parent, must not be nullpublic static Enumeration children(TreeModel model, Object parent)
model
- the TreeModel which contains parent, must not be nullparent
- the parent of the enumerated childrenWebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses