Package net.sf.jasperreports.engine.part
Class DefaultPartComponentsBundle
- java.lang.Object
-
- net.sf.jasperreports.engine.part.DefaultPartComponentsBundle
-
- All Implemented Interfaces:
PartComponentsBundle
public class DefaultPartComponentsBundle extends java.lang.Object implements PartComponentsBundle
The defaultcomponents bundle
implementation.A components bundle consists of a
XML parser
instance and a map ofcomponent managers
.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description DefaultPartComponentsBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PartComponentManager
getComponentManager(java.lang.String componentName)
Returns the manager for a component type identified by name.java.util.Map<java.lang.String,PartComponentManager>
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.ComponentsXmlParser
getXmlParser()
Returns the XML parsing information for this bundle.void
setComponentManagers(java.util.Map<java.lang.String,PartComponentManager> componentManagers)
Sets the map of component managers.void
setXmlParser(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:PartComponentsBundle
Returns the XML parsing information for this bundle.- Specified by:
getXmlParser
in interfacePartComponentsBundle
- 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:PartComponentsBundle
Returns a set that contains the names of components included in this bundle.- Specified by:
getComponentNames
in interfacePartComponentsBundle
- Returns:
- the set of component names in this bundle
-
getComponentManager
public PartComponentManager getComponentManager(java.lang.String componentName)
Description copied from interface:PartComponentsBundle
Returns the manager for a component type identified by name.- Specified by:
getComponentManager
in interfacePartComponentsBundle
- Parameters:
componentName
- the component name- Returns:
- the manager for the corresponding component type
-
getComponentManagers
public java.util.Map<java.lang.String,PartComponentManager> 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,PartComponentManager> componentManagers)
Sets the map of component managers.The map needs to use component names as keys, and
PartComponentManager
instances as values.- Parameters:
componentManagers
- the map of component managers
-
-