Class ConfigTreeModuleNode

  • All Implemented Interfaces:
    TreeNode, ConfigTreeNode

    public class ConfigTreeModuleNode
    extends AbstractConfigTreeNode
    The config tree module node is used to represent a module in the report configuration. Modules collect all task-specific configuration keys and represent a report module from the package manager.

    It is assumed, that all modules define their keys within the namespace of their package.

    Author:
    Thomas Morgner
    • Constructor Detail

      • ConfigTreeModuleNode

        public ConfigTreeModuleNode​(org.pentaho.reporting.libraries.base.boot.Module module)
        Creates a new module node for the given module object and report configuration.
        Parameters:
        module - the module for which to build a tree node.
    • Method Detail

      • getModule

        public org.pentaho.reporting.libraries.base.boot.Module getModule()
        Returns the module represented by this node.
        Returns:
        the module used in this node.
      • getConfigurationPrefix

        public String getConfigurationPrefix()
        Returns the configuration prefix of this module.
        Returns:
        the configuration prefix.
      • toString

        public String toString()
        Returns a string representation of this object.
        Overrides:
        toString in class Object
        Returns:
        the string representing this object.
        See Also:
        Object.toString()
      • isLeaf

        public boolean isLeaf()
        Returns true if the receiver is a leaf.
        Specified by:
        isLeaf in interface TreeNode
        Overrides:
        isLeaf in class AbstractConfigTreeNode
        Returns:
        true if the receiver is a leaf.
      • addAssignedKey

        public void addAssignedKey​(ConfigDescriptionEntry key)
        Adds the given key to the list of assigned keys, if not already added.
        Parameters:
        key - the new key to be added
        Throws:
        NullPointerException - if the given key is null.
      • removeAssignedKey

        public void removeAssignedKey​(ConfigDescriptionEntry key)
        Removed the given key description from the list of assigned keys.
        Parameters:
        key - the key that should be removed.
        Throws:
        NullPointerException - if the given key is null.
      • getAssignedKeys

        public ConfigDescriptionEntry[] getAssignedKeys()
        Returns the list of assigned keys as object array.
        Returns:
        the assigned keys as array.