Class DefaultComponentsBundle
java.lang.Object
net.sf.jasperreports.engine.component.DefaultComponentsBundle
- All Implemented Interfaces:
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponentManager(String componentName) Returns the manager for a component type identified by name.Returns the internal map of component managers, indexed by component name.Returns a set that contains the names of components included in this bundle.Returns the XML parsing information for this bundle.voidsetComponentManagers(Map<String, ComponentManager> componentManagers) Sets the map of component managers.voidsetXmlParser(ComponentsXmlParser xmlParser) Sets the components XML parser implementation.
-
Field Details
-
EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND
- See Also:
-
-
Constructor Details
-
DefaultComponentsBundle
public DefaultComponentsBundle()
-
-
Method Details
-
getXmlParser
Description copied from interface:ComponentsBundleReturns the XML parsing information for this bundle.- Specified by:
getXmlParserin interfaceComponentsBundle- Returns:
- the bundle XML parser
-
setXmlParser
Sets the components XML parser implementation.- Parameters:
xmlParser- the components XML parser- See Also:
-
getComponentNames
Description copied from interface:ComponentsBundleReturns a set that contains the names of components included in this bundle.- Specified by:
getComponentNamesin interfaceComponentsBundle- Returns:
- the set of component names in this bundle
-
getComponentManager
Description copied from interface:ComponentsBundleReturns the manager for a component type identified by name.- Specified by:
getComponentManagerin interfaceComponentsBundle- Parameters:
componentName- the component name- Returns:
- the manager for the corresponding component type
-
getComponentManagers
Returns the internal map of component managers, indexed by component name.- Returns:
- the map of component managers
- See Also:
-
setComponentManagers
Sets the map of component managers.The map needs to use component names as keys, and
ComponentManagerinstances as values.- Parameters:
componentManagers- the map of component managers
-