public class DefaultPartComponentsBundle extends java.lang.Object implements PartComponentsBundle
components bundle
implementation.
A components bundle consists of a XML parser
instance and a map of component managers
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND |
Constructor and Description |
---|
DefaultPartComponentsBundle() |
Modifier and Type | Method and 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.
|
public static final java.lang.String EXCEPTION_MESSAGE_KEY_COMPONENT_MANAGER_NOT_FOUND
public ComponentsXmlParser getXmlParser()
PartComponentsBundle
getXmlParser
in interface PartComponentsBundle
public void setXmlParser(ComponentsXmlParser xmlParser)
xmlParser
- the components XML parsergetXmlParser()
public java.util.Set<java.lang.String> getComponentNames()
PartComponentsBundle
getComponentNames
in interface PartComponentsBundle
public PartComponentManager getComponentManager(java.lang.String componentName)
PartComponentsBundle
getComponentManager
in interface PartComponentsBundle
componentName
- the component namepublic java.util.Map<java.lang.String,PartComponentManager> getComponentManagers()
setComponentManagers(Map)
public void setComponentManagers(java.util.Map<java.lang.String,PartComponentManager> componentManagers)
The map needs to use component names as keys, and PartComponentManager
instances as values.
componentManagers
- the map of component managers© 2001-2014 TIBCO Software Inc. www.jaspersoft.com