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 Object implements PartComponentsBundle
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 StringEXCEPTION_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 PartComponentManagergetComponentManager(String componentName)Returns the manager for a component type identified by name.Map<String,PartComponentManager>getComponentManagers()Returns the internal map of component managers, indexed by component name.Set<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(Map<String,PartComponentManager> 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 String EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND
- See Also:
- Constant Field Values
-
-
Method Detail
-
getXmlParser
public ComponentsXmlParser getXmlParser()
Description copied from interface:PartComponentsBundleReturns the XML parsing information for this bundle.- Specified by:
getXmlParserin 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 Set<String> getComponentNames()
Description copied from interface:PartComponentsBundleReturns a set that contains the names of components included in this bundle.- Specified by:
getComponentNamesin interfacePartComponentsBundle- Returns:
- the set of component names in this bundle
-
getComponentManager
public PartComponentManager getComponentManager(String componentName)
Description copied from interface:PartComponentsBundleReturns the manager for a component type identified by name.- Specified by:
getComponentManagerin interfacePartComponentsBundle- Parameters:
componentName- the component name- Returns:
- the manager for the corresponding component type
-
getComponentManagers
public Map<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(Map<String,PartComponentManager> componentManagers)
Sets the map of component managers.The map needs to use component names as keys, and
PartComponentManagerinstances as values.- Parameters:
componentManagers- the map of component managers
-
-