Class DefaultComponentsBundle
- java.lang.Object
-
- net.sf.jasperreports.engine.component.DefaultComponentsBundle
-
- All Implemented Interfaces:
ComponentsBundle
public class DefaultComponentsBundle extends java.lang.Object implements ComponentsBundle
The defaultcomponents bundleimplementation.A components bundle consists of a
XML parserinstance and a map ofcomponent managers.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringEXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description DefaultComponentsBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ComponentManagergetComponentManager(java.lang.String componentName)Returns the manager for a component type identified by name.java.util.Map<java.lang.String,ComponentManager>getComponentManagers()Returns the internal map of component managers, indexed by component name.java.util.Set<java.lang.String>getComponentNames()Returns a set that contains the names of components included in this bundle.ComponentsXmlParsergetXmlParser()Returns the XML parsing information for this bundle.voidsetComponentManagers(java.util.Map<java.lang.String,ComponentManager> componentManagers)Sets the map of component managers.voidsetXmlParser(ComponentsXmlParser xmlParser)Sets the components XML parser implementation.
-
-
-
Field Detail
-
EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND
public static final java.lang.String EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getXmlParser
public ComponentsXmlParser getXmlParser()
Description copied from interface:ComponentsBundleReturns the XML parsing information for this bundle.- Specified by:
getXmlParserin interfaceComponentsBundle- 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:
getXmlParser()
-
getComponentNames
public java.util.Set<java.lang.String> 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
public ComponentManager getComponentManager(java.lang.String componentName)
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
public java.util.Map<java.lang.String,ComponentManager> getComponentManagers()
Returns the internal map of component managers, indexed by component name.- Returns:
- the map of component managers
- See Also:
setComponentManagers(Map)
-
setComponentManagers
public void setComponentManagers(java.util.Map<java.lang.String,ComponentManager> componentManagers)
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
-
-