Class DefaultComponentsBundle

java.lang.Object
net.sf.jasperreports.engine.component.DefaultComponentsBundle
All Implemented Interfaces:
ComponentsBundle

public class DefaultComponentsBundle extends Object implements ComponentsBundle
The default components bundle implementation.

A components bundle consists of a XML parser instance and a map of component managers.

Author:
Lucian Chirita (lucianc@users.sourceforge.net)
  • Field Details

    • EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND

      public static final String EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND
      See Also:
  • Constructor Details

    • DefaultComponentsBundle

      public DefaultComponentsBundle()
  • Method Details

    • getXmlParser

      public ComponentsXmlParser getXmlParser()
      Description copied from interface: ComponentsBundle
      Returns the XML parsing information for this bundle.
      Specified by:
      getXmlParser in interface ComponentsBundle
      Returns:
      the bundle XML parser
    • setXmlParser

      public void setXmlParser(ComponentsXmlParser xmlParser)
      Sets the components XML parser implementation.
      Parameters:
      xmlParser - the components XML parser
      See Also:
    • getComponentNames

      public Set<String> getComponentNames()
      Description copied from interface: ComponentsBundle
      Returns a set that contains the names of components included in this bundle.
      Specified by:
      getComponentNames in interface ComponentsBundle
      Returns:
      the set of component names in this bundle
    • getComponentManager

      public ComponentManager getComponentManager(String componentName)
      Description copied from interface: ComponentsBundle
      Returns the manager for a component type identified by name.
      Specified by:
      getComponentManager in interface ComponentsBundle
      Parameters:
      componentName - the component name
      Returns:
      the manager for the corresponding component type
    • getComponentManagers

      public Map<String,ComponentManager> getComponentManagers()
      Returns the internal map of component managers, indexed by component name.
      Returns:
      the map of component managers
      See Also:
    • setComponentManagers

      public void setComponentManagers(Map<String,ComponentManager> componentManagers)
      Sets the map of component managers.

      The map needs to use component names as keys, and ComponentManager instances as values.

      Parameters:
      componentManagers - the map of component managers