public class ConfigTreeModuleNode extends AbstractConfigTreeNode
Constructor and Description |
---|
ConfigTreeModuleNode(Module module)
Creates a new module node for the given module object and report configuration.
|
Modifier and Type | Method and Description |
---|---|
void |
addAssignedKey(ConfigDescriptionEntry key)
Adds the given key to the list of assigned keys, if not already added.
|
boolean |
getAllowsChildren()
Returns true if the receiver allows children.
|
ConfigDescriptionEntry[] |
getAssignedKeys()
Returns the list of assigned keys as object array.
|
String |
getConfigurationPrefix()
Returns the configuration prefix of this module.
|
Module |
getModule()
Returns the module represented by this node.
|
boolean |
isLeaf()
Returns true if the receiver is a leaf.
|
void |
removeAssignedKey(ConfigDescriptionEntry key)
Removed the given key description from the list of assigned keys.
|
String |
toString()
Returns a string representation of this object.
|
add, children, getChildAt, getChildCount, getIndex, getName, getParent, reset, setParent
public ConfigTreeModuleNode(Module module)
module
- the module for which to build a tree node.public Module getModule()
public String getConfigurationPrefix()
public String toString()
toString
in class Object
Object.toString()
public boolean isLeaf()
isLeaf
in interface TreeNode
isLeaf
in class AbstractConfigTreeNode
public boolean getAllowsChildren()
getAllowsChildren
in interface TreeNode
getAllowsChildren
in class AbstractConfigTreeNode
public void addAssignedKey(ConfigDescriptionEntry key)
key
- the new key to be addedNullPointerException
- if the given key is null.public void removeAssignedKey(ConfigDescriptionEntry key)
key
- the key that should be removed.NullPointerException
- if the given key is null.public ConfigDescriptionEntry[] getAssignedKeys()
Copyright © 2019 Hitachi Vantara. All rights reserved.