public interface TreeNode extends TreeElement
Modifier and Type | Method and Description |
---|---|
TreeNode |
addChild(TreeNode newChild) |
String |
getCategory() |
TreeNode |
getChild(String childName) |
Collection<TreeNode> |
getChildNodes() |
String |
getCompletePathName() |
String |
getDescription() |
Collection<TreeNode> |
getEnabledChildNodes() |
TreeNode |
getNode(String completeName) |
List<TreeNode> |
getNodes(String pattern)
Behaves as {@link #getNodes (String, boolean, boolean) with ignoreDisabled set to true
and gfV2Compatible set to true
Pattern is considered to be a GFV2 Compatible Pattern
|
List<TreeNode> |
getNodes(String pattern,
boolean ignoreDisabled,
boolean gfv2Compatible)
Returns all nodes that match the given Regex pattern as specified by the
Pattern class.
|
TreeNode |
getParent() |
TreeNode |
getPossibleParentNode(String pattern)
Get the "parent" matching the given pattern.
|
boolean |
hasChildNodes() |
boolean |
isEnabled() |
void |
removeChild(TreeNode oldChild) |
void |
setCategory(String category) |
void |
setDescription(String description) |
void |
setEnabled(boolean enabled) |
void |
setParent(TreeNode parent) |
List<TreeNode> |
traverse(boolean ignoreDisabled)
Performs a depth first traversal of the tree.
|
getName, getValue, setName
String getCategory()
void setCategory(String category)
boolean isEnabled()
void setEnabled(boolean enabled)
void setDescription(String description)
String getDescription()
void removeChild(TreeNode oldChild)
void setParent(TreeNode parent)
TreeNode getParent()
String getCompletePathName()
boolean hasChildNodes()
Collection<TreeNode> getChildNodes()
Collection<TreeNode> getEnabledChildNodes()
TreeNode getNode(String completeName)
completeName
- dotted name to the nodeList<TreeNode> traverse(boolean ignoreDisabled)
ignoreDisabled
- will ignore a disabled node and its childrenList<TreeNode> getNodes(String pattern, boolean ignoreDisabled, boolean gfv2Compatible)
pattern
- Find a node that matches the pattern. By default pattern should follow the conventions
outlined by the java.util.regex.Pattern class.ignoreDisabled
- will ignore a disabled node and its childrengfv2Compatible
- in this mode, * has the same meaning as .* in the Pattern class.
The implementation should consider pattern as a v2 pattern.List<TreeNode> getNodes(String pattern)
TreeNode getPossibleParentNode(String pattern)
pattern
- Find a node that matches the pattern. By default pattern should follow the conventions
outlined by the java.util.regex.Pattern class.Copyright © 2021. All rights reserved.